Bug 470192 - Okular shows the RTL text in correct view but reads it from left to right
Summary: Okular shows the RTL text in correct view but reads it from left to right
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-24 04:45 UTC by mh-firouzjah
Modified: 2023-05-24 04:45 UTC (History)
0 users

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


Attachments
Okular successful result to find RTL text in reversed char order (165.23 KB, image/png)
2023-05-24 04:45 UTC, mh-firouzjah
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mh-firouzjah 2023-05-24 04:45:23 UTC
Created attachment 159218 [details]
Okular successful result to find RTL text in reversed char order

Hi there,
It's a major bug in Okular PDF reader app, when I want to search for a word in RTL language if I type the word in reverse order of characters it will find it but if I type the word as the correct way in RTL version, it can not find it!
The same problem with copy/paste text from Okular, an RTL text in correct view copied from Okular and pasted to another app will be in reversed character order too!
It seems that Okular it self will read any text from left to right even if the text is in a RTL language; it's not clear for me how Okular shows the RTL text in a good format but reads it from left to right!!
I don't know how apps are figuring out BiDi of a text, but if a text contains `U+202E` so it probably is a RTL text.