← Prev in month ← Prev in thread
Next in thread → Next in month →

DOCBOOK-APPS: Re: [[email protected]: Re: cvs commit:ports/textproc/dsssl-docbook-modular Makefileports/textproc/dsssl-docbook-modular/files patch-common_dbl1de.dsl]

From
Norman Walsh <>
Date
2001-03-24T20:57:45+00:00
ID
Thread
DOCBOOK-APPS: Re: [[email protected]: Re: cvs commit:ports/textproc/dsssl-docbook-modular Makefileports/textproc/dsssl-docbook-modular/files patch-common_dbl1de.dsl]
/ Nik Clayton <> 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 <> -----
| 
| Date: Wed, 21 Feb 2001 18:55:07 +0000
| From: Nik Clayton <>
| To: Norman Walsh <>
| Cc: Nik Clayton <>, Alexander Langer <>,
| 	, , ,
| 	
| 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 <> | Man's sensitivity to little things and
http://nwalsh.com/            | insensitivity to the greatest are the
                              | signs of a strange disorder.--Pascal
← Prev in month ← Prev in thread
Next in thread → Next in month →