This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: Use of “ and ” (fwd)
- To: docbook at lists dot oasis-open dot org
- Subject: Re: DOCBOOK: Use of “ and ” (fwd)
- From: Thomas Andre Berger <thomasbe at osc dot no>
- Date: 26 Jan 2000 15:19:14 +0100
- Organization: Open Systems Computing a.s.
- References: <20000126075819.C3011@conectiva.com.br>
- Reply-To: docbook at lists dot oasis-open dot org
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/ ---------------------------------