Bug 454552

Summary: Okular Typewriter tool reversing RTL text
Product: [Applications] okular Reporter: Yaron Shahrabani <sh.yaron>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal CC: alon.barlev, omeritzicschwartz, sh.yaron
Priority: NOR Keywords: rtl
Version First Reported In: 22.04.1   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Hebrew reversed
Arabic reversed and unjoined

Description Yaron Shahrabani 2022-05-29 08:00:49 UTC
Created attachment 149303 [details]
Hebrew reversed

STEPS TO REPRODUCE
1. Open your favorite PDF file
2. Launch the Typewriter tool (or hit Alt+5)
3. Click a desired area for the annotation
4. Write an annotation in either Hebrew, Arabic, Persian, Urdu or any other RTL language
5. Click OK and observe the results

OBSERVED RESULT
The text is reversed

EXPECTED RESULT
The text should appear as typed

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Manjaro Qonos 21.2.6
KDE Plasma Version: 2.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION
This bug is preserved when saving the PDF
Comment 1 Yaron Shahrabani 2022-05-29 08:01:54 UTC
Created attachment 149304 [details]
Arabic reversed and unjoined
Comment 2 Yaron Shahrabani 2022-05-29 13:14:40 UTC
Another comments from the Israeli Linux community on Telegram:

Q: Does adding RLM/RLE/RLO at the beginning changes that behavior?
A: No.

Q: Does switching the Right to Left setting on or off changes that behavior?
A: No.
Comment 3 Alon Bar-Lev 2025-01-12 18:28:30 UTC
Hi,
Annotations also are showed in reverse.
I would love to use okular, but need to use it in RTL (Hebrew).
Thanks,