charwidth
A module to handle different character widths on the console.
Some East Asian characters have width of two on console, and combining characters themselves take no extra space.
See issue 604 [1] for more details about East Asian characters. The issue also
contains generate_wild_chars.py
script that was originally used to create
_EAST_ASIAN_WILD_CHARS
mapping. An updated version of the script is attached
to issue 1096. Big thanks for xieyanbo for the script and the original patch.
Python's unicodedata
module was not used here because importing it took
several seconds on Jython. That could possibly be changed now.