<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Text runs of RTL scripts (e.g. Arabic, Hebrew, Persian) from imported PDF are reversed, PDFIProcessor::mirrorString not behaving"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=104597#c51">Comment # 51</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Text runs of RTL scripts (e.g. Arabic, Hebrew, Persian) from imported PDF are reversed, PDFIProcessor::mirrorString not behaving"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=104597">bug 104597</a>
              from <span class="vcard"><a class="email" href="mailto:vstuart.foote@utsa.edu" title="V Stuart Foote <vstuart.foote@utsa.edu>"> <span class="fn">V Stuart Foote</span></a>
</span></b>
        <pre>(In reply to Alex Cohn from <a href="show_bug.cgi?id=104597#c50">comment #50</a>)
<span class="quote">> > X(curr) + currCharWitdh <-similar-> to X(next)

> only note that for an RTL sequence, this will probably be 

>   X(curr) - currCharWitdh <-similar-> to X(next)</span >

Unfortunately that would not work, for RTL to render correctly they have to be
laid down in the XML in the reverse order from the lexical text run. 

That is the glitch, as the code that detected the RTL for each text run--
bounded by ICU iterators--is broken, and the XML is fed the glyphs in the wrong
reversed order. Text runs get encoded into the Draw canvas in the reversed
sequence. And, there seems to be issues with the correct ICU word and sentence
iterators.</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>