### Enumeration

# GLib UnicodeScript

#### Declaration

    enum GLib.UnicodeScript

#### Description [src]

The `GUnicodeScript` enumeration identifies different writing systems. The values correspond to the names as defined in the Unicode standard. The enumeration has been added in GLib 2.14, and is interchangeable with `PangoScript`.

Note that new types may be added in the future. Applications should be ready to handle unknown values. See Unicode Standard Annex #24: Script names.

#### Members

Name | Description
--- | ---
`G_UNICODE_SCRIPT_INVALID_CODE` | A value never returned from `g_unichar_get_script()`
`G_UNICODE_SCRIPT_COMMON` | A character used by multiple different scripts.
`G_UNICODE_SCRIPT_INHERITED` | A mark glyph that takes its script from the base glyph to which it is attached.
`G_UNICODE_SCRIPT_ARABIC` | Arabic.
`G_UNICODE_SCRIPT_ARMENIAN` | Armenian.
`G_UNICODE_SCRIPT_BENGALI` | Bengali.
`G_UNICODE_SCRIPT_BOPOMOFO` | Bopomofo.
`G_UNICODE_SCRIPT_CHEROKEE` | Cherokee.
`G_UNICODE_SCRIPT_COPTIC` | Coptic.
`G_UNICODE_SCRIPT_CYRILLIC` | Cyrillic.
`G_UNICODE_SCRIPT_DESERET` | Deseret.
`G_UNICODE_SCRIPT_DEVANAGARI` | Devanagari.
`G_UNICODE_SCRIPT_ETHIOPIC` | Ethiopic.
`G_UNICODE_SCRIPT_GEORGIAN` | Georgian.
`G_UNICODE_SCRIPT_GOTHIC` | Gothic.
`G_UNICODE_SCRIPT_GREEK` | Greek.
`G_UNICODE_SCRIPT_GUJARATI` | Gujarati.
`G_UNICODE_SCRIPT_GURMUKHI` | Gurmukhi.
`G_UNICODE_SCRIPT_HAN` | Han.
`G_UNICODE_SCRIPT_HANGUL` | Hangul.
`G_UNICODE_SCRIPT_HEBREW` | Hebrew.
`G_UNICODE_SCRIPT_HIRAGANA` | Hiragana.
`G_UNICODE_SCRIPT_KANNADA` | Kannada.
`G_UNICODE_SCRIPT_KATAKANA` | Katakana.
`G_UNICODE_SCRIPT_KHMER` | Khmer.
`G_UNICODE_SCRIPT_LAO` | Lao.
`G_UNICODE_SCRIPT_LATIN` | Latin.
`G_UNICODE_SCRIPT_MALAYALAM` | Malayalam.
`G_UNICODE_SCRIPT_MONGOLIAN` | Mongolian.
`G_UNICODE_SCRIPT_MYANMAR` | Myanmar.
`G_UNICODE_SCRIPT_OGHAM` | Ogham.
`G_UNICODE_SCRIPT_OLD_ITALIC` | Old Italic.
`G_UNICODE_SCRIPT_ORIYA` | Oriya.
`G_UNICODE_SCRIPT_RUNIC` | Runic.
`G_UNICODE_SCRIPT_SINHALA` | Sinhala.
`G_UNICODE_SCRIPT_SYRIAC` | Syriac.
`G_UNICODE_SCRIPT_TAMIL` | Tamil.
`G_UNICODE_SCRIPT_TELUGU` | Telugu.
`G_UNICODE_SCRIPT_THAANA` | Thaana.
`G_UNICODE_SCRIPT_THAI` | Thai.
`G_UNICODE_SCRIPT_TIBETAN` | Tibetan.
`G_UNICODE_SCRIPT_CANADIAN_ABORIGINAL` | Canadian Aboriginal.
`G_UNICODE_SCRIPT_YI` | Yi.
`G_UNICODE_SCRIPT_TAGALOG` | Tagalog.
`G_UNICODE_SCRIPT_HANUNOO` | Hanunoo.
`G_UNICODE_SCRIPT_BUHID` | Buhid.
`G_UNICODE_SCRIPT_TAGBANWA` | Tagbanwa.
`G_UNICODE_SCRIPT_BRAILLE` | Braille.
`G_UNICODE_SCRIPT_CYPRIOT` | Cypriot.
`G_UNICODE_SCRIPT_LIMBU` | Limbu.
`G_UNICODE_SCRIPT_OSMANYA` | Osmanya.
`G_UNICODE_SCRIPT_SHAVIAN` | Shavian.
`G_UNICODE_SCRIPT_LINEAR_B` | Linear B.
`G_UNICODE_SCRIPT_TAI_LE` | Tai Le.
`G_UNICODE_SCRIPT_UGARITIC` | Ugaritic.
`G_UNICODE_SCRIPT_NEW_TAI_LUE` | New Tai Lue.
`G_UNICODE_SCRIPT_BUGINESE` | Buginese.
`G_UNICODE_SCRIPT_GLAGOLITIC` | Glagolitic.
`G_UNICODE_SCRIPT_TIFINAGH` | Tifinagh.
`G_UNICODE_SCRIPT_SYLOTI_NAGRI` | Syloti Nagri.
`G_UNICODE_SCRIPT_OLD_PERSIAN` | Old Persian.
`G_UNICODE_SCRIPT_KHAROSHTHI` | Kharoshthi.
`G_UNICODE_SCRIPT_UNKNOWN` | An unassigned code point.
`G_UNICODE_SCRIPT_BALINESE` | Balinese.
`G_UNICODE_SCRIPT_CUNEIFORM` | Cuneiform.
`G_UNICODE_SCRIPT_PHOENICIAN` | Phoenician.
`G_UNICODE_SCRIPT_PHAGS_PA` | Phags-pa.
`G_UNICODE_SCRIPT_NKO` | N’Ko.
`G_UNICODE_SCRIPT_KAYAH_LI` | Kayah Li. Since 2.16.3
`G_UNICODE_SCRIPT_LEPCHA` | Lepcha. Since 2.16.3
`G_UNICODE_SCRIPT_REJANG` | Rejang. Since 2.16.3
`G_UNICODE_SCRIPT_SUNDANESE` | Sundanese. Since 2.16.3
`G_UNICODE_SCRIPT_SAURASHTRA` | Saurashtra. Since 2.16.3
`G_UNICODE_SCRIPT_CHAM` | Cham. Since 2.16.3
`G_UNICODE_SCRIPT_OL_CHIKI` | Ol Chiki. Since 2.16.3
`G_UNICODE_SCRIPT_VAI` | Vai. Since 2.16.3
`G_UNICODE_SCRIPT_CARIAN` | Carian. Since 2.16.3
`G_UNICODE_SCRIPT_LYCIAN` | Lycian. Since 2.16.3
`G_UNICODE_SCRIPT_LYDIAN` | Lydian. Since 2.16.3
`G_UNICODE_SCRIPT_AVESTAN` | Avestan. Since 2.26
`G_UNICODE_SCRIPT_BAMUM` | Bamum. Since 2.26
`G_UNICODE_SCRIPT_EGYPTIAN_HIEROGLYPHS` | Egyptian Hieroglpyhs. Since 2.26
`G_UNICODE_SCRIPT_IMPERIAL_ARAMAIC` | Imperial Aramaic. Since 2.26
`G_UNICODE_SCRIPT_INSCRIPTIONAL_PAHLAVI` | Inscriptional Pahlavi. Since 2.26
`G_UNICODE_SCRIPT_INSCRIPTIONAL_PARTHIAN` | Inscriptional Parthian. Since 2.26
`G_UNICODE_SCRIPT_JAVANESE` | Javanese. Since 2.26
`G_UNICODE_SCRIPT_KAITHI` | Kaithi. Since 2.26
`G_UNICODE_SCRIPT_LISU` | Lisu. Since 2.26
`G_UNICODE_SCRIPT_MEETEI_MAYEK` | Meetei Mayek. Since 2.26
`G_UNICODE_SCRIPT_OLD_SOUTH_ARABIAN` | Old South Arabian. Since 2.26
`G_UNICODE_SCRIPT_OLD_TURKIC` | Old Turkic. Since 2.28
`G_UNICODE_SCRIPT_SAMARITAN` | Samaritan. Since 2.26
`G_UNICODE_SCRIPT_TAI_THAM` | Tai Tham. Since 2.26
`G_UNICODE_SCRIPT_TAI_VIET` | Tai Viet. Since 2.26
`G_UNICODE_SCRIPT_BATAK` | Batak. Since 2.28
`G_UNICODE_SCRIPT_BRAHMI` | Brahmi. Since 2.28
`G_UNICODE_SCRIPT_MANDAIC` | Mandaic. Since 2.28
`G_UNICODE_SCRIPT_CHAKMA` | Chakma. Since: 2.32
`G_UNICODE_SCRIPT_MEROITIC_CURSIVE` | Meroitic Cursive. Since: 2.32
`G_UNICODE_SCRIPT_MEROITIC_HIEROGLYPHS` | Meroitic Hieroglyphs. Since: 2.32
`G_UNICODE_SCRIPT_MIAO` | Miao. Since: 2.32
`G_UNICODE_SCRIPT_SHARADA` | Sharada. Since: 2.32
`G_UNICODE_SCRIPT_SORA_SOMPENG` | Sora Sompeng. Since: 2.32
`G_UNICODE_SCRIPT_TAKRI` | Takri. Since: 2.32
`G_UNICODE_SCRIPT_BASSA_VAH` | Bassa. Since: 2.42
`G_UNICODE_SCRIPT_CAUCASIAN_ALBANIAN` | Caucasian Albanian. Since: 2.42
`G_UNICODE_SCRIPT_DUPLOYAN` | Duployan. Since: 2.42
`G_UNICODE_SCRIPT_ELBASAN` | Elbasan. Since: 2.42
`G_UNICODE_SCRIPT_GRANTHA` | Grantha. Since: 2.42
`G_UNICODE_SCRIPT_KHOJKI` | Kjohki. Since: 2.42
`G_UNICODE_SCRIPT_KHUDAWADI` | Khudawadi, Sindhi. Since: 2.42
`G_UNICODE_SCRIPT_LINEAR_A` | Linear A. Since: 2.42
`G_UNICODE_SCRIPT_MAHAJANI` | Mahajani. Since: 2.42
`G_UNICODE_SCRIPT_MANICHAEAN` | Manichaean. Since: 2.42
`G_UNICODE_SCRIPT_MENDE_KIKAKUI` | Mende Kikakui. Since: 2.42
`G_UNICODE_SCRIPT_MODI` | Modi. Since: 2.42
`G_UNICODE_SCRIPT_MRO` | Mro. Since: 2.42
`G_UNICODE_SCRIPT_NABATAEAN` | Nabataean. Since: 2.42
`G_UNICODE_SCRIPT_OLD_NORTH_ARABIAN` | Old North Arabian. Since: 2.42
`G_UNICODE_SCRIPT_OLD_PERMIC` | Old Permic. Since: 2.42
`G_UNICODE_SCRIPT_PAHAWH_HMONG` | Pahawh Hmong. Since: 2.42
`G_UNICODE_SCRIPT_PALMYRENE` | Palmyrene. Since: 2.42
`G_UNICODE_SCRIPT_PAU_CIN_HAU` | Pau Cin Hau. Since: 2.42
`G_UNICODE_SCRIPT_PSALTER_PAHLAVI` | Psalter Pahlavi. Since: 2.42
`G_UNICODE_SCRIPT_SIDDHAM` | Siddham. Since: 2.42
`G_UNICODE_SCRIPT_TIRHUTA` | Tirhuta. Since: 2.42
`G_UNICODE_SCRIPT_WARANG_CITI` | Warang Citi. Since: 2.42
`G_UNICODE_SCRIPT_AHOM` | Ahom. Since: 2.48
`G_UNICODE_SCRIPT_ANATOLIAN_HIEROGLYPHS` | Anatolian Hieroglyphs. Since: 2.48
`G_UNICODE_SCRIPT_HATRAN` | Hatran. Since: 2.48
`G_UNICODE_SCRIPT_MULTANI` | Multani. Since: 2.48
`G_UNICODE_SCRIPT_OLD_HUNGARIAN` | Old Hungarian. Since: 2.48
`G_UNICODE_SCRIPT_SIGNWRITING` | Signwriting. Since: 2.48
`G_UNICODE_SCRIPT_ADLAM` | Adlam. Since: 2.50
`G_UNICODE_SCRIPT_BHAIKSUKI` | Bhaiksuki. Since: 2.50
`G_UNICODE_SCRIPT_MARCHEN` | Marchen. Since: 2.50
`G_UNICODE_SCRIPT_NEWA` | Newa. Since: 2.50
`G_UNICODE_SCRIPT_OSAGE` | Osage. Since: 2.50
`G_UNICODE_SCRIPT_TANGUT` | Tangut. Since: 2.50
`G_UNICODE_SCRIPT_MASARAM_GONDI` | Masaram Gondi. Since: 2.54
`G_UNICODE_SCRIPT_NUSHU` | Nushu. Since: 2.54
`G_UNICODE_SCRIPT_SOYOMBO` | Soyombo. Since: 2.54
`G_UNICODE_SCRIPT_ZANABAZAR_SQUARE` | Zanabazar Square. Since: 2.54
`G_UNICODE_SCRIPT_DOGRA` | Dogra. Since: 2.58
`G_UNICODE_SCRIPT_GUNJALA_GONDI` | Gunjala Gondi. Since: 2.58
`G_UNICODE_SCRIPT_HANIFI_ROHINGYA` | Hanifi Rohingya. Since: 2.58
`G_UNICODE_SCRIPT_MAKASAR` | Makasar. Since: 2.58
`G_UNICODE_SCRIPT_MEDEFAIDRIN` | Medefaidrin. Since: 2.58
`G_UNICODE_SCRIPT_OLD_SOGDIAN` | Old Sogdian. Since: 2.58
`G_UNICODE_SCRIPT_SOGDIAN` | Sogdian. Since: 2.58
`G_UNICODE_SCRIPT_ELYMAIC` | Elym. Since: 2.62
`G_UNICODE_SCRIPT_NANDINAGARI` | Nand. Since: 2.62
`G_UNICODE_SCRIPT_NYIAKENG_PUACHUE_HMONG` | Rohg. Since: 2.62
`G_UNICODE_SCRIPT_WANCHO` | Wcho. Since: 2.62
`G_UNICODE_SCRIPT_CHORASMIAN` | Chorasmian. Since: 2.66
`G_UNICODE_SCRIPT_DIVES_AKURU` | Dives Akuru. Since: 2.66
`G_UNICODE_SCRIPT_KHITAN_SMALL_SCRIPT` | Khitan small script. Since: 2.66
`G_UNICODE_SCRIPT_YEZIDI` | Yezidi. Since: 2.66
`G_UNICODE_SCRIPT_CYPRO_MINOAN` | Cypro-Minoan. Since: 2.72
`G_UNICODE_SCRIPT_OLD_UYGHUR` | Old Uyghur. Since: 2.72
`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
`G_UNICODE_SCRIPT_KAWI` | Kawi. Since 2.74
`G_UNICODE_SCRIPT_NAG_MUNDARI` | Nag Mundari. Since 2.74

#### Type functions

###### g_unicode_script_from_iso15924

Looks up the Unicode script for `iso15924`. ISO 15924 assigns four-letter codes to scripts. For example, the code for Arabic is ‘Arab’. This function accepts four letter codes encoded as a `guint32` in a big-endian fashion. That is, the code expected for Arabic is 0x41726162 (0x41 is ASCII code for ‘A’, 0x72 is ASCII code for ‘r’, etc).

since: 2.30

###### g_unicode_script_to_iso15924

Looks up the ISO 15924 code for `script`. ISO 15924 assigns four-letter codes to scripts. For example, the code for Arabic is ‘Arab’. The four letter codes are encoded as a `guint32` by this function in a big-endian fashion. That is, the code returned for Arabic is 0x41726162 (0x41 is ASCII code for ‘A’, 0x72 is ASCII code for ‘r’, etc).

since: 2.30