:right-sidebar: True
UnicodeScript
===================================================================
.. currentmodule:: gi.repository.GLib
.. class:: UnicodeScript
:no-contents-entry:
The :obj:`~gi.repository.GLib.UnicodeScript` 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 `_.
Methods
-------
.. rst-class:: interim-class
.. class:: UnicodeScript
:no-index:
.. method:: from_iso15924(iso15924: int) -> ~gi.repository.GLib.UnicodeScript
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).
See
`Codes for the representation of names of scripts `_
for details.
.. versionadded:: 2.30
:param iso15924: a Unicode script
.. method:: to_iso15924(script: ~gi.repository.GLib.UnicodeScript) -> int
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).
See
`Codes for the representation of names of scripts `_
for details.
.. versionadded:: 2.30
:param script: a Unicode script
Fields
------
.. rst-class:: interim-class
.. class:: UnicodeScript
:no-index:
.. attribute:: ADLAM
Adlam. Since: 2.50
.. attribute:: AHOM
Ahom. Since: 2.48
.. attribute:: ANATOLIAN_HIEROGLYPHS
Anatolian Hieroglyphs. Since: 2.48
.. attribute:: ARABIC
Arabic
.. attribute:: ARMENIAN
Armenian
.. attribute:: AVESTAN
Avestan. Since 2.26
.. attribute:: BALINESE
Balinese
.. attribute:: BAMUM
Bamum. Since 2.26
.. attribute:: BASSA_VAH
Bassa. Since: 2.42
.. attribute:: BATAK
Batak. Since 2.28
.. attribute:: BENGALI
Bengali
.. attribute:: BHAIKSUKI
Bhaiksuki. Since: 2.50
.. attribute:: BOPOMOFO
Bopomofo
.. attribute:: BRAHMI
Brahmi. Since 2.28
.. attribute:: BRAILLE
Braille
.. attribute:: BUGINESE
Buginese
.. attribute:: BUHID
Buhid
.. attribute:: CANADIAN_ABORIGINAL
Canadian Aboriginal
.. attribute:: CARIAN
Carian. Since 2.16.3
.. attribute:: CAUCASIAN_ALBANIAN
Caucasian Albanian. Since: 2.42
.. attribute:: CHAKMA
Chakma. Since: 2.32
.. attribute:: CHAM
Cham. Since 2.16.3
.. attribute:: CHEROKEE
Cherokee
.. attribute:: CHORASMIAN
Chorasmian. Since: 2.66
.. attribute:: COMMON
A character used by multiple different scripts
.. attribute:: COPTIC
Coptic
.. attribute:: CUNEIFORM
Cuneiform
.. attribute:: CYPRIOT
Cypriot
.. attribute:: CYPRO_MINOAN
Cypro-Minoan. Since: 2.72
.. attribute:: CYRILLIC
Cyrillic
.. attribute:: DESERET
Deseret
.. attribute:: DEVANAGARI
Devanagari
.. attribute:: DIVES_AKURU
Dives Akuru. Since: 2.66
.. attribute:: DOGRA
Dogra. Since: 2.58
.. attribute:: DUPLOYAN
Duployan. Since: 2.42
.. attribute:: EGYPTIAN_HIEROGLYPHS
Egyptian Hieroglpyhs. Since 2.26
.. attribute:: ELBASAN
Elbasan. Since: 2.42
.. attribute:: ELYMAIC
Elym. Since: 2.62
.. attribute:: ETHIOPIC
Ethiopic
.. attribute:: GEORGIAN
Georgian
.. attribute:: GLAGOLITIC
Glagolitic
.. attribute:: GOTHIC
Gothic
.. attribute:: GRANTHA
Grantha. Since: 2.42
.. attribute:: GREEK
Greek
.. attribute:: GUJARATI
Gujarati
.. attribute:: GUNJALA_GONDI
Gunjala Gondi. Since: 2.58
.. attribute:: GURMUKHI
Gurmukhi
.. attribute:: HAN
Han
.. attribute:: HANGUL
Hangul
.. attribute:: HANIFI_ROHINGYA
Hanifi Rohingya. Since: 2.58
.. attribute:: HANUNOO
Hanunoo
.. attribute:: HATRAN
Hatran. Since: 2.48
.. attribute:: HEBREW
Hebrew
.. attribute:: HIRAGANA
Hiragana
.. attribute:: IMPERIAL_ARAMAIC
Imperial Aramaic. Since 2.26
.. attribute:: INHERITED
A mark glyph that takes its script from the
base glyph to which it is attached
.. attribute:: INSCRIPTIONAL_PAHLAVI
Inscriptional Pahlavi. Since 2.26
.. attribute:: INSCRIPTIONAL_PARTHIAN
Inscriptional Parthian. Since 2.26
.. attribute:: INVALID_CODE
A value never returned from :func:`~gi.repository.GLib.unichar_get_script`
.. attribute:: JAVANESE
Javanese. Since 2.26
.. attribute:: KAITHI
Kaithi. Since 2.26
.. attribute:: KANNADA
Kannada
.. attribute:: KATAKANA
Katakana
.. attribute:: KAWI
Kawi. Since 2.74
.. attribute:: KAYAH_LI
Kayah Li. Since 2.16.3
.. attribute:: KHAROSHTHI
Kharoshthi
.. attribute:: KHITAN_SMALL_SCRIPT
Khitan small script. Since: 2.66
.. attribute:: KHMER
Khmer
.. attribute:: KHOJKI
Kjohki. Since: 2.42
.. attribute:: KHUDAWADI
Khudawadi, Sindhi. Since: 2.42
.. attribute:: LAO
Lao
.. attribute:: LATIN
Latin
.. attribute:: LEPCHA
Lepcha. Since 2.16.3
.. attribute:: LIMBU
Limbu
.. attribute:: LINEAR_A
Linear A. Since: 2.42
.. attribute:: LINEAR_B
Linear B
.. attribute:: LISU
Lisu. Since 2.26
.. attribute:: LYCIAN
Lycian. Since 2.16.3
.. attribute:: LYDIAN
Lydian. Since 2.16.3
.. attribute:: MAHAJANI
Mahajani. Since: 2.42
.. attribute:: MAKASAR
Makasar. Since: 2.58
.. attribute:: MALAYALAM
Malayalam
.. attribute:: MANDAIC
Mandaic. Since 2.28
.. attribute:: MANICHAEAN
Manichaean. Since: 2.42
.. attribute:: MARCHEN
Marchen. Since: 2.50
.. attribute:: MASARAM_GONDI
Masaram Gondi. Since: 2.54
.. attribute:: MATH
Mathematical notation. Since: 2.72
.. attribute:: MEDEFAIDRIN
Medefaidrin. Since: 2.58
.. attribute:: MEETEI_MAYEK
Meetei Mayek. Since 2.26
.. attribute:: MENDE_KIKAKUI
Mende Kikakui. Since: 2.42
.. attribute:: MEROITIC_CURSIVE
Meroitic Cursive. Since: 2.32
.. attribute:: MEROITIC_HIEROGLYPHS
Meroitic Hieroglyphs. Since: 2.32
.. attribute:: MIAO
Miao. Since: 2.32
.. attribute:: MODI
Modi. Since: 2.42
.. attribute:: MONGOLIAN
Mongolian
.. attribute:: MRO
Return a type's method resolution order.
.. attribute:: MULTANI
Multani. Since: 2.48
.. attribute:: MYANMAR
Myanmar
.. attribute:: NABATAEAN
Nabataean. Since: 2.42
.. attribute:: NAG_MUNDARI
Nag Mundari. Since 2.74
.. attribute:: NANDINAGARI
Nand. Since: 2.62
.. attribute:: NEWA
Newa. Since: 2.50
.. attribute:: NEW_TAI_LUE
New Tai Lue
.. attribute:: NKO
N'Ko
.. attribute:: NUSHU
Nushu. Since: 2.54
.. attribute:: NYIAKENG_PUACHUE_HMONG
Rohg. Since: 2.62
.. attribute:: OGHAM
Ogham
.. attribute:: OLD_HUNGARIAN
Old Hungarian. Since: 2.48
.. attribute:: OLD_ITALIC
Old Italic
.. attribute:: OLD_NORTH_ARABIAN
Old North Arabian. Since: 2.42
.. attribute:: OLD_PERMIC
Old Permic. Since: 2.42
.. attribute:: OLD_PERSIAN
Old Persian
.. attribute:: OLD_SOGDIAN
Old Sogdian. Since: 2.58
.. attribute:: OLD_SOUTH_ARABIAN
Old South Arabian. Since 2.26
.. attribute:: OLD_TURKIC
Old Turkic. Since 2.28
.. attribute:: OLD_UYGHUR
Old Uyghur. Since: 2.72
.. attribute:: OL_CHIKI
Ol Chiki. Since 2.16.3
.. attribute:: ORIYA
Oriya
.. attribute:: OSAGE
Osage. Since: 2.50
.. attribute:: OSMANYA
Osmanya
.. attribute:: PAHAWH_HMONG
Pahawh Hmong. Since: 2.42
.. attribute:: PALMYRENE
Palmyrene. Since: 2.42
.. attribute:: PAU_CIN_HAU
Pau Cin Hau. Since: 2.42
.. attribute:: PHAGS_PA
Phags-pa
.. attribute:: PHOENICIAN
Phoenician
.. attribute:: PSALTER_PAHLAVI
Psalter Pahlavi. Since: 2.42
.. attribute:: REJANG
Rejang. Since 2.16.3
.. attribute:: RUNIC
Runic
.. attribute:: SAMARITAN
Samaritan. Since 2.26
.. attribute:: SAURASHTRA
Saurashtra. Since 2.16.3
.. attribute:: SHARADA
Sharada. Since: 2.32
.. attribute:: SHAVIAN
Shavian
.. attribute:: SIDDHAM
Siddham. Since: 2.42
.. attribute:: SIGNWRITING
Signwriting. Since: 2.48
.. attribute:: SINHALA
Sinhala
.. attribute:: SOGDIAN
Sogdian. Since: 2.58
.. attribute:: SORA_SOMPENG
Sora Sompeng. Since: 2.32
.. attribute:: SOYOMBO
Soyombo. Since: 2.54
.. attribute:: SUNDANESE
Sundanese. Since 2.16.3
.. attribute:: SYLOTI_NAGRI
Syloti Nagri
.. attribute:: SYRIAC
Syriac
.. attribute:: TAGALOG
Tagalog
.. attribute:: TAGBANWA
Tagbanwa
.. attribute:: TAI_LE
Tai Le
.. attribute:: TAI_THAM
Tai Tham. Since 2.26
.. attribute:: TAI_VIET
Tai Viet. Since 2.26
.. attribute:: TAKRI
Takri. Since: 2.32
.. attribute:: TAMIL
Tamil
.. attribute:: TANGSA
Tangsa. Since: 2.72
.. attribute:: TANGUT
Tangut. Since: 2.50
.. attribute:: TELUGU
Telugu
.. attribute:: THAANA
Thaana
.. attribute:: THAI
Thai
.. attribute:: TIBETAN
Tibetan
.. attribute:: TIFINAGH
Tifinagh
.. attribute:: TIRHUTA
Tirhuta. Since: 2.42
.. attribute:: TOTO
Toto. Since: 2.72
.. attribute:: UGARITIC
Ugaritic
.. attribute:: UNKNOWN
An unassigned code point
.. attribute:: VAI
Vai. Since 2.16.3
.. attribute:: VITHKUQI
Vithkuqi. Since: 2.72
.. attribute:: WANCHO
Wcho. Since: 2.62
.. attribute:: WARANG_CITI
Warang Citi. Since: 2.42
.. attribute:: YEZIDI
Yezidi. Since: 2.66
.. attribute:: YI
Yi
.. attribute:: ZANABAZAR_SQUARE
Zanabazar Square. Since: 2.54