[ 
https://issues.apache.org/jira/browse/FOP-2728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16089182#comment-16089182
 ] 

Jennifer Hodgdon commented on FOP-2728:
---------------------------------------

Assuming that PDF is readable, then I guess the question will be whether or not 
is it a bug that if you include the language attribute, it fails to make a 
readable Farsi output? Or maybe it is just a documentation bug? Because 
https://xmlgraphics.apache.org/fop/2.0/complexscripts.html definitely suggests 
using a language attribute.

Anyway, as a workaround, I should be able to modify the docbook XSLT we are 
using so that it will get rid of the language attribute on fo:root, at least 
for Farsi. I am not having any problems (at least that I'm aware of) building 
PDFs in other languages (Chinese, Japanese, and several European languages, as 
well as English) with the language attribute present. But we're already using 
some customizations to the XSLT, so adding another one will not be a problem 
for our build scripts.



> Persian (Farsi) output problem with FOP
> ---------------------------------------
>
>                 Key: FOP-2728
>                 URL: https://issues.apache.org/jira/browse/FOP-2728
>             Project: FOP
>          Issue Type: Bug
>          Components: renderer/pdf
>    Affects Versions: 2.1
>         Environment: Ubuntu 16.04 with xmlto 0.0.28
>            Reporter: Navid Emami
>              Labels: drupal
>         Attachments: mkebooks.sh, pdf-farsi.xsl, sample-output-final.zip, 
> sample-output.zip, simple.fo, simple-nolang.pdf, simple.pdf
>
>
> We are having trouble making Persian (Farsi) language output with FOP.
> We are using the *xmlto* script with the --with-fop option to convert a 
> DocBook file to PDF using FOP, which uses XSLT to first make a FO file, and 
> then FOP to convert to PDF. We used the --noclean option to capture the 
> intermediate FO XML file.
> We have verified that the Persian (Farsi) characters are readable in the 
> DocBook and FO files. However, when we generate the PDF, the output is not 
> readable. There are both _joined_ and _separated_ letters in Persian (Farsi) 
> language but the output in PDF format has just separated ones.
> Note that there are some font issues in the PDF output as well -- missing 
> glyphs -- those show as # characters, and are in the chapter/section 
> headings. However, the main body of the text has no # characters, and it 
> still has this problem.
> *Attachments:*
> * sample-output.zip contains small.docbook, small.fo, small.epub and 
> small.pdf. The final output of PDF should be similar to EPUB.
> * sample-output-full.zip contains guide.epub and guide.pdf which are the 
> complete documents but with wrong rendering of characters in PDF.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to