Hi,

On 23 August 2012 16:08, Nicholas Cole <[email protected]> wrote:
>
> I've recently been working hard to improve support for non-western
> languages.  A problem I've hit is that there seems to be no reliable
> way to determine how many columns a given unicode character will
> occupy on the terminal, even if you assume the output will be in
> utf-8.

I'm afraid there isn't an official and complete solution.
Take a look at these issues reports:

http://bugs.python.org/issue12568
http://bugs.python.org/issue6755
http://bugs.python.org/issue2382

If you can include C code in your lib I'd use "ucs2w.c" mentioned in
#6755 (NOTE: I wrote it).

Hope it helps,
Iñigo Serna

_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to