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


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

Re: Use of “ and ” (fwd)


Jorge Godoy <godoy@conectiva.com.br> writes:

> When converting a document to HTML (either with Jade or OpenJade)
> with the DocBook dsl, the code is shown in the browser.  When
> converting the same document to TeX and then to DVI or PS the right
> results (the " signs) are shown.
> 
> Where can I look to solve this?

HTML-browsers do not support the ISO-entities.  But most browsers
support Unicode references.  So I post-process the html files,
replacing the entity references with the Unicode numbers

Using sed:

 sed -e 's/ldquo/#8220/g' $f | sed -e 's/rdquo/#8221/g' > $tmpfile.$f
 mv $tmpfile.$f  $f

$f is one html output file from jade.

[
  OK, so I should have added & and ; in the substituion to be certain
  not to replace non-entities.
]

I think both Netscape and Exporer supports this, although my netscape
shows both rigth and left quotes as ".  I can't say for certain what
IE does.

Mozilla did not show anyting, but its still in alpha! ;)

--------------------------------------------------------------------------
 Thomas André Berger               Open Systems Computing a.s
 email: thomasbe@osc.no            Kongensgt. 9, N-0153 Oslo, Norway
                                   phone +47 2331 4758, fax +47 2220 0285
--------------------- http://www.osc.no/ ---------------------------------


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