Re: displaying dashes

Subject: Re: displaying dashes
From: Brandon Ibach <bibach@xxxxxxxxxxxxxx>
Date: Sun, 21 Nov 1999 18:35:07 -0600
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 &dash; 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 &dash;, because earlier
definitions of an entity override later ones.
   As I said before, I'm no TeXnician, so I'm not totally sure that
the definition given for &dash; will work perfectly, but in theory, it
should prevent confusion if you have multiple dashes in a row.

-Brandon :)


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread