Page 1 of 1
Author 16.1 / 17 pdf (font problem)
Posted: Thu Nov 19, 2015 10:57 pm
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
Re: Author 16.1 / 17 pdf (font problem)
Posted: Fri Nov 20, 2015 2:10 pm
by Welblaud
The log is:
Code: Select all
ERROR - Couldn't find hyphenation pattern for lang="en_US".
Process ended with exit code: 0
Re: Author 16.1 / 17 pdf (font problem)
Posted: Fri Nov 20, 2015 4:50 pm
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
Re: Author 16.1 / 17 pdf (font problem)
Posted: Fri Nov 20, 2015 5:04 pm
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?
Re: Author 16.1 / 17 pdf (font problem)
Posted: Fri Nov 20, 2015 5:25 pm
by Welblaud
Ok, I think I am starting to understand, will let you know!

Re: Author 16.1 / 17 pdf (font problem)
Posted: Fri Nov 20, 2015 5:44 pm
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

Re: Author 16.1 / 17 pdf (font problem)
Posted: Fri Nov 20, 2015 5:54 pm
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.
Re: Author 16.1 / 17 pdf (font problem)
Posted: Fri Nov 20, 2015 5:59 pm
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!

Re: Author 16.1 / 17 pdf (font problem)
Posted: Fri Nov 20, 2015 6:28 pm
by radu_pisoi
Could you please share with us a sample document to reproduce the hyphenation problem?
Re: Author 16.1 / 17 pdf (font problem)
Posted: Mon Nov 23, 2015 11:23 am
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.
Re: Author 16.1 / 17 pdf (font problem)
Posted: Mon Nov 23, 2015 6:17 pm
by Welblaud
Thanks, the warning has disappeared!