Handle more cases of combining characters

[BZ #21750]
* unicode-gen/utf8_gen.py: Treat category Me and Mn as combining.
This commit is contained in:
Thorsten Glaser 2017-07-14 14:02:44 +02:00 committed by Mike FABIAN
parent 580be3035d
commit 41b6f0ce85

View File

@ -232,7 +232,7 @@ def process_width(outfile, ulines, elines):
width_dict[key] = unicode_utils.ucs_symbol(key) + '\t2'
for line in ulines:
fields = line.split(";")
if fields[4] == "NSM" or fields[2] == "Cf":
if fields[4] == "NSM" or fields[2] in ("Cf", "Me", "Mn"):
width_dict[int(fields[0], 16)] = unicode_utils.ucs_symbol(
int(fields[0], 16)) + '\t0'