Author 16.1 / 17 pdf (font problem)

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Welblaud
Posts: 14
Joined: Fri Nov 15, 2013 12:31 pm

Author 16.1 / 17 pdf (font problem)

Post by Welblaud »

I am sorry, I can't figure out how to configure file or the app to produce pdf with accented chars. My file is in Czech, TEI Lite, fully valid but in the output there are many hashes instead of accented characters. I have tried on Win 7 as well as Lin Mint, the same. From the documentation I am not able to understand whether it is a xsl problem, font problem, app setting problem or something different...

Any help more than welcome! (I have to admit this prevents me from quick including Oxygen into a publishing worklow :( )

Welblaud
Welblaud
Posts: 14
Joined: Fri Nov 15, 2013 12:31 pm

Re: Author 16.1 / 17 pdf (font problem)

Post by Welblaud »

The log is:

Code: Select all

ERROR - Couldn't find hyphenation pattern for lang="en_US".
Process ended with exit code: 0
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Author 16.1 / 17 pdf (font problem)

Post by radu_pisoi »

Hi,

If the document contains some Unicode characters that cannot be rendered by the default PDF fonts, then a special font that is capable to render these characters must be configured and embedded in the PDF result.

For this issue, we have a dedicated topic in our user manual:
http://oxygenxml.com/doc/versions/17.1/ ... n-FOP.html
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Welblaud
Posts: 14
Joined: Fri Nov 15, 2013 12:31 pm

Re: Author 16.1 / 17 pdf (font problem)

Post by Welblaud »

Thank you, I have read these instructions. The very basic idea of a small config (all fonts are installed as default in the OS) does not work. I am trying to apply this: http://oxygenxml.com/doc/versions/17.1/ ... ified.html but can’t find the proper place where fonts are set for FO transformations. Somewhere in C:\..\Oxygen XML Author 16\frameworks\tei\xml\tei\stylesheet\fo\fo.xsl?
Welblaud
Posts: 14
Joined: Fri Nov 15, 2013 12:31 pm

Re: Author 16.1 / 17 pdf (font problem)

Post by Welblaud »

Ok, I think I am starting to understand, will let you know! :)
Welblaud
Posts: 14
Joined: Fri Nov 15, 2013 12:31 pm

Re: Author 16.1 / 17 pdf (font problem)

Post by Welblaud »

I am stuck—the bat throws:

Code: Select all

Error: Could not find or load main class org.apache.fop.fonts.apps.TTFReader
:(
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Author 16.1 / 17 pdf (font problem)

Post by radu_pisoi »

Yes, you need to modify some XSLT parameters:
For TEI documents you can start with the predefined scenario called TEI PDF, edit the XSLT parameters and set the font name (in our example Arial Unicode MS) to the parameters bodyFont and sansFont.
For instance, on my Windows 8 machine, I duplicated the TEI PDF transformation scenario and changed the values for the XSLT parameters ending in "*Font" to "Verdana". I did not changed the fop configuration file.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Welblaud
Posts: 14
Joined: Fri Nov 15, 2013 12:31 pm

Re: Author 16.1 / 17 pdf (font problem)

Post by Welblaud »

Thanks! I got it! Changing of parameters works.

It still throws:

Code: Select all

ERROR - Couldn't find hyphenation pattern for lang="en_US".
... but everything seems fine!

:)
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Author 16.1 / 17 pdf (font problem)

Post by radu_pisoi »

Could you please share with us a sample document to reproduce the hyphenation problem?
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Author 16.1 / 17 pdf (font problem)

Post by radu_pisoi »

You get this error because the hyphenation support is not installed for the Apache FOP processor.

To install a custom hyphenation pattern for use with Apache FOP please follow the Adding Libraries to the Built-in FO Processor procedure from our user manual.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Welblaud
Posts: 14
Joined: Fri Nov 15, 2013 12:31 pm

Re: Author 16.1 / 17 pdf (font problem)

Post by Welblaud »

Thanks, the warning has disappeared!
Post Reply