[glib/unicode-14-updates] Add new scripts to our iso15924 apis



commit ff32c1626f945535003bb3d5404a4d7ce6453730
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Sep 20 08:58:32 2021 -0400

    Add new scripts to our iso15924 apis
    
    The scripts aren't technically part of the standard
    yet, but thats only a matter of (hopefully short)
    time.

 glib/guniprop.c      | 8 ++++++++
 glib/tests/unicode.c | 7 +++++++
 2 files changed, 15 insertions(+)
---
diff --git a/glib/guniprop.c b/glib/guniprop.c
index 2903367d4..ce298d216 100644
--- a/glib/guniprop.c
+++ b/glib/guniprop.c
@@ -1486,6 +1486,14 @@ static const guint32 iso15924_tags[] =
     PACK ('D', 'i', 'a', 'k'), /* G_UNICODE_SCRIPT_DIVES_AKURU */
     PACK ('K', 'i', 't', 's'), /* G_UNICODE_SCRIPT_KHITAN_SMALL_SCRIPT */
     PACK ('Y', 'e', 'z', 'i'), /* G_UNICODE_SCRIPT_YEZIDI */
+
+  /* Unicode 14.0 additions */
+    PACK ('C', 'p', 'm', 'n'), /* G_UNICODE_SCRIPT_CYPRO_MINOAN */
+    PACK ('O', 'u', 'g', 'r'), /* G_UNICODE_SCRIPT_OLD_UYHUR */
+    PACK ('T', 'n', 's', 'a'), /* G_UNICODE_SCRIPT_TANGSA */
+    PACK ('T', 'o', 'T', 'o'), /* G_UNICODE_SCRIPT_TOTO */
+    PACK ('V', 'i', 't', 'h'), /* G_UNICODE_SCRIPT_VITHKUQI */
+
 #undef PACK
 };
 
diff --git a/glib/tests/unicode.c b/glib/tests/unicode.c
index 6049260ec..9d6596687 100644
--- a/glib/tests/unicode.c
+++ b/glib/tests/unicode.c
@@ -1671,6 +1671,13 @@ test_iso15924 (void)
     { G_UNICODE_SCRIPT_DIVES_AKURU,            "Diak" },
     { G_UNICODE_SCRIPT_KHITAN_SMALL_SCRIPT,    "Kits" },
     { G_UNICODE_SCRIPT_YEZIDI,                 "Yezi" },
+
+    /* Unicode 14.0 additions */
+    { G_UNICODE_SCRIPT_CYPRO_MINOAN,           "Cpmn" },
+    { G_UNICODE_SCRIPT_OLD_UYGHUR,             "Ougr" },
+    { G_UNICODE_SCRIPT_TANGSA,                 "Tnsa" },
+    { G_UNICODE_SCRIPT_TOTO,                   "Toto" },
+    { G_UNICODE_SCRIPT_VITHKUQI,               "Vith" }
   };
   guint i;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]