glib: Update Unicode Character Database to version 13.0.0

Using commands:
```
glib/gen-unicode-tables.pl -both 13.0.0 path/to/UCD
tests/gen-casefold-txt.py 13.0.0 path/to/UCD/CaseFolding.txt \
   > tests/casefold.txt
tests/gen-casemap-txt.py 13.0.0 path/to/UCD/UnicodeData.txt \
   path/to/UCD/SpecialCasing.txt > tests/casemap.txt
```

Using UCD release https://www.unicode.org/Public/zipped/13.0.0/UCD.zip

With some manual additions to `GUnicodeScript` for the 4 new scripts
added in 13.0, using the first assigned character in each block in
`glib/tests/unicode.c`.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall
2020-03-18 14:50:35 +00:00
parent bba5576fb2
commit a19e554517
10 changed files with 5675 additions and 4866 deletions

View File

@@ -331,6 +331,10 @@ test_unichar_script (void)
{ G_UNICODE_SCRIPT_NANDINAGARI, 0x119A0 },
{ G_UNICODE_SCRIPT_NYIAKENG_PUACHUE_HMONG, 0x1E100 },
{ G_UNICODE_SCRIPT_WANCHO, 0x1E2C0 },
{ G_UNICODE_SCRIPT_CHORASMIAN, 0x10FB0 },
{ G_UNICODE_SCRIPT_DIVES_AKURU, 0x11900 },
{ G_UNICODE_SCRIPT_KHITAN_SMALL_SCRIPT, 0x18B00 },
{ G_UNICODE_SCRIPT_YEZIDI, 0x10E80 },
};
for (i = 0; i < G_N_ELEMENTS (examples); i++)
g_assert_cmpint (g_unichar_get_script (examples[i].c), ==, examples[i].script);
@@ -1567,6 +1571,12 @@ test_iso15924 (void)
{ G_UNICODE_SCRIPT_NANDINAGARI, "Nand" },
{ G_UNICODE_SCRIPT_NYIAKENG_PUACHUE_HMONG, "Hmnp" },
{ G_UNICODE_SCRIPT_WANCHO, "Wcho" },
/* Unicode 13.0 additions */
{ G_UNICODE_SCRIPT_CHORASMIAN, "Chrs" },
{ G_UNICODE_SCRIPT_DIVES_AKURU, "Diak" },
{ G_UNICODE_SCRIPT_KHITAN_SMALL_SCRIPT, "Kits" },
{ G_UNICODE_SCRIPT_YEZIDI, "Yezi" },
};
guint i;