Re: [PATCH] Use wcwidth(1) to calculate character width

2015-05-18 Thread Kohei Suzuki
The character ranges are listed in http://www.unicode.org/Public/UNIDATA/EastAsianWidth.txt . "A" means ambiguous width as described in http://www.unicode.org/reports/tr11/#Definitions . Kohei Suzuki eagle...@gmail.com 2015-05-18 23:16 GMT+09:00 Nicholas Marriott : > Hi > &g

Re: [PATCH] Use wcwidth(1) to calculate character width

2015-05-18 Thread Kohei Suzuki
Thank you for reviewing. Okey, then how about adding a new option "ambiguous-width" which controls the width of East Asian ambiguous width characters? It is set to 1 by default, and users can set it to 2 by `set-option ambiguous-width 2` . Is it acceptable? Kohei Suzuki eagle...@gmail

[PATCH] Use wcwidth(1) to calculate character width

2015-05-17 Thread Kohei Suzuki
Several characters' width are depending on locale. They're called East Asian Width. For instance, U+03B1 (GREEK SMALL LETTER ALPHA) has width 1 in most locales, but it has width 2 in some East Asian locales (e.g. Japanese). Kohei Suzuki eagle...@gmai