Dear Andreas,

   Thanks a lot.  I feel somehow less stupid.
I wrote a couple of ugly perl scripts to avoid the problem: one to encode character entities before producing the .fo file and the other to decode them surrounded with <fo:inline font-family="Symbol">entity</fo:inline> after. In that way, I can go on producing html and pdf file from the same docbook source. This works fine.
   Nevertheless, I hope this problem will be fixed in future versions.

   Best regards -- Antoine Rauzy

Andreas L Delmelle a écrit :
On Aug 12, 2007, at 11:56, Antoine Rauzy wrote:

Hi

I've installed fop on my machine, a PC under windows XP. I just downloaded the binary (I made no reconfiguration). I'm trying to compile a .fo file obtained from a docbook source file, via xsltproc. My .fo file contains greek letters. In the resulting pdf file, I get # characters instead of greek letters. The greek letters are included into a bloc with a font-family attribute like 'font-family="serif,Symbol,ZapfDingbats"'. If I switch serif and Symbol manually, then the pdf file does contain the greek letters but #'s are now for ascii characters. In a word, it seems that fop considers only the first font family of the list.

  Is it a problem due to my installation?  What can I do to prevent it?

It is a limitation in FOP, I'm afraid. We do not yet have a proper implementation of the fallback mechanism for font-family. In the above, if the first specified font-family, serif, does not contain a glyph for a given character, then you'll always get the annoying '#'. The Symbol and ZapfDingbats families are never considered, unfortunately...

The only way to prevent it, would be to tweak the Docbook stylesheets to use the proper font-families in the right situations.


HTH!

Cheers

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Antoine Rauzy                   ARBoost Technologies
tel+fax: 33 +4 91 73 28 77      24, Allée Chabrier
mobile:  33 +6 89 98 95 06      13008 Marseille
[EMAIL PROTECTED]       FRANCE
                        


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to