
I'm editing a docbook file that contains a couple of chinese words and a few greek ones. Oxygen shows me the right gliphs but when I try to generate the PDF nothing happens, the result is a series of #. can anyone help me? Claudio

Hello, Oxygen uses Java logical fonts that have the ability to display platform-wide character sets. On the other hand PDF only has built-support for certain physical fonts that don't cover character sets from some languages. Additional fonts must be embedded and used in the PDF to resolve this. See the guide from the manual to understand what must be done: http://www.oxygenxml.com/doc/ug-authorEclipse/tasks/add-font-to-builtin-FOP-... For this to work with Apache FOP you need to have a FOP configuration file that is configured to pick up the appropriate fonts. Starting with v12.0 Oxygen has a preset configuration file that already does this: ${oxygenInstallDir}/lib/fop-config.xml If you're using an older version of Oxygen you need to create this file as described in the link above. Then you have to set file in Options ->Preferences -> XML -> XSLT-FO-XQuery -> FO Processors, Configuration file. For DocBook you need to edit the transformation scenario(Document -> Transformation -> Configure Transformation Scenario, Edit), in the XSLT tab press the Parameters button and look for the parameters: body.font.family and title.font.family. You need to set these parameter values to a font name that covers all the character sets that you need. e.g. in Windows: MS Gothic or Arial Unicode MS on the Mac: Arial Unicode MS BTW, on what platform are you using Oxygen(Windows, Mac, Linux)? Regards, Adrian Adrian Buza oXygen XML Editor and Author Support Tel: +1-650-352-1250 ext.202 Fax: +40-251-461482 support@oxygenxml.com http://www.oxygenxml.com Claudio Tubertini wrote:
I'm editing a docbook file that contains a couple of chinese words and a few greek ones. Oxygen shows me the right gliphs but when I try to generate the PDF nothing happens, the result is a series of #. can anyone help me?
Claudio ------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Just a word of caution that the MS Gothic and Unicode MS fonts, while they have glyphs for Chinese characters, are not really suitable for production use. For Simplified Chinese documents (delivery to People's Republic of China) you need a Simplified Chinese font. For Traditional Chinese (Hong Kong, Taiwan, maybe Malaysia?) you need a Traditonal Chinese font. For Japanese you need a Japanese-specific font, as Japanese glyphs for ideographs are different as well. Having written that I just realized I've forgotten which fonts those are, but a little online research should reveal the correct fonts. Cheers, E. On 5/26/11 4:17 AM, "Adrian Buza" <adrian@sync.ro> wrote:
Hello,
Oxygen uses Java logical fonts that have the ability to display platform-wide character sets. On the other hand PDF only has built-support for certain physical fonts that don't cover character sets from some languages. Additional fonts must be embedded and used in the PDF to resolve this.
See the guide from the manual to understand what must be done: http://www.oxygenxml.com/doc/ug-authorEclipse/tasks/add-font-to-builtin-FOP-... mplified.html
For this to work with Apache FOP you need to have a FOP configuration file that is configured to pick up the appropriate fonts. Starting with v12.0 Oxygen has a preset configuration file that already does this: ${oxygenInstallDir}/lib/fop-config.xml If you're using an older version of Oxygen you need to create this file as described in the link above. Then you have to set file in Options ->Preferences -> XML -> XSLT-FO-XQuery -> FO Processors, Configuration file.
For DocBook you need to edit the transformation scenario(Document -> Transformation -> Configure Transformation Scenario, Edit), in the XSLT tab press the Parameters button and look for the parameters: body.font.family and title.font.family. You need to set these parameter values to a font name that covers all the character sets that you need. e.g. in Windows: MS Gothic or Arial Unicode MS on the Mac: Arial Unicode MS
BTW, on what platform are you using Oxygen(Windows, Mac, Linux)?
Regards, Adrian
Adrian Buza oXygen XML Editor and Author Support
Tel: +1-650-352-1250 ext.202 Fax: +40-251-461482 support@oxygenxml.com http://www.oxygenxml.com
Claudio Tubertini wrote:
I'm editing a docbook file that contains a couple of chinese words and a few greek ones. Oxygen shows me the right gliphs but when I try to generate the PDF nothing happens, the result is a series of #. can anyone help me?
Claudio ------------------------------------------------------------------------
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main: 512.554.9368 www.reallysi.com www.rsuitecms.com
participants (3)
-
Adrian Buza
-
Claudio Tubertini
-
Eliot Kimber