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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] using greek characters with docbook


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">&Omicron;</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 &Omicron; and &oplus; 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/.


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