[Poppler-bugs] [Bug 2981] RTL select, copy/paste and search support for Arabic and Hebrew scripts are missing

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Oct 21 00:03:51 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=2981

--- Comment #9 from alex <alexbodn.groups at gmail.com> ---
Created attachment 68861
  --> https://bugs.freedesktop.org/attachment.cgi?id=68861&action=edit
find bidirectional text


a small workaround for searching rtl text. limited for mixed directional text.

say ABC 123 will render by fribidi as 123 ABC. 
to search for this text in poppler, you'd need to search literally 123 CBA
before this patch.
with this patch, search for ABC 123 as entered. nice.
but if you only search for ABC 12, nothing would be found. that's because this
patch transforms the searched text from logical to visual before the actual
search in the visual text inside poppler, so ABC 12 would render to 12 CBA,
that's not there.

there's a better way to go, which i'll implement later. this would also help
with bidi text select and copy.

this patch will only work if you first apply my last patch to bug 55977. you
also need fribidi or preferably icu. 

please enjoy.
alex

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20121021/70409676/attachment.html>


More information about the Poppler-bugs mailing list