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.
invalid-codea value never returned from
unichar-get-script
commona character used by multiple different scripts
inheriteda mark glyph that takes its script from the base glyph to which it is attached
arabicArabic
armenianArmenian
bengaliBengali
bopomofoBopomofo
cherokeeCherokee
copticCoptic
cyrillicCyrillic
deseretDeseret
devanagariDevanagari
ethiopicEthiopic
georgianGeorgian
gothicGothic
greekGreek
gujaratiGujarati
gurmukhiGurmukhi
hanHan
hangulHangul
hebrewHebrew
hiraganaHiragana
kannadaKannada
katakanaKatakana
khmerKhmer
laoLao
latinLatin
malayalamMalayalam
mongolianMongolian
myanmarMyanmar
oghamOgham
old-italicOld Italic
oriyaOriya
runicRunic
sinhalaSinhala
syriacSyriac
tamilTamil
teluguTelugu
thaanaThaana
thaiThai
tibetanTibetan
canadian-aboriginalCanadian Aboriginal
yiYi
tagalogTagalog
hanunooHanunoo
buhidBuhid
tagbanwaTagbanwa
brailleBraille
cypriotCypriot
limbuLimbu
osmanyaOsmanya
shavianShavian
linear-bLinear B
tai-leTai Le
ugariticUgaritic
new-tai-lueNew Tai Lue
bugineseBuginese
glagoliticGlagolitic
tifinaghTifinagh
syloti-nagriSyloti Nagri
old-persianOld Persian
kharoshthiKharoshthi
unknownan unassigned code point
balineseBalinese
cuneiformCuneiform
phoenicianPhoenician
phags-paPhags-pa
nkoN’Ko
kayah-liKayah Li. Since 2.16.3
lepchaLepcha. Since 2.16.3
rejangRejang. Since 2.16.3
sundaneseSundanese. Since 2.16.3
saurashtraSaurashtra. Since 2.16.3
chamCham. Since 2.16.3
ol-chikiOl Chiki. Since 2.16.3
vaiVai. Since 2.16.3
carianCarian. Since 2.16.3
lycianLycian. Since 2.16.3
lydianLydian. Since 2.16.3
avestanAvestan. Since 2.26
bamumBamum. Since 2.26
egyptian-hieroglyphsEgyptian Hieroglpyhs. Since 2.26
imperial-aramaicImperial Aramaic. Since 2.26
inscriptional-pahlaviInscriptional Pahlavi. Since 2.26
inscriptional-parthianInscriptional Parthian. Since 2.26
javaneseJavanese. Since 2.26
kaithiKaithi. Since 2.26
lisuLisu. Since 2.26
meetei-mayekMeetei Mayek. Since 2.26
old-south-arabianOld South Arabian. Since 2.26
old-turkicOld Turkic. Since 2.28
samaritanSamaritan. Since 2.26
tai-thamTai Tham. Since 2.26
tai-vietTai Viet. Since 2.26
batakBatak. Since 2.28
brahmiBrahmi. Since 2.28
mandaicMandaic. Since 2.28
chakmaChakma. Since: 2.32
meroitic-cursiveMeroitic Cursive. Since: 2.32
meroitic-hieroglyphsMeroitic Hieroglyphs. Since: 2.32
miaoMiao. Since: 2.32
sharadaSharada. Since: 2.32
sora-sompengSora Sompeng. Since: 2.32
takriTakri. Since: 2.32
bassa-vahBassa. Since: 2.42
caucasian-albanianCaucasian Albanian. Since: 2.42
duployanDuployan. Since: 2.42
elbasanElbasan. Since: 2.42
granthaGrantha. Since: 2.42
khojkiKjohki. Since: 2.42
khudawadiKhudawadi, Sindhi. Since: 2.42
linear-aLinear A. Since: 2.42
mahajaniMahajani. Since: 2.42
manichaeanManichaean. Since: 2.42
mende-kikakuiMende Kikakui. Since: 2.42
modiModi. Since: 2.42
mroMro. Since: 2.42
nabataeanNabataean. Since: 2.42
old-north-arabianOld North Arabian. Since: 2.42
old-permicOld Permic. Since: 2.42
pahawh-hmongPahawh Hmong. Since: 2.42
palmyrenePalmyrene. Since: 2.42
pau-cin-hauPau Cin Hau. Since: 2.42
psalter-pahlaviPsalter Pahlavi. Since: 2.42
siddhamSiddham. Since: 2.42
tirhutaTirhuta. Since: 2.42
warang-citiWarang Citi. Since: 2.42
ahomAhom. Since: 2.48
anatolian-hieroglyphsAnatolian Hieroglyphs. Since: 2.48
hatranHatran. Since: 2.48
multaniMultani. Since: 2.48
old-hungarianOld Hungarian. Since: 2.48
signwritingSignwriting. Since: 2.48
adlamAdlam. Since: 2.50
bhaiksukiBhaiksuki. Since: 2.50
marchenMarchen. Since: 2.50
newaNewa. Since: 2.50
osageOsage. Since: 2.50
tangutTangut. Since: 2.50
masaram-gondiMasaram Gondi. Since: 2.54
nushuNushu. Since: 2.54
soyomboSoyombo. Since: 2.54
zanabazar-squareZanabazar Square. Since: 2.54
dograDogra. Since: 2.58
gunjala-gondiGunjala Gondi. Since: 2.58
hanifi-rohingyaHanifi Rohingya. Since: 2.58
makasarMakasar. Since: 2.58
medefaidrinMedefaidrin. Since: 2.58
old-sogdianOld Sogdian. Since: 2.58
sogdianSogdian. Since: 2.58
elymaicElym. Since: 2.62
nandinagariNand. Since: 2.62
nyiakeng-puachue-hmongRohg. Since: 2.62
wanchoWcho. Since: 2.62
chorasmianChorasmian. Since: 2.66
dives-akuruDives Akuru. Since: 2.66
khitan-small-scriptKhitan small script. Since: 2.66
yezidiYezidi. Since: 2.66
cypro-minoanCypro-Minoan. Since: 2.72
old-uyghurOld Uyghur. Since: 2.72
tangsaTangsa. Since: 2.72
totoToto. Since: 2.72
vithkuqiVithkuqi. Since: 2.72
mathMathematical notation. Since: 2.72
kawiKawi. Since 2.74
nag-mundariNag Mundari. Since 2.74
todhriTodhri. Since: 2.84
garayGaray. Since: 2.84
tulu-tigalariTulu-Tigalari. Since: 2.84
sunuwarSunuwar. Since: 2.84
gurung-khemaGurung Khema. Since: 2.84
kirat-raiKirat Rai. Since: 2.84
ol-onalOl Onal. Since: 2.84
sideticSidetic. Since: 2.88
tolong-sikiTolong Siki. Since: 2.88
tai-yoTai Yo. Since: 2.88
beria-erfeBeria Erfe. Since: 2.88
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.
Passed: an unsigned 32-bit integer.
a Unicode script
Returned: a <GUnicodeScript>.
the Unicode script for iso15924, or of
invalid-code if iso15924 is zero and
unknown if iso15924 is unknown.
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.
Passed: a <GUnicodeScript>, or one of its
symbols.
a Unicode script
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.