2.37 <GUnicodeScript>

Enumeration: <GUnicodeScript>

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

invalid-code

a value never returned from unichar-get-script

common

a character used by multiple different scripts

inherited

a mark glyph that takes its script from the base glyph to which it is attached

arabic

Arabic

armenian

Armenian

bengali

Bengali

bopomofo

Bopomofo

cherokee

Cherokee

coptic

Coptic

cyrillic

Cyrillic

deseret

Deseret

devanagari

Devanagari

ethiopic

Ethiopic

georgian

Georgian

gothic

Gothic

greek

Greek

gujarati

Gujarati

gurmukhi

Gurmukhi

han

Han

hangul

Hangul

hebrew

Hebrew

hiragana

Hiragana

kannada

Kannada

katakana

Katakana

khmer

Khmer

lao

Lao

latin

Latin

malayalam

Malayalam

mongolian

Mongolian

myanmar

Myanmar

ogham

Ogham

old-italic

Old Italic

oriya

Oriya

runic

Runic

sinhala

Sinhala

syriac

Syriac

tamil

Tamil

telugu

Telugu

thaana

Thaana

thai

Thai

tibetan

Tibetan

canadian-aboriginal

Canadian Aboriginal

yi

Yi

tagalog

Tagalog

hanunoo

Hanunoo

buhid

Buhid

tagbanwa

Tagbanwa

braille

Braille

cypriot

Cypriot

limbu

Limbu

osmanya

Osmanya

shavian

Shavian

linear-b

Linear B

tai-le

Tai Le

ugaritic

Ugaritic

new-tai-lue

New Tai Lue

buginese

Buginese

glagolitic

Glagolitic

tifinagh

Tifinagh

syloti-nagri

Syloti Nagri

old-persian

Old Persian

kharoshthi

Kharoshthi

unknown

an unassigned code point

balinese

Balinese

cuneiform

Cuneiform

phoenician

Phoenician

phags-pa

Phags-pa

nko

N’Ko

kayah-li

Kayah Li. Since 2.16.3

lepcha

Lepcha. Since 2.16.3

rejang

Rejang. Since 2.16.3

sundanese

Sundanese. Since 2.16.3

saurashtra

Saurashtra. Since 2.16.3

cham

Cham. Since 2.16.3

ol-chiki

Ol Chiki. Since 2.16.3

vai

Vai. Since 2.16.3

carian

Carian. Since 2.16.3

lycian

Lycian. Since 2.16.3

lydian

Lydian. Since 2.16.3

avestan

Avestan. Since 2.26

bamum

Bamum. Since 2.26

egyptian-hieroglyphs

Egyptian Hieroglpyhs. Since 2.26

imperial-aramaic

Imperial Aramaic. Since 2.26

inscriptional-pahlavi

Inscriptional Pahlavi. Since 2.26

inscriptional-parthian

Inscriptional Parthian. Since 2.26

javanese

Javanese. Since 2.26

kaithi

Kaithi. Since 2.26

lisu

Lisu. Since 2.26

meetei-mayek

Meetei Mayek. Since 2.26

old-south-arabian

Old South Arabian. Since 2.26

old-turkic

Old Turkic. Since 2.28

samaritan

Samaritan. Since 2.26

tai-tham

Tai Tham. Since 2.26

tai-viet

Tai Viet. Since 2.26

batak

Batak. Since 2.28

brahmi

Brahmi. Since 2.28

mandaic

Mandaic. Since 2.28

chakma

Chakma. Since: 2.32

meroitic-cursive

Meroitic Cursive. Since: 2.32

meroitic-hieroglyphs

Meroitic Hieroglyphs. Since: 2.32

miao

Miao. Since: 2.32

sharada

Sharada. Since: 2.32

sora-sompeng

Sora Sompeng. Since: 2.32

takri

Takri. Since: 2.32

bassa-vah

Bassa. Since: 2.42

caucasian-albanian

Caucasian Albanian. Since: 2.42

duployan

Duployan. Since: 2.42

elbasan

Elbasan. Since: 2.42

grantha

Grantha. Since: 2.42

khojki

Kjohki. Since: 2.42

khudawadi

Khudawadi, Sindhi. Since: 2.42

linear-a

Linear A. Since: 2.42

mahajani

Mahajani. Since: 2.42

manichaean

Manichaean. Since: 2.42

mende-kikakui

Mende Kikakui. Since: 2.42

modi

Modi. Since: 2.42

mro

Mro. Since: 2.42

nabataean

Nabataean. Since: 2.42

old-north-arabian

Old North Arabian. Since: 2.42

old-permic

Old Permic. Since: 2.42

pahawh-hmong

Pahawh Hmong. Since: 2.42

palmyrene

Palmyrene. Since: 2.42

pau-cin-hau

Pau Cin Hau. Since: 2.42

psalter-pahlavi

Psalter Pahlavi. Since: 2.42

siddham

Siddham. Since: 2.42

tirhuta

Tirhuta. Since: 2.42

warang-citi

Warang Citi. Since: 2.42

ahom

Ahom. Since: 2.48

anatolian-hieroglyphs

Anatolian Hieroglyphs. Since: 2.48

hatran

Hatran. Since: 2.48

multani

Multani. Since: 2.48

old-hungarian

Old Hungarian. Since: 2.48

signwriting

Signwriting. Since: 2.48

adlam

Adlam. Since: 2.50

bhaiksuki

Bhaiksuki. Since: 2.50

marchen

Marchen. Since: 2.50

newa

Newa. Since: 2.50

osage

Osage. Since: 2.50

tangut

Tangut. Since: 2.50

masaram-gondi

Masaram Gondi. Since: 2.54

nushu

Nushu. Since: 2.54

soyombo

Soyombo. Since: 2.54

zanabazar-square

Zanabazar Square. Since: 2.54

dogra

Dogra. Since: 2.58

gunjala-gondi

Gunjala Gondi. Since: 2.58

hanifi-rohingya

Hanifi Rohingya. Since: 2.58

makasar

Makasar. Since: 2.58

medefaidrin

Medefaidrin. Since: 2.58

old-sogdian

Old Sogdian. Since: 2.58

sogdian

Sogdian. Since: 2.58

elymaic

Elym. Since: 2.62

nandinagari

Nand. Since: 2.62

nyiakeng-puachue-hmong

Rohg. Since: 2.62

wancho

Wcho. Since: 2.62

chorasmian

Chorasmian. Since: 2.66

dives-akuru

Dives Akuru. Since: 2.66

khitan-small-script

Khitan small script. Since: 2.66

yezidi

Yezidi. Since: 2.66

cypro-minoan

Cypro-Minoan. Since: 2.72

old-uyghur

Old Uyghur. Since: 2.72

tangsa

Tangsa. Since: 2.72

toto

Toto. Since: 2.72

vithkuqi

Vithkuqi. Since: 2.72

math

Mathematical notation. Since: 2.72

kawi

Kawi. Since 2.74

nag-mundari

Nag Mundari. Since 2.74

todhri

Todhri. Since: 2.84

garay

Garay. Since: 2.84

tulu-tigalari

Tulu-Tigalari. Since: 2.84

sunuwar

Sunuwar. Since: 2.84

gurung-khema

Gurung Khema. Since: 2.84

kirat-rai

Kirat Rai. Since: 2.84

ol-onal

Ol Onal. Since: 2.84

sidetic

Sidetic. Since: 2.88

tolong-siki

Tolong Siki. Since: 2.88

tai-yo

Tai Yo. Since: 2.88

beria-erfe

Beria Erfe. Since: 2.88

Procedures

Procedure: unicode-script:from-iso15924 iso15924 ⇒ %return

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.

iso15924

Passed: an unsigned 32-bit integer.

a Unicode script

%return

Returned: a <GUnicodeScript>.

the Unicode script for iso15924, or of invalid-code if iso15924 is zero and unknown if iso15924 is unknown.

Procedure: unicode-script:to-iso15924 script ⇒ %return

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.

script

Passed: a <GUnicodeScript>, or one of its symbols.

a Unicode script

%return

Returned: an unsigned 32-bit integer.

the ISO 15924 code for script, encoded as an integer, of zero if script is invalid-code or ISO 15924 code ’Zzzz’ (script code for UNKNOWN) if script is not understood.