Bug 280738

Summary: Select text with mouse in bidi text, like Arabic, highlights wrong part of sentence
Product: [Applications] konsole Reporter: Fred Vos <fred>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: alekulyn, cpigat242
Priority: NOR Keywords: rtl
Version: 2.9   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Fred Vos 2011-08-24 21:45:42 UTC
Version:           2.6.2 (using KDE 4.6.2) 
OS:                Linux

Arabic text in Konsole with BiDi text mode activated for the current profile, shows Arabic text from right to left. That's the correct behavior for Konsole.

However, if you select a word at the end of a line of text, a part from the start of the line is highlighted and vice versa.

Best regards,

Fred



Reproducible: Always

Steps to Reproduce:
1. Make sure BiDi is activated for the selected profile (advanced tab)

2. Paste the following text in konsole on the command line:

أنا أحب اللغة العربية

(Anaa Uhibbu alluga alarabyya, I love the Arabic language)

3. Use the mouse to select a word at the beginning (right) or end (left) of this line.

4. Use the mouse to select a word at the end or a word at the beginning of this sentence.



Actual Results:  
Text from the beginning highlights if you select a word from the end and vice versa. 

Expected Results:  
Highlighted text from selected part of the string.
Comment 1 Fred Vos 2012-08-16 21:19:27 UTC
In Konsole version 2.8.4 (KDE Development Platform version 4.8.4) th problem still exists.