Bug 429869 - Search for RTL text is reversed
Summary: Search for RTL text is reversed
Status: RESOLVED DUPLICATE of bug 207748
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.11.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords: rtl
Depends on:
Blocks:
 
Reported: 2020-11-30 22:36 UTC by medin
Modified: 2021-06-22 11:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Search for RTL text is reversed (62.86 KB, image/png)
2020-11-30 22:36 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***