Open rago1975 opened 8 years ago
Hi, I got a similar problem and I propose to completely replace the ancient Konsole wcwidth implementation with a modern one: #94. Could you have a try on it?
Thanks for information, I will try.
Sorry, I have looked into your codes more carefully and found that my patch may not solve your problem.
Seems related: https://bugs.kde.org/show_bug.cgi?id=41744 https://bugs.kde.org/show_bug.cgi?id=387759
How VTE handles it: https://github.com/GNOME/vte/blob/master/doc/ambiguous.txt
In
lib/konsole_wcwidth.cpp
, lines 142-216, there are commented out codes, which treat width of characters in the East Asian Ambiguous category (defined in Unicode Technical Report 11).Because I want to use these characters as double width character (width is 2) for using Vim, I added modifications to use these codes. The commit is here.
If there is someone who wants to use modified codes as a package, I will prepare as localized package (named like qtermwidget-cjk).