Bug 442046

Summary: copy-paste from LTR languages bring reversed text
Product: [Applications] okular Reporter: Adam Golański <adam.golanski>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 21.08.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Adam Golański 2021-09-05 17:39:19 UTC
SUMMARY

Copying arabic and hebrew text strings from Okular to paste it in another program makes them reversed and garbled. Changing LTR settings doesn't help.
I've tested this with Foxit PDF Reader and it worked OK.  


STEPS TO REPRODUCE
1. select and copy to clipboard arabic or hebrew text in Okular, for example
אשר, האיש—אשר לא הלך, בעצת רשעים
ال َق ِدي ْ 


2. paste it to Libre Office or Google Docs

OBSERVED RESULT

you're getting something like 
םיעשר תצעב ,ךלה אל רשא—שיאה ,רשא
ر ْ يِ دق َ لا

(yeah, in Arabic its really horrible :D)

EXPECTED RESULT

it should keep correct LTR flow:
אשר, האיש—אשר לא הלך, בעצת רשעים
ال َق ِدي ْ 



SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2
Comment 1 Laura David Hurka 2022-08-05 14:36:29 UTC

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