Subject: RE: displaying dashes From: "Frank A. Christoph" <christo@xxxxxxxxxxxxxxxxxx> Date: Mon, 22 Nov 1999 10:25:00 +0900 |
Brandon Ibach wrote: > Quoting Bek Oberin <gossamer@xxxxxxxxxxxxxx>: > > Brandon Ibach wrote: > > > Quoting Bek Oberin <gossamer@xxxxxxxxxxxxxx>: > > > > Got a problem with double-dashes in DocBook: > > > > Skud wrote: > > > > > In the print output, double dashes (eg "--") are smushed > down to one > > > > > dash ("-"), which is fine in most cases. The problem is > when it happens > > > Which backend are you using for print output? In TeX, two dashes > > > > TeX, you guessed it. > > > Well, short of someone patching the OpenJade backend to fix this on > input, you could alter your documents to use an entity reference for > dashes and include something like this in your DTD: > > <!ENTITY % tex "IGNORE"> > <![ %tex; [ > <!ENTITY dash "--{}"> > ]]> > <!ENTITY dash "-"> > > This will cause ‐ to be replaced with a single dash, unless > you include the "-itex" option on the OpenJade (or other SP-based > tool, such as nsgmls) command line, in which case %tex; will be > defined as "INCLUDE", thus using the TeX-style ‐, because earlier > definitions of an entity override later ones. That won't work because the TeX backend _does_ map {} to \{\}. What you could try is to put a Unicode---assuming you're using Unicode---Zero-Width-Non-Joiner (ᐌ) or Zero-Width-Space (ᐋ) in there instead, although I dunno how the backend will handle those either... Actually, I just tried it, and it comes out as (literally) "<5132>"... --FAC DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: displaying dashes, Brandon Ibach | Thread | Re: displaying dashes, Brandon Ibach |
Re: displaying dashes, Brandon Ibach | Date | Re: displaying dashes, Bek Oberin |
Month |