示例#1
0
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)]
示例#2
0
def east_asian_width(unichr):
    return _eaw[UCharacter.getIntPropertyValue(_get_codepoint(unichr),
                                               UProperty.EAST_ASIAN_WIDTH)]
示例#3
0
def east_asian_width(chr):
    return _eaw[UCharacter.getIntPropertyValue(_get_codepoint(chr), UProperty.EAST_ASIAN_WIDTH)]