Handle more cases of combining characters
authorThorsten Glaser <tg@mirbsd.de>
Fri, 14 Jul 2017 12:02:44 +0000 (14:02 +0200)
committerMike FABIAN <mfabian@redhat.com>
Thu, 17 Aug 2017 09:06:08 +0000 (11:06 +0200)
[BZ #21750]
* unicode-gen/utf8_gen.py: Treat category Me and Mn as combining.

localedata/unicode-gen/utf8_gen.py

index 12f01d8..332751b 100755 (executable)
@@ -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'