[Libreoffice-bugs] [Bug 128295] New: PDF export regression in mixed LTR-RTL context

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Oct 21 12:12:04 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=128295

            Bug ID: 128295
           Summary: PDF export regression in mixed LTR-RTL context
           Product: LibreOffice
           Version: 6.2.7.1 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: page74010-sf at yahoo.fr

Created attachment 155193
  --> https://bugs.documentfoundation.org/attachment.cgi?id=155193&action=edit
Arabic text with formula objects

I am relaying this bug on behalf of a new LO user. Origin: a question on the
French leg of ask.libreoffice.org at
https://ask.libreoffice.org/fr/question/213665/pourquoi-les-caractere-francais-sont-ils-illisibles-dans-fichier-bilingue-ar-fr-pdf-exporte-par-libreoffice/

Document is written in Arabic with simple formulas created in Math. Since the
formulas are really simple, they have just as well be typed and formatted
directly in Writer.

Math formulas can be considered written in a LTR script. However, they are
graphic objects (SVG) inserted "As character" in text flow. Since they are
graphic objects, they should not be tweaked in any way by text formatting.

Everything is as expected on screen. But when trying to print or export as PDF,
the formulas get mangled, e.g. if parentheses enclose a list like (x, y, z),
the list gets printed as )x, y, z( with Latin letters shifted horizontally
rather randomly (no even spacing).

Print and export to PDF are basically the same since, by default, Writer sends
PDF to the printer. However, there is no workaround because Writer refuses to
honor a request to change to PostScript (the selection is silently accepted
after OK but reopening properties shows PDF again) and print-to-file hopelessly
produces a PDF file and never a .ps file.

It looks as if the PDF export filter entered the SVG and merged it into the
Arabic text and applied some dubious formatting rules.

I tried to print with obsolete versions (4.5 and 5.x) and these old versions
exported correctly the text.

In the attached file, I added an equivalent of the formula object as standard
text (sequence in red on first line) and this sequence is correctly exported.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191021/0308143b/attachment-0001.html>


More information about the Libreoffice-bugs mailing list