Merge branch 'unicode-script-math' into 'main'

Add G_UNICODE_SCRIPT_MATH to GUnicodeScript

See merge request GNOME/glib!2476
This commit is contained in:
Philip Withnall 2022-02-11 12:42:55 +00:00
commit a71ed21116
3 changed files with 8 additions and 0 deletions

View File

@ -435,6 +435,7 @@ typedef enum
* @G_UNICODE_SCRIPT_TANGSA: Tangsa. Since: 2.72
* @G_UNICODE_SCRIPT_TOTO: Toto. Since: 2.72
* @G_UNICODE_SCRIPT_VITHKUQI: Vithkuqi. Since: 2.72
* @G_UNICODE_SCRIPT_MATH: Mathematical notation. Since: 2.72
*
* The #GUnicodeScript enumeration identifies different writing
* systems. The values correspond to the names as defined in the
@ -640,6 +641,9 @@ typedef enum
G_UNICODE_SCRIPT_TANGSA, /* Tnsa */
G_UNICODE_SCRIPT_TOTO, /* Toto */
G_UNICODE_SCRIPT_VITHKUQI, /* Vith */
/* not really a Unicode script, but part of ISO 15924 */
G_UNICODE_SCRIPT_MATH, /* Zmth */
} GUnicodeScript;
GLIB_AVAILABLE_IN_ALL

View File

@ -1501,6 +1501,9 @@ static const guint32 iso15924_tags[] =
PACK ('T', 'o', 't', 'o'), /* G_UNICODE_SCRIPT_TOTO */
PACK ('V', 'i', 't', 'h'), /* G_UNICODE_SCRIPT_VITHKUQI */
/* not really a Unicode script, but part of ISO 15924 */
PACK ('Z', 'm', 't', 'h'), /* G_UNICODE_SCRIPT_MATH */
#undef PACK
};

View File

@ -1587,6 +1587,7 @@ test_iso15924 (void)
} data[] = {
{ G_UNICODE_SCRIPT_COMMON, "Zyyy" },
{ G_UNICODE_SCRIPT_INHERITED, "Zinh" },
{ G_UNICODE_SCRIPT_MATH, "Zmth" },
{ G_UNICODE_SCRIPT_ARABIC, "Arab" },
{ G_UNICODE_SCRIPT_ARMENIAN, "Armn" },
{ G_UNICODE_SCRIPT_BENGALI, "Beng" },