LoginSignup
0
0

More than 5 years have passed since last update.

konsoleでのSKK入力

Last updated at Posted at 2014-12-31

KDEのkonsoleでSKKを使って入力していると、▽や▼が曖昧幅文字なので、表示が欠けたりします。

ソースからコンパイルできるなら、

diff --git a/src/konsole_wcwidth.cpp b/src/konsole_wcwidth.cpp
index c946d16..a59586b 100644
--- a/src/konsole_wcwidth.cpp
+++ b/src/konsole_wcwidth.cpp
@@ -201,7 +201,7 @@ int KONSOLEPRIVATE_EXPORT konsole_wcwidth(quint16 oucs)
     return 1 +
            (ucs >= 0x1100 &&
             (ucs <= 0x115f ||                    /* Hangul Jamo init. consonants */
-             ucs == 0x2329 || ucs == 0x232a ||
+             ucs == 0x2329 || ucs == 0x232a || ucs == 0x25bd || ucs == 0x25bc ||
              (ucs >= 0x2e80 && ucs <= 0xa4cf &&
               ucs != 0x303f) ||                  /* CJK ... Yi */
              (ucs >= 0xac00 && ucs <= 0xd7a3) || /* Hangul Syllables */

というふうに強引に▽と▼だけ幅を2とするように対応させてみました。

また気になる曖昧幅文字が出てきたら、追加して対応すればよいかなと思っています。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0