[Libreoffice-bugs] [Bug 104597] Text runs of RTL scripts (e.g. Arabic, Hebrew, Persian) from imported PDF are reversed, PDFIProcessor::mirrorString not behaving

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jul 15 20:43:11 UTC 2021


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

--- Comment #51 from V Stuart Foote <vstuart.foote at utsa.edu> ---
(In reply to Alex Cohn from comment #50)
> > 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)

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.

-- 
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/20210715/5c8e4673/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list