This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [nik@freebsd.org: Re: cvs commit:ports/textproc/dsssl-docbook-modular Makefileports/textproc/dsssl-docbook-modular/files patch-common_dbl1de.dsl]


/ Nik Clayton <nik@freebsd.org> was heard to say:
| Norm,
| 
| Any feedback on this patch?  I've been using it successfully with 1.62,
| .63, and .64 of your stylesheets, and it does make the customisation a
| lot simpler.

Applied.

| 
| N
| 
| ----- Forwarded message from Nik Clayton <nik@freebsd.org> -----
| 
| Date: Wed, 21 Feb 2001 18:55:07 +0000
| From: Nik Clayton <nik@freebsd.org>
| To: Norman Walsh <ndw@nwalsh.com>
| Cc: Nik Clayton <nik@freebsd.org>, Alexander Langer <alex@freebsd.org>,
| 	cvs-committers@freebsd.org, cvs-all@freebsd.org, doc@freebsd.org,
| 	nwalsh@nwalsh.com
| Subject: Re: cvs commit: ports/textproc/dsssl-docbook-modular Makefile ports/textproc/dsssl-docbook-modular/files patch-common_dbl1de.dsl
| 
| On Thu, Jan 25, 2001 at 02:47:24PM -0800, Norman Walsh wrote:
| > | The problem with this, from our point of view, is that it's no longer
| > | possible to override a single entry in our customisation.  Instead, to
| > | fix <warning> and <caution>, I have to duplicate all of the code from 
| > | dbl1en.dsl that defines the en-label-title-sep hash[1] *or* rewrite the
| > | gentext-en-label-title-sep function so that it special cases <warning>
| > | and <caution> before it looks in the en-label-title-sep hash.
| > | 
| > | Neither of which are particularly clean, so I've sort of ignored the
| > | problem, in the hope that I dream up a better way.
| > 
| > Yeah, I see the problem. Ugh. I think in the short term, you should
| > redefine the hash.
| 
| I've got a fourth solution.  Teach the gentext-* functions about another
| alist, local-<lang>-intra-label-sep (and the other *-sep alists), and
| get them to check this alist before checking the primary one.
| 
| If there's an entry in the local-*-sep alist then use that in
| preference.
| 
| Attached is a patch to version 1.62 of the stylesheets that does exactly
| that.  With this patch in place, people writing customisation layers
| just have to write:
| 
|       (define (local-en-label-title-sep)
|         (list
|           (list (normalize "warning")           ": ")
|           (list (normalize "caution")           ": ")
|           ))
| 
| or similar to override specific entries.
[...]

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Man's sensitivity to little things and
http://nwalsh.com/            | insensitivity to the greatest are the
                              | signs of a strange disorder.--Pascal

------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]