Bug 54544

Summary: kwrite misnumbers columns in right-to-left scripts
Product: [Applications] kate Reporter: phma
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description phma 2003-02-12 16:33:32 UTC
Version:           4.1 (using KDE 3.0.9)
Compiler:          gcc version 3.2
OS:          Linux (i686) release 2.4.19

A file has lines with English, Lojban, and Hebrew as follows:
hebrew OBRYT xebro
This displays as
hebrew TYRBO xebro
but the column number for the T is 8, not 12, and the right-arrow steps through the characters in left-to-right order as displayed, not "w O" with the cursor jumping and moving backward as kmail does.

There should pe'i be two modes: one in which characters are displayed in native order, with all ligatures combined, and one in which they are displayed left-to-right, including the characters that define the order, the ZWNJ, etc.

Also, any character which isn't in my default font (Courier New) is three times as wide. These include Hindi, Arabic, Chinese, Japanese, Korean, Hebrew, Kartuli, Gujarati, Amharic, and Nagari, but not Cyrillic, Greek, Vietnamese, or Klingon (the last two display as slugs, though the Klingon characters exist in Clearlyu).
Comment 1 Christoph Cullmann 2003-05-22 23:45:44 UTC
ah, an other bidi problem, duplicate of the bidi bug 

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