[Libreoffice-bugs] [Bug 89471] FILEOPEN pdf: When opening a PDF with RTL language text in Draw, text gets mirrored

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Jun 17 01:39:20 UTC 2019


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

--- Comment #18 from Khaled Hosny <dr.khaled.hosny at gmail.com> ---
PDF outputs glyphs in visual order, so the original (logical) order of the text
is lost, so the reverse of the bidi algorithm needs to be applied to the text
extracted from the PDF, but there is no reliable or documented algorithm to do
this.

ICU's bidi implementation has modes for applying the reverse of bidi algorithm
(see the last three modes documented in
http://icu-project.org/apiref/icu4c/ubidi_8h.html#afe123acc1196c4d7363f968ca6af6faa),
I have never used them myself but if someone wants to work on this they may
prove to be useful.

-- 
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/20190617/c430a9ac/attachment.html>


More information about the Libreoffice-bugs mailing list