[Konsole-devel] [Bug 13063] BUG:konsole cannot deal with CJK correctly.

Chelsea Buchanan & Keith Briscoe cheeth at nwlink.com
Tue Jul 8 01:32:47 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=13063     




------- Additional Comments From cheeth at nwlink.com  2003-07-08 03:32 -------
I wouldn't say I'm a regular CJK user, and I'm not sure what the "proper
behavior" is, if it is even defined, but I've noticed this on konsole as well.

My LANG=en_US.UTF-8.  Konsole works great with Latin-X characters, and even
Katakana, but when I try to display CJK ideographs or Tibetan characters, extra
spacing is inserted horizontally between the characters.

I really REALLY am no expert in this, but since KWord doesn't insert spacing, I
don't believe Konsole should (okay, I know Konsole has the grid to contend with).

Anyway, the function wcwidth() can be used to determine how many columns a wide
character takes up when displayed on the console.  I figure it should go like this:

ABCD??EFG

Where "??" is a single CJK ideograph that has a wcwidth of 2.

Right now, it looks more like ABCD   ?? EFG

And this is the interesting part, when you SELECT CJK text, the highlighted
characters are left-shifted so that they take up what I would consider to be the
correct amount of columns.  So if you can figure out what's going on there, it
may already be coded!

I'll try to create an attachment of some random wide characters for you to play
with.


More information about the konsole-devel mailing list