Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2728

Persian (Farsi) output problem with FOP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.1
    • renderer/pdf
    • Ubuntu 16.04 with xmlto 0.0.28

    Description

      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.

      Attachments

        1. sample-output.zip
          234 kB
          Navid Emami
        2. sample-output-final.zip
          6.56 MB
          Navid Emami
        3. mkebooks.sh
          3 kB
          Navid Emami
        4. pdf-farsi.xsl
          6 kB
          Navid Emami
        5. simple.fo
          2 kB
          Jennifer Hodgdon
        6. simple.pdf
          14 kB
          Jennifer Hodgdon
        7. simple-nolang.pdf
          17 kB
          Jennifer Hodgdon

        Issue Links

          Activity

            People

              Unassigned Unassigned
              novid Navid Emami
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: