Functions | |
| def | _char_in_map (char, map) |
| def | get_char_width (char) |
| A module to handle different character widths on the console. More... | |
Variables | |
| list | _COMBINING_CHARS |
| list | _EAST_ASIAN_WILD_CHARS |
|
private |
Definition at line 42 of file charwidth.py.
| def robot.utils.charwidth.get_char_width | ( | char | ) |
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.
[1] https://github.com/robotframework/robotframework/issues/604 [2] https://github.com/robotframework/robotframework/issues/1096
Definition at line 34 of file charwidth.py.
|
private |
Definition at line 54 of file charwidth.py.
|
private |
Definition at line 59 of file charwidth.py.