Enum unicode_script::tables::tables_impl::Script
source · #[non_exhaustive]#[repr(u8)]pub enum Script {
Show 164 variants
Unknown = 255,
Common = 254,
Inherited = 253,
Adlam = 0,
Caucasian_Albanian = 1,
Ahom = 2,
Arabic = 3,
Imperial_Aramaic = 4,
Armenian = 5,
Avestan = 6,
Balinese = 7,
Bamum = 8,
Bassa_Vah = 9,
Batak = 10,
Bengali = 11,
Bhaiksuki = 12,
Bopomofo = 13,
Brahmi = 14,
Braille = 15,
Buginese = 16,
Buhid = 17,
Chakma = 18,
Canadian_Aboriginal = 19,
Carian = 20,
Cham = 21,
Cherokee = 22,
Chorasmian = 23,
Coptic = 24,
Cypro_Minoan = 25,
Cypriot = 26,
Cyrillic = 27,
Devanagari = 28,
Dives_Akuru = 29,
Dogra = 30,
Deseret = 31,
Duployan = 32,
Egyptian_Hieroglyphs = 33,
Elbasan = 34,
Elymaic = 35,
Ethiopic = 36,
Georgian = 37,
Glagolitic = 38,
Gunjala_Gondi = 39,
Masaram_Gondi = 40,
Gothic = 41,
Grantha = 42,
Greek = 43,
Gujarati = 44,
Gurmukhi = 45,
Hangul = 46,
Han = 47,
Hanunoo = 48,
Hatran = 49,
Hebrew = 50,
Hiragana = 51,
Anatolian_Hieroglyphs = 52,
Pahawh_Hmong = 53,
Nyiakeng_Puachue_Hmong = 54,
Old_Hungarian = 55,
Old_Italic = 56,
Javanese = 57,
Kayah_Li = 58,
Katakana = 59,
Kawi = 60,
Kharoshthi = 61,
Khmer = 62,
Khojki = 63,
Khitan_Small_Script = 64,
Kannada = 65,
Kaithi = 66,
Tai_Tham = 67,
Lao = 68,
Latin = 69,
Lepcha = 70,
Limbu = 71,
Linear_A = 72,
Linear_B = 73,
Lisu = 74,
Lycian = 75,
Lydian = 76,
Mahajani = 77,
Makasar = 78,
Mandaic = 79,
Manichaean = 80,
Marchen = 81,
Medefaidrin = 82,
Mende_Kikakui = 83,
Meroitic_Cursive = 84,
Meroitic_Hieroglyphs = 85,
Malayalam = 86,
Modi = 87,
Mongolian = 88,
Mro = 89,
Meetei_Mayek = 90,
Multani = 91,
Myanmar = 92,
Nag_Mundari = 93,
Nandinagari = 94,
Old_North_Arabian = 95,
Nabataean = 96,
Newa = 97,
Nko = 98,
Nushu = 99,
Ogham = 100,
Ol_Chiki = 101,
Old_Turkic = 102,
Oriya = 103,
Osage = 104,
Osmanya = 105,
Old_Uyghur = 106,
Palmyrene = 107,
Pau_Cin_Hau = 108,
Old_Permic = 109,
Phags_Pa = 110,
Inscriptional_Pahlavi = 111,
Psalter_Pahlavi = 112,
Phoenician = 113,
Miao = 114,
Inscriptional_Parthian = 115,
Rejang = 116,
Hanifi_Rohingya = 117,
Runic = 118,
Samaritan = 119,
Old_South_Arabian = 120,
Saurashtra = 121,
SignWriting = 122,
Shavian = 123,
Sharada = 124,
Siddham = 125,
Khudawadi = 126,
Sinhala = 127,
Sogdian = 128,
Old_Sogdian = 129,
Sora_Sompeng = 130,
Soyombo = 131,
Sundanese = 132,
Syloti_Nagri = 133,
Syriac = 134,
Tagbanwa = 135,
Takri = 136,
Tai_Le = 137,
New_Tai_Lue = 138,
Tamil = 139,
Tangut = 140,
Tai_Viet = 141,
Telugu = 142,
Tifinagh = 143,
Tagalog = 144,
Thaana = 145,
Thai = 146,
Tibetan = 147,
Tirhuta = 148,
Tangsa = 149,
Toto = 150,
Ugaritic = 151,
Vai = 152,
Vithkuqi = 153,
Warang_Citi = 154,
Wancho = 155,
Old_Persian = 156,
Cuneiform = 157,
Yezidi = 158,
Yi = 159,
Zanabazar_Square = 160,
}
Expand description
A value of the Script
property
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unknown = 255
Unknown script
Common = 254
Zyyy
Inherited = 253
Zinh,
Adlam = 0
Adlm
Caucasian_Albanian = 1
Aghb
Ahom = 2
Ahom
Arabic = 3
Arab
Imperial_Aramaic = 4
Armi
Armenian = 5
Armn
Avestan = 6
Avst
Balinese = 7
Bali
Bamum = 8
Bamu
Bassa_Vah = 9
Bass
Batak = 10
Batk
Bengali = 11
Beng
Bhaiksuki = 12
Bhks
Bopomofo = 13
Bopo
Brahmi = 14
Brah
Braille = 15
Brai
Buginese = 16
Bugi
Buhid = 17
Buhd
Chakma = 18
Cakm
Canadian_Aboriginal = 19
Cans
Carian = 20
Cari
Cham = 21
Cham
Cherokee = 22
Cher
Chorasmian = 23
Chrs
Coptic = 24
Copt
Cypro_Minoan = 25
Cpmn
Cypriot = 26
Cprt
Cyrillic = 27
Cyrl
Devanagari = 28
Deva
Dives_Akuru = 29
Diak
Dogra = 30
Dogr
Deseret = 31
Dsrt
Duployan = 32
Dupl
Egyptian_Hieroglyphs = 33
Egyp
Elbasan = 34
Elba
Elymaic = 35
Elym
Ethiopic = 36
Ethi
Georgian = 37
Geor
Glagolitic = 38
Glag
Gunjala_Gondi = 39
Gong
Masaram_Gondi = 40
Gonm
Gothic = 41
Goth
Grantha = 42
Gran
Greek = 43
Grek
Gujarati = 44
Gujr
Gurmukhi = 45
Guru
Hangul = 46
Hang
Han = 47
Hani
Hanunoo = 48
Hano
Hatran = 49
Hatr
Hebrew = 50
Hebr
Hiragana = 51
Hira
Anatolian_Hieroglyphs = 52
Hluw
Pahawh_Hmong = 53
Hmng
Nyiakeng_Puachue_Hmong = 54
Hmnp
Old_Hungarian = 55
Hung
Old_Italic = 56
Ital
Javanese = 57
Java
Kayah_Li = 58
Kali
Katakana = 59
Kana
Kawi = 60
Kawi
Kharoshthi = 61
Khar
Khmer = 62
Khmr
Khojki = 63
Khoj
Khitan_Small_Script = 64
Kits
Kannada = 65
Knda
Kaithi = 66
Kthi
Tai_Tham = 67
Lana
Lao = 68
Laoo
Latin = 69
Latn
Lepcha = 70
Lepc
Limbu = 71
Limb
Linear_A = 72
Lina
Linear_B = 73
Linb
Lisu = 74
Lisu
Lycian = 75
Lyci
Lydian = 76
Lydi
Mahajani = 77
Mahj
Makasar = 78
Maka
Mandaic = 79
Mand
Manichaean = 80
Mani
Marchen = 81
Marc
Medefaidrin = 82
Medf
Mende_Kikakui = 83
Mend
Meroitic_Cursive = 84
Merc
Meroitic_Hieroglyphs = 85
Mero
Malayalam = 86
Mlym
Modi = 87
Modi
Mongolian = 88
Mong
Mro = 89
Mroo
Meetei_Mayek = 90
Mtei
Multani = 91
Mult
Myanmar = 92
Mymr
Nag_Mundari = 93
Nagm
Nandinagari = 94
Nand
Old_North_Arabian = 95
Narb
Nabataean = 96
Nbat
Newa = 97
Newa
Nko = 98
Nkoo
Nushu = 99
Nshu
Ogham = 100
Ogam
Ol_Chiki = 101
Olck
Old_Turkic = 102
Orkh
Oriya = 103
Orya
Osage = 104
Osge
Osmanya = 105
Osma
Old_Uyghur = 106
Ougr
Palmyrene = 107
Palm
Pau_Cin_Hau = 108
Pauc
Old_Permic = 109
Perm
Phags_Pa = 110
Phag
Inscriptional_Pahlavi = 111
Phli
Psalter_Pahlavi = 112
Phlp
Phoenician = 113
Phnx
Miao = 114
Plrd
Inscriptional_Parthian = 115
Prti
Rejang = 116
Rjng
Hanifi_Rohingya = 117
Rohg
Runic = 118
Runr
Samaritan = 119
Samr
Old_South_Arabian = 120
Sarb
Saurashtra = 121
Saur
SignWriting = 122
Sgnw
Shavian = 123
Shaw
Sharada = 124
Shrd
Siddham = 125
Sidd
Khudawadi = 126
Sind
Sinhala = 127
Sinh
Sogdian = 128
Sogd
Old_Sogdian = 129
Sogo
Sora_Sompeng = 130
Sora
Soyombo = 131
Soyo
Sundanese = 132
Sund
Syloti_Nagri = 133
Sylo
Syriac = 134
Syrc
Tagbanwa = 135
Tagb
Takri = 136
Takr
Tai_Le = 137
Tale
New_Tai_Lue = 138
Talu
Tamil = 139
Taml
Tangut = 140
Tang
Tai_Viet = 141
Tavt
Telugu = 142
Telu
Tifinagh = 143
Tfng
Tagalog = 144
Tglg
Thaana = 145
Thaa
Thai = 146
Thai
Tibetan = 147
Tibt
Tirhuta = 148
Tirh
Tangsa = 149
Tnsa
Toto = 150
Toto
Ugaritic = 151
Ugar
Vai = 152
Vaii
Vithkuqi = 153
Vith
Warang_Citi = 154
Wara
Wancho = 155
Wcho
Old_Persian = 156
Xpeo
Cuneiform = 157
Xsux
Yezidi = 158
Yezi
Yi = 159
Yiii
Zanabazar_Square = 160
Zanb
Implementations§
source§impl Script
impl Script
pub(crate) fn inner_full_name(self) -> &'static str
pub(crate) fn inner_from_full_name(input: &str) -> Option<Self>
pub(crate) fn inner_short_name(self) -> &'static str
pub(crate) fn inner_from_short_name(input: &str) -> Option<Self>
pub(crate) fn for_integer(value: u8) -> Self
source§impl Script
impl Script
sourcepub fn from_full_name(input: &str) -> Option<Self>
pub fn from_full_name(input: &str) -> Option<Self>
Attempts to parse script name from the provided string.
Returns None
if the provided string does not represent a valid
script full name.
sourcepub fn short_name(self) -> &'static str
pub fn short_name(self) -> &'static str
Get the four-character short name of a script.
sourcepub fn from_short_name(input: &str) -> Option<Self>
pub fn from_short_name(input: &str) -> Option<Self>
Attempts to parse script name from the provided string.
Returns None
if the provided string does not represent a valid
script four-character short name.
sourcepub fn is_recommended(self) -> bool
pub fn is_recommended(self) -> bool
Is this script “Recommended” according to UAX #31?