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

2015-05-18 Thread Nicholas Marriott
Hi I think you will have another table of ambiguous width characters in utf8.c which it can check (maybe depending on LOCALE, I guess that is how wcwidth does it). On Mon, May 18, 2015 at 11:23:27PM +0900, Kohei Suzuki wrote: >The character ranges are listed in >[1]http://www.unicode.org

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 > > How does wcwidth figu

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

2015-05-18 Thread Nicholas Marriott
Hi How does wcwidth figure this out? What are the character ranges? On Mon, May 18, 2015 at 09:24:37PM +0900, Kohei Suzuki wrote: >Thank you for reviewing. >Okey, then how about adding a new option "ambiguous-width" which controls >the width of East Asian ambiguous width characters?

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.com 2015-05

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

2015-05-17 Thread Nicholas Marriott
Hi We can't do this because tmux must know the width of the UTF-8 character but the locale may not be UTF-8. On Mon, May 18, 2015 at 01:59:11AM +0900, Kohei Suzuki wrote: >Several characters' width are depending on locale. They're called East >Asian Width. For instance, U+03B1 (GREEK SM