Bug 470192

Summary: Okular shows the RTL text in correct view but reads it from left to right
Product: [Applications] okular Reporter: mh-firouzjah <mh.firouzjah>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: major    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Okular successful result to find RTL text in reversed char order

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.