Bug 429869

Summary: Search for RTL text is reversed
Product: [Applications] okular Reporter: medin <med.medin.2014>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: parsa2820, sh.yaron
Priority: NOR Keywords: rtl
Version: 1.11.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Search for RTL text is reversed

Description medin 2020-11-30 22:36:03 UTC
Created attachment 133760 [details]
Search for RTL text is reversed

When I search for a word written in arabic, Okular search character by character from left to right. See attached image for more info.
Comment 1 Parsa Mohammadian 2021-06-22 10:30:20 UTC
This also happen for Persian text. The UI is fine, but it probably tries to iterate search clause from left to write but the PDF text itself from right to left. The problem can be solved by unifying these two iterations.
Comment 2 Parsa Mohammadian 2021-06-22 10:33:33 UTC
(In reply to Parsa Mohammadian from comment #1)
> This also happen for Persian text. The UI is fine, but it probably tries to
> iterate search clause from left to write but the PDF text itself from right
> to left. The problem can be solved by unifying these two iterations.

Edit 1 : This bug is present in booth Windows and Linux Okular version 20.12.2.
Comment 3 Laura David Hurka 2021-06-22 11:39:56 UTC
That is the TextEntity reordering problem. :(

*** This bug has been marked as a duplicate of bug 207748 ***