Bug 442046 - copy-paste from LTR languages bring reversed text
Summary: copy-paste from LTR languages bring reversed text
Status: RESOLVED DUPLICATE of bug 207748
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 21.08.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-05 17:39 UTC by Adam Golański
Modified: 2022-08-05 14:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 David Hurka 2022-08-05 14:36:29 UTC

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