Add G_UNICODE_SCRIPT_MATH to GUnicodeScript

This commit is contained in:
Alexis King 2022-02-11 12:42:55 +00:00 committed by Philip Withnall
parent 50d23f9680
commit e85a085ca4
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" },