: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 The type of the None singleton. .. attribute:: AHOM The type of the None singleton. .. attribute:: ANATOLIAN_HIEROGLYPHS The type of the None singleton. .. attribute:: ARABIC The type of the None singleton. .. attribute:: ARMENIAN The type of the None singleton. .. attribute:: AVESTAN The type of the None singleton. .. attribute:: BALINESE The type of the None singleton. .. attribute:: BAMUM The type of the None singleton. .. attribute:: BASSA_VAH The type of the None singleton. .. attribute:: BATAK The type of the None singleton. .. attribute:: BENGALI The type of the None singleton. .. attribute:: BHAIKSUKI The type of the None singleton. .. attribute:: BOPOMOFO The type of the None singleton. .. attribute:: BRAHMI The type of the None singleton. .. attribute:: BRAILLE The type of the None singleton. .. attribute:: BUGINESE The type of the None singleton. .. attribute:: BUHID The type of the None singleton. .. attribute:: CANADIAN_ABORIGINAL The type of the None singleton. .. attribute:: CARIAN The type of the None singleton. .. attribute:: CAUCASIAN_ALBANIAN The type of the None singleton. .. attribute:: CHAKMA The type of the None singleton. .. attribute:: CHAM The type of the None singleton. .. attribute:: CHEROKEE The type of the None singleton. .. attribute:: CHORASMIAN The type of the None singleton. .. attribute:: COMMON The type of the None singleton. .. attribute:: COPTIC The type of the None singleton. .. attribute:: CUNEIFORM The type of the None singleton. .. attribute:: CYPRIOT The type of the None singleton. .. attribute:: CYPRO_MINOAN The type of the None singleton. .. attribute:: CYRILLIC The type of the None singleton. .. attribute:: DESERET The type of the None singleton. .. attribute:: DEVANAGARI The type of the None singleton. .. attribute:: DIVES_AKURU The type of the None singleton. .. attribute:: DOGRA The type of the None singleton. .. attribute:: DUPLOYAN The type of the None singleton. .. attribute:: EGYPTIAN_HIEROGLYPHS The type of the None singleton. .. attribute:: ELBASAN The type of the None singleton. .. attribute:: ELYMAIC The type of the None singleton. .. attribute:: ETHIOPIC The type of the None singleton. .. attribute:: GEORGIAN The type of the None singleton. .. attribute:: GLAGOLITIC The type of the None singleton. .. attribute:: GOTHIC The type of the None singleton. .. attribute:: GRANTHA The type of the None singleton. .. attribute:: GREEK The type of the None singleton. .. attribute:: GUJARATI The type of the None singleton. .. attribute:: GUNJALA_GONDI The type of the None singleton. .. attribute:: GURMUKHI The type of the None singleton. .. attribute:: HAN The type of the None singleton. .. attribute:: HANGUL The type of the None singleton. .. attribute:: HANIFI_ROHINGYA The type of the None singleton. .. attribute:: HANUNOO The type of the None singleton. .. attribute:: HATRAN The type of the None singleton. .. attribute:: HEBREW The type of the None singleton. .. attribute:: HIRAGANA The type of the None singleton. .. attribute:: IMPERIAL_ARAMAIC The type of the None singleton. .. attribute:: INHERITED The type of the None singleton. .. attribute:: INSCRIPTIONAL_PAHLAVI The type of the None singleton. .. attribute:: INSCRIPTIONAL_PARTHIAN The type of the None singleton. .. attribute:: INVALID_CODE The type of the None singleton. .. attribute:: JAVANESE The type of the None singleton. .. attribute:: KAITHI The type of the None singleton. .. attribute:: KANNADA The type of the None singleton. .. attribute:: KATAKANA The type of the None singleton. .. attribute:: KAWI The type of the None singleton. .. attribute:: KAYAH_LI The type of the None singleton. .. attribute:: KHAROSHTHI The type of the None singleton. .. attribute:: KHITAN_SMALL_SCRIPT The type of the None singleton. .. attribute:: KHMER The type of the None singleton. .. attribute:: KHOJKI The type of the None singleton. .. attribute:: KHUDAWADI The type of the None singleton. .. attribute:: LAO The type of the None singleton. .. attribute:: LATIN The type of the None singleton. .. attribute:: LEPCHA The type of the None singleton. .. attribute:: LIMBU The type of the None singleton. .. attribute:: LINEAR_A The type of the None singleton. .. attribute:: LINEAR_B The type of the None singleton. .. attribute:: LISU The type of the None singleton. .. attribute:: LYCIAN The type of the None singleton. .. attribute:: LYDIAN The type of the None singleton. .. attribute:: MAHAJANI The type of the None singleton. .. attribute:: MAKASAR The type of the None singleton. .. attribute:: MALAYALAM The type of the None singleton. .. attribute:: MANDAIC The type of the None singleton. .. attribute:: MANICHAEAN The type of the None singleton. .. attribute:: MARCHEN The type of the None singleton. .. attribute:: MASARAM_GONDI The type of the None singleton. .. attribute:: MATH The type of the None singleton. .. attribute:: MEDEFAIDRIN The type of the None singleton. .. attribute:: MEETEI_MAYEK The type of the None singleton. .. attribute:: MENDE_KIKAKUI The type of the None singleton. .. attribute:: MEROITIC_CURSIVE The type of the None singleton. .. attribute:: MEROITIC_HIEROGLYPHS The type of the None singleton. .. attribute:: MIAO The type of the None singleton. .. attribute:: MODI The type of the None singleton. .. attribute:: MONGOLIAN The type of the None singleton. .. attribute:: MRO Return a type's method resolution order. .. attribute:: MULTANI The type of the None singleton. .. attribute:: MYANMAR The type of the None singleton. .. attribute:: NABATAEAN The type of the None singleton. .. attribute:: NAG_MUNDARI The type of the None singleton. .. attribute:: NANDINAGARI The type of the None singleton. .. attribute:: NEWA The type of the None singleton. .. attribute:: NEW_TAI_LUE The type of the None singleton. .. attribute:: NKO The type of the None singleton. .. attribute:: NUSHU The type of the None singleton. .. attribute:: NYIAKENG_PUACHUE_HMONG The type of the None singleton. .. attribute:: OGHAM The type of the None singleton. .. attribute:: OLD_HUNGARIAN The type of the None singleton. .. attribute:: OLD_ITALIC The type of the None singleton. .. attribute:: OLD_NORTH_ARABIAN The type of the None singleton. .. attribute:: OLD_PERMIC The type of the None singleton. .. attribute:: OLD_PERSIAN The type of the None singleton. .. attribute:: OLD_SOGDIAN The type of the None singleton. .. attribute:: OLD_SOUTH_ARABIAN The type of the None singleton. .. attribute:: OLD_TURKIC The type of the None singleton. .. attribute:: OLD_UYGHUR The type of the None singleton. .. attribute:: OL_CHIKI The type of the None singleton. .. attribute:: ORIYA The type of the None singleton. .. attribute:: OSAGE The type of the None singleton. .. attribute:: OSMANYA The type of the None singleton. .. attribute:: PAHAWH_HMONG The type of the None singleton. .. attribute:: PALMYRENE The type of the None singleton. .. attribute:: PAU_CIN_HAU The type of the None singleton. .. attribute:: PHAGS_PA The type of the None singleton. .. attribute:: PHOENICIAN The type of the None singleton. .. attribute:: PSALTER_PAHLAVI The type of the None singleton. .. attribute:: REJANG The type of the None singleton. .. attribute:: RUNIC The type of the None singleton. .. attribute:: SAMARITAN The type of the None singleton. .. attribute:: SAURASHTRA The type of the None singleton. .. attribute:: SHARADA The type of the None singleton. .. attribute:: SHAVIAN The type of the None singleton. .. attribute:: SIDDHAM The type of the None singleton. .. attribute:: SIGNWRITING The type of the None singleton. .. attribute:: SINHALA The type of the None singleton. .. attribute:: SOGDIAN The type of the None singleton. .. attribute:: SORA_SOMPENG The type of the None singleton. .. attribute:: SOYOMBO The type of the None singleton. .. attribute:: SUNDANESE The type of the None singleton. .. attribute:: SYLOTI_NAGRI The type of the None singleton. .. attribute:: SYRIAC The type of the None singleton. .. attribute:: TAGALOG The type of the None singleton. .. attribute:: TAGBANWA The type of the None singleton. .. attribute:: TAI_LE The type of the None singleton. .. attribute:: TAI_THAM The type of the None singleton. .. attribute:: TAI_VIET The type of the None singleton. .. attribute:: TAKRI The type of the None singleton. .. attribute:: TAMIL The type of the None singleton. .. attribute:: TANGSA The type of the None singleton. .. attribute:: TANGUT The type of the None singleton. .. attribute:: TELUGU The type of the None singleton. .. attribute:: THAANA The type of the None singleton. .. attribute:: THAI The type of the None singleton. .. attribute:: TIBETAN The type of the None singleton. .. attribute:: TIFINAGH The type of the None singleton. .. attribute:: TIRHUTA The type of the None singleton. .. attribute:: TOTO The type of the None singleton. .. attribute:: UGARITIC The type of the None singleton. .. attribute:: UNKNOWN The type of the None singleton. .. attribute:: VAI The type of the None singleton. .. attribute:: VITHKUQI The type of the None singleton. .. attribute:: WANCHO The type of the None singleton. .. attribute:: WARANG_CITI The type of the None singleton. .. attribute:: YEZIDI The type of the None singleton. .. attribute:: YI The type of the None singleton. .. attribute:: ZANABAZAR_SQUARE The type of the None singleton.