This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] using greek characters with docbook
- From: Justus dot Piater at ULg dot ac dot be (Justus H. Piater)
- To: Jens Skripczynski <skripi-lists at myrealbox dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 02 Jun 2004 09:14:00 +0200
- Subject: Re: [docbook-apps] using greek characters with docbook
- References: <20040601203342.GA12204@shadowland.intern.shadowbyte.net>
Jens,
The problem is Fop's font handling. Fop does not automatically switch
fonts if a given glyph does not exist in the current font.
I've been helping myself with the following workaround: put the
special character into a dedicated element, e.g.,
<phrase role="symbol">Ο</phrase>
and then put a template into your stylesheet customization that
switches to a font that contains this glyph:
<xsl:template match="phrase[@role='symbol']">
<fo:inline font-family="Symbol">
<xsl:apply-templates/>
</fo:inline>
</xsl:template>
Ugly, but works for me...
Justus
Jens Skripczynski <skripi-lists@myrealbox.com> wrote on Tue, 1 Jun
2004 22:33:42 +0200:
> I use Ο and ⊕ in the xml file.
>
> After generating the pdf file with xsl 1.65.1 and fop 0.20.5
> I can only see '#' instead of the characters.
--
Justus H. Piater, Ph.D. http://www.montefiore.ulg.ac.be/~piater/
Institut Montefiore, B28 Phone: +32-4-366-2279
Université de Liège, Belgium Fax: +32-4-366-2620
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.