UnicodeScript#

class UnicodeScript#

The 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 <http://www.unicode.org/reports/tr24/>`_.

Methods#

class UnicodeScript
from_iso15924(iso15924: int) 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.

Added in version 2.30.

Parameters:

iso15924 – a Unicode script

to_iso15924(script: 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.

Added in version 2.30.

Parameters:

script – a Unicode script

Fields#

class UnicodeScript
ADLAM#

The type of the None singleton.

AHOM#

The type of the None singleton.

ANATOLIAN_HIEROGLYPHS#

The type of the None singleton.

ARABIC#

The type of the None singleton.

ARMENIAN#

The type of the None singleton.

AVESTAN#

The type of the None singleton.

BALINESE#

The type of the None singleton.

BAMUM#

The type of the None singleton.

BASSA_VAH#

The type of the None singleton.

BATAK#

The type of the None singleton.

BENGALI#

The type of the None singleton.

BHAIKSUKI#

The type of the None singleton.

BOPOMOFO#

The type of the None singleton.

BRAHMI#

The type of the None singleton.

BRAILLE#

The type of the None singleton.

BUGINESE#

The type of the None singleton.

BUHID#

The type of the None singleton.

CANADIAN_ABORIGINAL#

The type of the None singleton.

CARIAN#

The type of the None singleton.

CAUCASIAN_ALBANIAN#

The type of the None singleton.

CHAKMA#

The type of the None singleton.

CHAM#

The type of the None singleton.

CHEROKEE#

The type of the None singleton.

CHORASMIAN#

The type of the None singleton.

COMMON#

The type of the None singleton.

COPTIC#

The type of the None singleton.

CUNEIFORM#

The type of the None singleton.

CYPRIOT#

The type of the None singleton.

CYPRO_MINOAN#

The type of the None singleton.

CYRILLIC#

The type of the None singleton.

DESERET#

The type of the None singleton.

DEVANAGARI#

The type of the None singleton.

DIVES_AKURU#

The type of the None singleton.

DOGRA#

The type of the None singleton.

DUPLOYAN#

The type of the None singleton.

EGYPTIAN_HIEROGLYPHS#

The type of the None singleton.

ELBASAN#

The type of the None singleton.

ELYMAIC#

The type of the None singleton.

ETHIOPIC#

The type of the None singleton.

GEORGIAN#

The type of the None singleton.

GLAGOLITIC#

The type of the None singleton.

GOTHIC#

The type of the None singleton.

GRANTHA#

The type of the None singleton.

GREEK#

The type of the None singleton.

GUJARATI#

The type of the None singleton.

GUNJALA_GONDI#

The type of the None singleton.

GURMUKHI#

The type of the None singleton.

HAN#

The type of the None singleton.

HANGUL#

The type of the None singleton.

HANIFI_ROHINGYA#

The type of the None singleton.

HANUNOO#

The type of the None singleton.

HATRAN#

The type of the None singleton.

HEBREW#

The type of the None singleton.

HIRAGANA#

The type of the None singleton.

IMPERIAL_ARAMAIC#

The type of the None singleton.

INHERITED#

The type of the None singleton.

INSCRIPTIONAL_PAHLAVI#

The type of the None singleton.

INSCRIPTIONAL_PARTHIAN#

The type of the None singleton.

INVALID_CODE#

The type of the None singleton.

JAVANESE#

The type of the None singleton.

KAITHI#

The type of the None singleton.

KANNADA#

The type of the None singleton.

KATAKANA#

The type of the None singleton.

KAWI#

The type of the None singleton.

KAYAH_LI#

The type of the None singleton.

KHAROSHTHI#

The type of the None singleton.

KHITAN_SMALL_SCRIPT#

The type of the None singleton.

KHMER#

The type of the None singleton.

KHOJKI#

The type of the None singleton.

KHUDAWADI#

The type of the None singleton.

LAO#

The type of the None singleton.

LATIN#

The type of the None singleton.

LEPCHA#

The type of the None singleton.

LIMBU#

The type of the None singleton.

LINEAR_A#

The type of the None singleton.

LINEAR_B#

The type of the None singleton.

LISU#

The type of the None singleton.

LYCIAN#

The type of the None singleton.

LYDIAN#

The type of the None singleton.

MAHAJANI#

The type of the None singleton.

MAKASAR#

The type of the None singleton.

MALAYALAM#

The type of the None singleton.

MANDAIC#

The type of the None singleton.

MANICHAEAN#

The type of the None singleton.

MARCHEN#

The type of the None singleton.

MASARAM_GONDI#

The type of the None singleton.

MATH#

The type of the None singleton.

MEDEFAIDRIN#

The type of the None singleton.

MEETEI_MAYEK#

The type of the None singleton.

MENDE_KIKAKUI#

The type of the None singleton.

MEROITIC_CURSIVE#

The type of the None singleton.

MEROITIC_HIEROGLYPHS#

The type of the None singleton.

MIAO#

The type of the None singleton.

MODI#

The type of the None singleton.

MONGOLIAN#

The type of the None singleton.

MRO#

Return a type’s method resolution order.

MULTANI#

The type of the None singleton.

MYANMAR#

The type of the None singleton.

NABATAEAN#

The type of the None singleton.

NAG_MUNDARI#

The type of the None singleton.

NANDINAGARI#

The type of the None singleton.

NEWA#

The type of the None singleton.

NEW_TAI_LUE#

The type of the None singleton.

NKO#

The type of the None singleton.

NUSHU#

The type of the None singleton.

NYIAKENG_PUACHUE_HMONG#

The type of the None singleton.

OGHAM#

The type of the None singleton.

OLD_HUNGARIAN#

The type of the None singleton.

OLD_ITALIC#

The type of the None singleton.

OLD_NORTH_ARABIAN#

The type of the None singleton.

OLD_PERMIC#

The type of the None singleton.

OLD_PERSIAN#

The type of the None singleton.

OLD_SOGDIAN#

The type of the None singleton.

OLD_SOUTH_ARABIAN#

The type of the None singleton.

OLD_TURKIC#

The type of the None singleton.

OLD_UYGHUR#

The type of the None singleton.

OL_CHIKI#

The type of the None singleton.

ORIYA#

The type of the None singleton.

OSAGE#

The type of the None singleton.

OSMANYA#

The type of the None singleton.

PAHAWH_HMONG#

The type of the None singleton.

PALMYRENE#

The type of the None singleton.

PAU_CIN_HAU#

The type of the None singleton.

PHAGS_PA#

The type of the None singleton.

PHOENICIAN#

The type of the None singleton.

PSALTER_PAHLAVI#

The type of the None singleton.

REJANG#

The type of the None singleton.

RUNIC#

The type of the None singleton.

SAMARITAN#

The type of the None singleton.

SAURASHTRA#

The type of the None singleton.

SHARADA#

The type of the None singleton.

SHAVIAN#

The type of the None singleton.

SIDDHAM#

The type of the None singleton.

SIGNWRITING#

The type of the None singleton.

SINHALA#

The type of the None singleton.

SOGDIAN#

The type of the None singleton.

SORA_SOMPENG#

The type of the None singleton.

SOYOMBO#

The type of the None singleton.

SUNDANESE#

The type of the None singleton.

SYLOTI_NAGRI#

The type of the None singleton.

SYRIAC#

The type of the None singleton.

TAGALOG#

The type of the None singleton.

TAGBANWA#

The type of the None singleton.

TAI_LE#

The type of the None singleton.

TAI_THAM#

The type of the None singleton.

TAI_VIET#

The type of the None singleton.

TAKRI#

The type of the None singleton.

TAMIL#

The type of the None singleton.

TANGSA#

The type of the None singleton.

TANGUT#

The type of the None singleton.

TELUGU#

The type of the None singleton.

THAANA#

The type of the None singleton.

THAI#

The type of the None singleton.

TIBETAN#

The type of the None singleton.

TIFINAGH#

The type of the None singleton.

TIRHUTA#

The type of the None singleton.

TOTO#

The type of the None singleton.

UGARITIC#

The type of the None singleton.

UNKNOWN#

The type of the None singleton.

VAI#

The type of the None singleton.

VITHKUQI#

The type of the None singleton.

WANCHO#

The type of the None singleton.

WARANG_CITI#

The type of the None singleton.

YEZIDI#

The type of the None singleton.

YI#

The type of the None singleton.

ZANABAZAR_SQUARE#

The type of the None singleton.