Bug 345512 - Hebrew text is recognized using selection tool with wrong direction
Summary: Hebrew text is recognized using selection tool with wrong direction
Status: RESOLVED DUPLICATE of bug 184399
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.20.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-25 13:16 UTC by oren.ginger
Modified: 2015-03-25 21:02 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The PDF document with hebrew text (15.43 KB, application/pdf)
2015-03-25 13:17 UTC, oren.ginger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description oren.ginger 2015-03-25 13:16:16 UTC
When I tried to copy some text from PDF in Hebrew language (which is written right-to-left), I saw that the symbols in clipboard were written in incorrect direction (left-to-right, like English)

Likely, this bug can be also reproduced with other RTL languages (as Arabic).

Reproducible: Always

Steps to Reproduce:
1. Open the PDF file with Hebrew text in Okular
2. Select some characters using Selection tool
3. In context menu choose Text (N characters) - copy to clipboard
4. Paste copied text into some text editor

Actual Results:  
Pasted text is reversed.
For example, if you copied "שלום עולם" you will see "םלוע םולש"

Expected Results:  
Exactly the selected text should be pasted.

To make your life easier, I created an appropriate PDF file and uploaded it to google drive. https://drive.google.com/file/d/0B9y8M5LJCyb2YmR3dHFFX1R1TWc/view?usp=sharing
Comment 1 oren.ginger 2015-03-25 13:17:38 UTC
Created attachment 91734 [details]
The PDF document with hebrew text

For testing, I prepared this file, so you don't have to set up Hebrew layout.
Comment 2 Albert Astals Cid 2015-03-25 21:02:15 UTC

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