def _get_decomp_type(chr): if chr == "\u2044": # FRACTION SLASH # special case this for CPython compatibility even though this returns as not being combining, eg, see # http://www.fileformat.info/info/unicode/char/2044/index.htm return "fraction" else: return _decomp[UCharacter.getIntPropertyValue(ord(chr), UProperty.DECOMPOSITION_TYPE)]
def east_asian_width(unichr): return _eaw[UCharacter.getIntPropertyValue(_get_codepoint(unichr), UProperty.EAST_ASIAN_WIDTH)]
def east_asian_width(chr): return _eaw[UCharacter.getIntPropertyValue(_get_codepoint(chr), UProperty.EAST_ASIAN_WIDTH)]