Created attachment 68861
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 received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is a bug assignee.
https://bugs.launchpad.net/bugs/127732

Title:
  Searching Hebrew text works in reverse order

To manage notifications about this bug go to:
https://bugs.launchpad.net/poppler/+bug/127732/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to