[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
Tue Jun 25 12:37:55 UTC 2019


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

V Stuart Foote <vstuart.foote at utsa.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |43808
            Summary|Persian in imported PDF     |Text runs of RTL scripts
                   |gets reversed               |(e.g. Arabic, Hebrew,
                   |                            |Persian) from imported PDF
                   |                            |are reversed,
                   |                            |PDFIProcessor::mirrorString
                   |                            |not behaving
                 CC|                            |dr.khaled.hosny at gmail.com,
                   |                            |vstuart.foote at utsa.edu,
                   |                            |vvort at yandex.ru

--- Comment #13 from V Stuart Foote <vstuart.foote at utsa.edu> ---
Not clear if the (isRTL) is applied logically to do the mirror::String() [1]? I
get confused walking through the code. Where we check for RTL [2] checking
character by character with GetCharacterClassification () [3] using the ICU lib
 getUnicodeDirection() by Unicode block [4] to classify the text run.

So the string should be mirrored/reversed when written out to document canvas.
But something is misapplied.

=-refs-=

[1]
https://opengrok.libreoffice.org/xref/core/sdext/source/pdfimport/tree/pdfiprocessor.cxx?r=58e31745#699

[2]
https://opengrok.libreoffice.org/xref/core/sdext/source/pdfimport/tree/drawtreevisiting.cxx?r=8b663bc8&h=91#108

[3]
https://opengrok.libreoffice.org/xref/core/i18nutil/source/utility/scripttypedetector.cxx?r=97844a11&h=42#50

[4]
https://opengrok.libreoffice.org/xref/core/i18nutil/source/utility/unicode.cxx?r=c3c620c8&h=81#81


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=43808
[Bug 43808] [META] Right-To-Left (aka Complex Text Layout) language issues
(RTL/CTL)
-- 
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/20190625/270b2d04/attachment.html>


More information about the Libreoffice-bugs mailing list