Struct Script
A Unicode script, such as Latin, Arabic or Devanagari, with its ISO 15924 code and the OpenType script tags fonts use for it.
public readonly record struct Script : IEquatable<Script>
- Implements
- Inherited Members
Examples
// Egami's own Unicode 17.0 tables: the same answer on every runtime and machine.
Script script = UnicodeData.GetScript('\u0915'); // Devanagari
ReadOnlySpan<FontTag> tags = script.OpenTypeTags; // dev2, then deva
BidiClass bidi = UnicodeData.GetBidiClass('\u0627'); // ArabicLetter
JoiningType joining = UnicodeData.GetJoiningType('\u0628'); // DualJoining
JoiningGroup group = UnicodeData.GetJoiningGroup('\u0628'); // Beh
VerticalOrientation upright = UnicodeData.GetVerticalOrientation('\u6F22'); // Upright
EastAsianWidth width = UnicodeData.GetEastAsianWidth('\u6F22'); // Wide
bool emoji = UnicodeData.IsEmojiPresentation(0x1F600); // true
UnicodeData.TryGetBidiMirroringGlyph('(', out int mirror); // ')'
BidiPairedBracketType bracket = UnicodeData.GetBidiPairedBracketType('['); // Open
Remarks
The default value is Unknown. There is one static member per script of the Unicode version Egami's tables follow (UnicodeVersion).
Properties
Adlam
Gets the Adlam script (Adlm).
public static Script Adlam { get; }
Property Value
Ahom
Gets the Ahom script (Ahom).
public static Script Ahom { get; }
Property Value
AnatolianHieroglyphs
Gets the Anatolian Hieroglyphs script (Hluw).
public static Script AnatolianHieroglyphs { get; }
Property Value
Arabic
Gets the Arabic script (Arab).
public static Script Arabic { get; }
Property Value
Armenian
Gets the Armenian script (Armn).
public static Script Armenian { get; }
Property Value
Avestan
Gets the Avestan script (Avst).
public static Script Avestan { get; }
Property Value
Balinese
Gets the Balinese script (Bali).
public static Script Balinese { get; }
Property Value
Bamum
Gets the Bamum script (Bamu).
public static Script Bamum { get; }
Property Value
BassaVah
Gets the Bassa Vah script (Bass).
public static Script BassaVah { get; }
Property Value
Batak
Gets the Batak script (Batk).
public static Script Batak { get; }
Property Value
Bengali
Gets the Bengali script (Beng).
public static Script Bengali { get; }
Property Value
BeriaErfe
Gets the Beria Erfe script (Berf).
public static Script BeriaErfe { get; }
Property Value
Bhaiksuki
Gets the Bhaiksuki script (Bhks).
public static Script Bhaiksuki { get; }
Property Value
Bopomofo
Gets the Bopomofo script (Bopo).
public static Script Bopomofo { get; }
Property Value
Brahmi
Gets the Brahmi script (Brah).
public static Script Brahmi { get; }
Property Value
Braille
Gets the Braille script (Brai).
public static Script Braille { get; }
Property Value
Buginese
Gets the Buginese script (Bugi).
public static Script Buginese { get; }
Property Value
Buhid
Gets the Buhid script (Buhd).
public static Script Buhid { get; }
Property Value
CanadianAboriginal
Gets the Canadian Aboriginal script (Cans).
public static Script CanadianAboriginal { get; }
Property Value
Carian
Gets the Carian script (Cari).
public static Script Carian { get; }
Property Value
CaucasianAlbanian
Gets the Caucasian Albanian script (Aghb).
public static Script CaucasianAlbanian { get; }
Property Value
Chakma
Gets the Chakma script (Cakm).
public static Script Chakma { get; }
Property Value
Cham
Gets the Cham script (Cham).
public static Script Cham { get; }
Property Value
Cherokee
Gets the Cherokee script (Cher).
public static Script Cherokee { get; }
Property Value
Chorasmian
Gets the Chorasmian script (Chrs).
public static Script Chorasmian { get; }
Property Value
Code
Gets the four-letter ISO 15924 code, such as "Latn", "Arab" or "Zyyy" for Common.
public string Code { get; }
Property Value
Common
Gets the Common script (Zyyy).
public static Script Common { get; }
Property Value
Coptic
Gets the Coptic script (Copt).
public static Script Coptic { get; }
Property Value
Cuneiform
Gets the Cuneiform script (Xsux).
public static Script Cuneiform { get; }
Property Value
Cypriot
Gets the Cypriot script (Cprt).
public static Script Cypriot { get; }
Property Value
CyproMinoan
Gets the Cypro Minoan script (Cpmn).
public static Script CyproMinoan { get; }
Property Value
Cyrillic
Gets the Cyrillic script (Cyrl).
public static Script Cyrillic { get; }
Property Value
Deseret
Gets the Deseret script (Dsrt).
public static Script Deseret { get; }
Property Value
Devanagari
Gets the Devanagari script (Deva).
public static Script Devanagari { get; }
Property Value
DivesAkuru
Gets the Dives Akuru script (Diak).
public static Script DivesAkuru { get; }
Property Value
Dogra
Gets the Dogra script (Dogr).
public static Script Dogra { get; }
Property Value
Duployan
Gets the Duployan script (Dupl).
public static Script Duployan { get; }
Property Value
EgyptianHieroglyphs
Gets the Egyptian Hieroglyphs script (Egyp).
public static Script EgyptianHieroglyphs { get; }
Property Value
Elbasan
Gets the Elbasan script (Elba).
public static Script Elbasan { get; }
Property Value
Elymaic
Gets the Elymaic script (Elym).
public static Script Elymaic { get; }
Property Value
Ethiopic
Gets the Ethiopic script (Ethi).
public static Script Ethiopic { get; }
Property Value
Garay
Gets the Garay script (Gara).
public static Script Garay { get; }
Property Value
Georgian
Gets the Georgian script (Geor).
public static Script Georgian { get; }
Property Value
Glagolitic
Gets the Glagolitic script (Glag).
public static Script Glagolitic { get; }
Property Value
Gothic
Gets the Gothic script (Goth).
public static Script Gothic { get; }
Property Value
Grantha
Gets the Grantha script (Gran).
public static Script Grantha { get; }
Property Value
Greek
Gets the Greek script (Grek).
public static Script Greek { get; }
Property Value
Gujarati
Gets the Gujarati script (Gujr).
public static Script Gujarati { get; }
Property Value
GunjalaGondi
Gets the Gunjala Gondi script (Gong).
public static Script GunjalaGondi { get; }
Property Value
Gurmukhi
Gets the Gurmukhi script (Guru).
public static Script Gurmukhi { get; }
Property Value
GurungKhema
Gets the Gurung Khema script (Gukh).
public static Script GurungKhema { get; }
Property Value
Han
Gets the Han script (Hani).
public static Script Han { get; }
Property Value
Hangul
Gets the Hangul script (Hang).
public static Script Hangul { get; }
Property Value
HanifiRohingya
Gets the Hanifi Rohingya script (Rohg).
public static Script HanifiRohingya { get; }
Property Value
Hanunoo
Gets the Hanunoo script (Hano).
public static Script Hanunoo { get; }
Property Value
Hatran
Gets the Hatran script (Hatr).
public static Script Hatran { get; }
Property Value
Hebrew
Gets the Hebrew script (Hebr).
public static Script Hebrew { get; }
Property Value
Hiragana
Gets the Hiragana script (Hira).
public static Script Hiragana { get; }
Property Value
ImperialAramaic
Gets the Imperial Aramaic script (Armi).
public static Script ImperialAramaic { get; }
Property Value
Inherited
Gets the Inherited script (Zinh).
public static Script Inherited { get; }
Property Value
InscriptionalPahlavi
Gets the Inscriptional Pahlavi script (Phli).
public static Script InscriptionalPahlavi { get; }
Property Value
InscriptionalParthian
Gets the Inscriptional Parthian script (Prti).
public static Script InscriptionalParthian { get; }
Property Value
IsShared
Gets whether the script is Common, Inherited or Unknown: shared characters that take the script around them.
public bool IsShared { get; }
Property Value
Javanese
Gets the Javanese script (Java).
public static Script Javanese { get; }
Property Value
Kaithi
Gets the Kaithi script (Kthi).
public static Script Kaithi { get; }
Property Value
Kannada
Gets the Kannada script (Knda).
public static Script Kannada { get; }
Property Value
Katakana
Gets the Katakana script (Kana).
public static Script Katakana { get; }
Property Value
KatakanaOrHiragana
Gets the Katakana Or Hiragana script (Hrkt).
public static Script KatakanaOrHiragana { get; }
Property Value
Kawi
Gets the Kawi script (Kawi).
public static Script Kawi { get; }
Property Value
KayahLi
Gets the Kayah Li script (Kali).
public static Script KayahLi { get; }
Property Value
Kharoshthi
Gets the Kharoshthi script (Khar).
public static Script Kharoshthi { get; }
Property Value
KhitanSmallScript
Gets the Khitan Small Script script (Kits).
public static Script KhitanSmallScript { get; }
Property Value
Khmer
Gets the Khmer script (Khmr).
public static Script Khmer { get; }
Property Value
Khojki
Gets the Khojki script (Khoj).
public static Script Khojki { get; }
Property Value
Khudawadi
Gets the Khudawadi script (Sind).
public static Script Khudawadi { get; }
Property Value
KiratRai
Gets the Kirat Rai script (Krai).
public static Script KiratRai { get; }
Property Value
Lao
Gets the Lao script (Laoo).
public static Script Lao { get; }
Property Value
Latin
Gets the Latin script (Latn).
public static Script Latin { get; }
Property Value
Lepcha
Gets the Lepcha script (Lepc).
public static Script Lepcha { get; }
Property Value
Limbu
Gets the Limbu script (Limb).
public static Script Limbu { get; }
Property Value
LinearA
Gets the Linear A script (Lina).
public static Script LinearA { get; }
Property Value
LinearB
Gets the Linear B script (Linb).
public static Script LinearB { get; }
Property Value
Lisu
Gets the Lisu script (Lisu).
public static Script Lisu { get; }
Property Value
Lycian
Gets the Lycian script (Lyci).
public static Script Lycian { get; }
Property Value
Lydian
Gets the Lydian script (Lydi).
public static Script Lydian { get; }
Property Value
Mahajani
Gets the Mahajani script (Mahj).
public static Script Mahajani { get; }
Property Value
Makasar
Gets the Makasar script (Maka).
public static Script Makasar { get; }
Property Value
Malayalam
Gets the Malayalam script (Mlym).
public static Script Malayalam { get; }
Property Value
Mandaic
Gets the Mandaic script (Mand).
public static Script Mandaic { get; }
Property Value
Manichaean
Gets the Manichaean script (Mani).
public static Script Manichaean { get; }
Property Value
Marchen
Gets the Marchen script (Marc).
public static Script Marchen { get; }
Property Value
MasaramGondi
Gets the Masaram Gondi script (Gonm).
public static Script MasaramGondi { get; }
Property Value
Medefaidrin
Gets the Medefaidrin script (Medf).
public static Script Medefaidrin { get; }
Property Value
MeeteiMayek
Gets the Meetei Mayek script (Mtei).
public static Script MeeteiMayek { get; }
Property Value
MendeKikakui
Gets the Mende Kikakui script (Mend).
public static Script MendeKikakui { get; }
Property Value
MeroiticCursive
Gets the Meroitic Cursive script (Merc).
public static Script MeroiticCursive { get; }
Property Value
MeroiticHieroglyphs
Gets the Meroitic Hieroglyphs script (Mero).
public static Script MeroiticHieroglyphs { get; }
Property Value
Miao
Gets the Miao script (Plrd).
public static Script Miao { get; }
Property Value
Modi
Gets the Modi script (Modi).
public static Script Modi { get; }
Property Value
Mongolian
Gets the Mongolian script (Mong).
public static Script Mongolian { get; }
Property Value
Mro
Gets the Mro script (Mroo).
public static Script Mro { get; }
Property Value
Multani
Gets the Multani script (Mult).
public static Script Multani { get; }
Property Value
Myanmar
Gets the Myanmar script (Mymr).
public static Script Myanmar { get; }
Property Value
Nabataean
Gets the Nabataean script (Nbat).
public static Script Nabataean { get; }
Property Value
NagMundari
Gets the Nag Mundari script (Nagm).
public static Script NagMundari { get; }
Property Value
Name
Gets the Unicode name of the script, such as "Latin" or "Old_Italic".
public string Name { get; }
Property Value
Nandinagari
Gets the Nandinagari script (Nand).
public static Script Nandinagari { get; }
Property Value
NewTaiLue
Gets the New Tai Lue script (Talu).
public static Script NewTaiLue { get; }
Property Value
Newa
Gets the Newa script (Newa).
public static Script Newa { get; }
Property Value
Nko
Gets the Nko script (Nkoo).
public static Script Nko { get; }
Property Value
Nushu
Gets the Nushu script (Nshu).
public static Script Nushu { get; }
Property Value
NyiakengPuachueHmong
Gets the Nyiakeng Puachue Hmong script (Hmnp).
public static Script NyiakengPuachueHmong { get; }
Property Value
Ogham
Gets the Ogham script (Ogam).
public static Script Ogham { get; }
Property Value
OlChiki
Gets the Ol Chiki script (Olck).
public static Script OlChiki { get; }
Property Value
OlOnal
Gets the Ol Onal script (Onao).
public static Script OlOnal { get; }
Property Value
OldHungarian
Gets the Old Hungarian script (Hung).
public static Script OldHungarian { get; }
Property Value
OldItalic
Gets the Old Italic script (Ital).
public static Script OldItalic { get; }
Property Value
OldNorthArabian
Gets the Old North Arabian script (Narb).
public static Script OldNorthArabian { get; }
Property Value
OldPermic
Gets the Old Permic script (Perm).
public static Script OldPermic { get; }
Property Value
OldPersian
Gets the Old Persian script (Xpeo).
public static Script OldPersian { get; }
Property Value
OldSogdian
Gets the Old Sogdian script (Sogo).
public static Script OldSogdian { get; }
Property Value
OldSouthArabian
Gets the Old South Arabian script (Sarb).
public static Script OldSouthArabian { get; }
Property Value
OldTurkic
Gets the Old Turkic script (Orkh).
public static Script OldTurkic { get; }
Property Value
OldUyghur
Gets the Old Uyghur script (Ougr).
public static Script OldUyghur { get; }
Property Value
OpenTypeTags
Gets the OpenType script tags fonts use for the script, newest first: dev2 then deva for Devanagari, latn
for Latin, and DFLT for Common, Inherited and Unknown.
public ReadOnlySpan<FontTag> OpenTypeTags { get; }
Property Value
Oriya
Gets the Oriya script (Orya).
public static Script Oriya { get; }
Property Value
Osage
Gets the Osage script (Osge).
public static Script Osage { get; }
Property Value
Osmanya
Gets the Osmanya script (Osma).
public static Script Osmanya { get; }
Property Value
PahawhHmong
Gets the Pahawh Hmong script (Hmng).
public static Script PahawhHmong { get; }
Property Value
Palmyrene
Gets the Palmyrene script (Palm).
public static Script Palmyrene { get; }
Property Value
PauCinHau
Gets the Pau Cin Hau script (Pauc).
public static Script PauCinHau { get; }
Property Value
PhagsPa
Gets the Phags Pa script (Phag).
public static Script PhagsPa { get; }
Property Value
Phoenician
Gets the Phoenician script (Phnx).
public static Script Phoenician { get; }
Property Value
PsalterPahlavi
Gets the Psalter Pahlavi script (Phlp).
public static Script PsalterPahlavi { get; }
Property Value
Rejang
Gets the Rejang script (Rjng).
public static Script Rejang { get; }
Property Value
Runic
Gets the Runic script (Runr).
public static Script Runic { get; }
Property Value
Samaritan
Gets the Samaritan script (Samr).
public static Script Samaritan { get; }
Property Value
Saurashtra
Gets the Saurashtra script (Saur).
public static Script Saurashtra { get; }
Property Value
Sharada
Gets the Sharada script (Shrd).
public static Script Sharada { get; }
Property Value
Shavian
Gets the Shavian script (Shaw).
public static Script Shavian { get; }
Property Value
Siddham
Gets the Siddham script (Sidd).
public static Script Siddham { get; }
Property Value
Sidetic
Gets the Sidetic script (Sidt).
public static Script Sidetic { get; }
Property Value
SignWriting
Gets the SignWriting script (Sgnw).
public static Script SignWriting { get; }
Property Value
Sinhala
Gets the Sinhala script (Sinh).
public static Script Sinhala { get; }
Property Value
Sogdian
Gets the Sogdian script (Sogd).
public static Script Sogdian { get; }
Property Value
SoraSompeng
Gets the Sora Sompeng script (Sora).
public static Script SoraSompeng { get; }
Property Value
Soyombo
Gets the Soyombo script (Soyo).
public static Script Soyombo { get; }
Property Value
Sundanese
Gets the Sundanese script (Sund).
public static Script Sundanese { get; }
Property Value
Sunuwar
Gets the Sunuwar script (Sunu).
public static Script Sunuwar { get; }
Property Value
SylotiNagri
Gets the Syloti Nagri script (Sylo).
public static Script SylotiNagri { get; }
Property Value
Syriac
Gets the Syriac script (Syrc).
public static Script Syriac { get; }
Property Value
Tagalog
Gets the Tagalog script (Tglg).
public static Script Tagalog { get; }
Property Value
Tagbanwa
Gets the Tagbanwa script (Tagb).
public static Script Tagbanwa { get; }
Property Value
TaiLe
Gets the Tai Le script (Tale).
public static Script TaiLe { get; }
Property Value
TaiTham
Gets the Tai Tham script (Lana).
public static Script TaiTham { get; }
Property Value
TaiViet
Gets the Tai Viet script (Tavt).
public static Script TaiViet { get; }
Property Value
TaiYo
Gets the Tai Yo script (Tayo).
public static Script TaiYo { get; }
Property Value
Takri
Gets the Takri script (Takr).
public static Script Takri { get; }
Property Value
Tamil
Gets the Tamil script (Taml).
public static Script Tamil { get; }
Property Value
Tangsa
Gets the Tangsa script (Tnsa).
public static Script Tangsa { get; }
Property Value
Tangut
Gets the Tangut script (Tang).
public static Script Tangut { get; }
Property Value
Telugu
Gets the Telugu script (Telu).
public static Script Telugu { get; }
Property Value
Thaana
Gets the Thaana script (Thaa).
public static Script Thaana { get; }
Property Value
Thai
Gets the Thai script (Thai).
public static Script Thai { get; }
Property Value
Tibetan
Gets the Tibetan script (Tibt).
public static Script Tibetan { get; }
Property Value
Tifinagh
Gets the Tifinagh script (Tfng).
public static Script Tifinagh { get; }
Property Value
Tirhuta
Gets the Tirhuta script (Tirh).
public static Script Tirhuta { get; }
Property Value
Todhri
Gets the Todhri script (Todr).
public static Script Todhri { get; }
Property Value
TolongSiki
Gets the Tolong Siki script (Tols).
public static Script TolongSiki { get; }
Property Value
Toto
Gets the Toto script (Toto).
public static Script Toto { get; }
Property Value
TuluTigalari
Gets the Tulu Tigalari script (Tutg).
public static Script TuluTigalari { get; }
Property Value
Ugaritic
Gets the Ugaritic script (Ugar).
public static Script Ugaritic { get; }
Property Value
Unknown
Gets the Unknown script (Zzzz).
public static Script Unknown { get; }
Property Value
Vai
Gets the Vai script (Vaii).
public static Script Vai { get; }
Property Value
Vithkuqi
Gets the Vithkuqi script (Vith).
public static Script Vithkuqi { get; }
Property Value
Wancho
Gets the Wancho script (Wcho).
public static Script Wancho { get; }
Property Value
WarangCiti
Gets the Warang Citi script (Wara).
public static Script WarangCiti { get; }
Property Value
Yezidi
Gets the Yezidi script (Yezi).
public static Script Yezidi { get; }
Property Value
Yi
Gets the Yi script (Yiii).
public static Script Yi { get; }
Property Value
ZanabazarSquare
Gets the Zanabazar Square script (Zanb).
public static Script ZanabazarSquare { get; }
Property Value
Methods
ToString()
Returns the ISO 15924 code.
public override string ToString()
Returns
- string
The code, such as
"Latn".
TryFromCode(string, out Script)
Finds a script by its ISO 15924 code, such as "Arab"; case does not matter.
public static bool TryFromCode(string code, out Script script)
Parameters
Returns
Exceptions
- ArgumentNullException
codeis null.