/ Nik Clayton <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> -----
| 
| Date: Wed, 21 Feb 2001 18:55:07 +0000
| From: Nik Clayton <[EMAIL PROTECTED]>
| To: Norman Walsh <[EMAIL PROTECTED]>
| Cc: Nik Clayton <[EMAIL PROTECTED]>, Alexander Langer <[EMAIL PROTECTED]>,
|       [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED],
|       [EMAIL PROTECTED]
| 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 <[EMAIL PROTECTED]> | 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: [EMAIL PROTECTED]

Reply via email to