<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - PDF export regression in mixed LTR-RTL context"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=128295">128295</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PDF export regression in mixed LTR-RTL context
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.2.7.1 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>page74010-sf@yahoo.fr
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=155193" name="attach_155193" title="Arabic text with formula objects">attachment 155193</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=155193&action=edit" title="Arabic text with formula objects">[details]</a></span>
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
<a href="https://ask.libreoffice.org/fr/question/213665/pourquoi-les-caractere-francais-sont-ils-illisibles-dans-fichier-bilingue-ar-fr-pdf-exporte-par-libreoffice/">https://ask.libreoffice.org/fr/question/213665/pourquoi-les-caractere-francais-sont-ils-illisibles-dans-fichier-bilingue-ar-fr-pdf-exporte-par-libreoffice/</a>

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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>