Script
public enum Script : Int
Represents the script of a character in Unicode specification. The literals of enum correspond to the script property values defined in Unicode Standard Annex #24: PropertyValueAliases.txt.
-
Script “Inherited”.
Declaration
Swift
case inherited = 0x01
-
Script “Common”.
Declaration
Swift
case common = 0x02
-
Script “Unknown”.
Declaration
Swift
case unknown = 0x03
-
Script “Arabic”.
Declaration
Swift
case arabic = 0x04
-
Script “Armenian”.
Declaration
Swift
case armenian = 0x05
-
Script “Bengali”.
Declaration
Swift
case bengali = 0x06
-
Script “Bopomofo”.
Declaration
Swift
case bopomofo = 0x07
-
Script “Cyrillic”.
Declaration
Swift
case cyrillic = 0x08
-
Script “Devanagari”.
Declaration
Swift
case devanagari = 0x09
-
Script “Georgian”.
Declaration
Swift
case georgian = 0x0A
-
Script “Greek”.
Declaration
Swift
case greek = 0x0B
-
Script “Gujarati”.
Declaration
Swift
case gujarati = 0x0C
-
Script “Gurmukhi”.
Declaration
Swift
case gurmukhi = 0x0D
-
Script “Hangul”.
Declaration
Swift
case hangul = 0x0E
-
Script “Han”.
Declaration
Swift
case han = 0x0F
-
Script “Hebrew”.
Declaration
Swift
case hebrew = 0x10
-
Script “Hiragana”.
Declaration
Swift
case hiragana = 0x11
-
Script “Katakana”.
Declaration
Swift
case katakana = 0x12
-
Script “Kannada”.
Declaration
Swift
case kannada = 0x13
-
Script “Lao”.
Declaration
Swift
case lao = 0x14
-
Script “Latin”.
Declaration
Swift
case latin = 0x15
-
Script “Malayalam”.
Declaration
Swift
case malayalam = 0x16
-
Script “Oriya”.
Declaration
Swift
case oriya = 0x17
-
Script “Tamil”.
Declaration
Swift
case tamil = 0x18
-
Script “Telugu”.
Declaration
Swift
case telugu = 0x19
-
Script “Thai”.
Declaration
Swift
case thai = 0x1A
-
Script “Tibetan”.
Declaration
Swift
case tibetan = 0x1B
-
Script “Braille”.
Declaration
Swift
case braille = 0x1C
-
Script “Canadian_Aboriginal”.
Declaration
Swift
case canadianAboriginal = 0x1D
-
Script “Cherokee”.
Declaration
Swift
case cherokee = 0x1E
-
Script “Ethiopic”.
Declaration
Swift
case ethiopic = 0x1F
-
Script “Khmer”.
Declaration
Swift
case khmer = 0x20
-
Script “Mongolian”.
Declaration
Swift
case mongolian = 0x21
-
Script “Myanmar”.
Declaration
Swift
case myanmar = 0x22
-
Script “Ogham”.
Declaration
Swift
case ogham = 0x23
-
Script “Runic”.
Declaration
Swift
case runic = 0x24
-
Script “Sinhala”.
Declaration
Swift
case sinhala = 0x25
-
Script “Syriac”.
Declaration
Swift
case syriac = 0x26
-
Script “Thaana”.
Declaration
Swift
case thaana = 0x27
-
Script “Yi”.
Declaration
Swift
case yi = 0x28
-
Script “Deseret”.
Declaration
Swift
case deseret = 0x29
-
Script “Gothic”.
Declaration
Swift
case gothic = 0x2A
-
Script “Old_Italic”.
Declaration
Swift
case oldItalic = 0x2B
-
Script “Buhid”.
Declaration
Swift
case buhid = 0x2C
-
Script “Hanunoo”.
Declaration
Swift
case hanunoo = 0x2D
-
Script “Tagbanwa”.
Declaration
Swift
case tagbanwa = 0x2E
-
Script “Tagalog”.
Declaration
Swift
case tagalog = 0x2F
-
Script “Cypriot”.
Declaration
Swift
case cypriot = 0x30
-
Script “Limbu”.
Declaration
Swift
case limbu = 0x31
-
Script “Linear_B”.
Declaration
Swift
case linearB = 0x32
-
Script “Osmanya”.
Declaration
Swift
case osmanya = 0x33
-
Script “Shavian”.
Declaration
Swift
case shavian = 0x34
-
Script “Tai_Le”.
Declaration
Swift
case taiLe = 0x35
-
Script “Ugaritic”.
Declaration
Swift
case ugaritic = 0x36
-
Script “Buginese”.
Declaration
Swift
case buginese = 0x37
-
Script “Coptic”.
Declaration
Swift
case coptic = 0x38
-
Script “Glagolitic”.
Declaration
Swift
case glagolitic = 0x39
-
Script “Kharoshthi”.
Declaration
Swift
case kharoshthi = 0x3A
-
Script “Syloti_Nagri”.
Declaration
Swift
case sylotiNagri = 0x3B
-
Script “New_Tai_Lue”.
Declaration
Swift
case newTaiLue = 0x3C
-
Script “Tifinagh”.
Declaration
Swift
case tifinagh = 0x3D
-
Script “Old_Persian”.
Declaration
Swift
case oldPersian = 0x3E
-
Script “Balinese”.
Declaration
Swift
case balinese = 0x3F
-
Script “Nko”.
Declaration
Swift
case nko = 0x40
-
Script “Phags_Pa”.
Declaration
Swift
case phagsPa = 0x41
-
Script “Phoenician”.
Declaration
Swift
case phoenician = 0x42
-
Script “Cuneiform”.
Declaration
Swift
case cuneiform = 0x43
-
Script “Carian”.
Declaration
Swift
case carian = 0x44
-
Script “Cham”.
Declaration
Swift
case cham = 0x45
-
Script “Kayah_Li”.
Declaration
Swift
case kayahLi = 0x46
-
Script “Lepcha”.
Declaration
Swift
case lepcha = 0x47
-
Script “Lycian”.
Declaration
Swift
case lycian = 0x48
-
Script “Lydian”.
Declaration
Swift
case lydian = 0x49
-
Script “Ol_Chiki”.
Declaration
Swift
case olChiki = 0x4A
-
Script “Rejang”.
Declaration
Swift
case rejang = 0x4B
-
Script “Saurashtra”.
Declaration
Swift
case saurashtra = 0x4C
-
Script “Sundanese”.
Declaration
Swift
case sundanese = 0x4D
-
Script “Vai”.
Declaration
Swift
case vai = 0x4E
-
Script “Imperial_Aramaic”.
Declaration
Swift
case imperialAramaic = 0x4F
-
Script “Avestan”.
Declaration
Swift
case avestan = 0x50
-
Script “Bamum”.
Declaration
Swift
case bamum = 0x51
-
Script “Egyptian_Hieroglyphs”.
Declaration
Swift
case egyptianHieroglyphs = 0x52
-
Script “Javanese”.
Declaration
Swift
case javanese = 0x53
-
Script “Kaithi”.
Declaration
Swift
case kaithi = 0x54
-
Script “Tai_Tham”.
Declaration
Swift
case taiTham = 0x55
-
Script “Lisu”.
Declaration
Swift
case lisu = 0x56
-
Script “Meetei_Mayek”.
Declaration
Swift
case meeteiMayek = 0x57
-
Script “Old_Turkic”.
Declaration
Swift
case oldTurkic = 0x58
-
Script “Inscriptional_Pahlavi”.
Declaration
Swift
case inscriptionalPahlavi = 0x59
-
Script “Inscriptional_Parthian”.
Declaration
Swift
case inscriptionalParthian = 0x5A
-
Script “Samaritan”.
Declaration
Swift
case samaritan = 0x5B
-
Script “Old_South_Arabian”.
Declaration
Swift
case oldSouthArabian = 0x5C
-
Script “Tai_Viet”.
Declaration
Swift
case taiViet = 0x5D
-
Script “Batak”.
Declaration
Swift
case batak = 0x5E
-
Script “Brahmi”.
Declaration
Swift
case brahmi = 0x5F
-
Script “Mandaic”.
Declaration
Swift
case mandaic = 0x60
-
Script “Chakma”.
Declaration
Swift
case chakma = 0x61
-
Script “Meroitic_Cursive”.
Declaration
Swift
case meroiticCursive = 0x62
-
Script “Meroitic_Hieroglyphs”.
Declaration
Swift
case meroiticHieroglyphs = 0x63
-
Script “Miao”.
Declaration
Swift
case miao = 0x64
-
Script “Sharada”.
Declaration
Swift
case sharada = 0x65
-
Script “Sora_Sompeng”.
Declaration
Swift
case soraSompeng = 0x66
-
Script “Takri”.
Declaration
Swift
case takri = 0x67
-
Script “Caucasian_Albanian”.
Declaration
Swift
case caucasianAlbanian = 0x68
-
Script “Bassa_Vah”.
Declaration
Swift
case bassaVah = 0x69
-
Script “Duployan”.
Declaration
Swift
case duployan = 0x6A
-
Script “Elbasan”.
Declaration
Swift
case elbasan = 0x6B
-
Script “Grantha”.
Declaration
Swift
case grantha = 0x6C
-
Script “Pahawh_Hmong”.
Declaration
Swift
case pahawhHmong = 0x6D
-
Script “Khojki”.
Declaration
Swift
case khojki = 0x6E
-
Script “Linear_A”.
Declaration
Swift
case linearA = 0x6F
-
Script “Mahajani”.
Declaration
Swift
case mahajani = 0x70
-
Script “Manichaean”.
Declaration
Swift
case manichaean = 0x71
-
Script “Mende_Kikakui”.
Declaration
Swift
case mendeKikakui = 0x72
-
Script “Modi”.
Declaration
Swift
case modi = 0x73
-
Script “Mro”.
Declaration
Swift
case mro = 0x74
-
Script “Old_North_Arabian”.
Declaration
Swift
case oldNorthArabian = 0x75
-
Script “Nabataean”.
Declaration
Swift
case nabataean = 0x76
-
Script “Palmyrene”.
Declaration
Swift
case palmyrene = 0x77
-
Script “Pau_Cin_Hau”.
Declaration
Swift
case pauCinHau = 0x78
-
Script “Old_Permic”.
Declaration
Swift
case oldPermic = 0x79
-
Script “Psalter_Pahlavi”.
Declaration
Swift
case psalterPahlavi = 0x7A
-
Script “Siddham”.
Declaration
Swift
case siddham = 0x7B
-
Script “Khudawadi”.
Declaration
Swift
case khudawadi = 0x7C
-
Script “Tirhuta”.
Declaration
Swift
case tirhuta = 0x7D
-
Script “Warang_Citi”.
Declaration
Swift
case warangCiti = 0x7E
-
Script “Ahom”.
Declaration
Swift
case ahom = 0x7F
-
Script “Hatran”.
Declaration
Swift
case hatran = 0x80
-
Script “Anatolian_Hieroglyphs”.
Declaration
Swift
case anatolianHieroglyphs = 0x81
-
Script “Old_Hungarian”.
Declaration
Swift
case oldHungarian = 0x82
-
Script “Multani”.
Declaration
Swift
case multani = 0x83
-
Script “SignWriting”.
Declaration
Swift
case signwriting = 0x84
-
Script “Adlam”.
Declaration
Swift
case adlam = 0x85
-
Script “Bhaiksuki”.
Declaration
Swift
case bhaiksuki = 0x86
-
Script “Marchen”.
Declaration
Swift
case marchen = 0x87
-
Script “Newa”.
Declaration
Swift
case newa = 0x88
-
Script “Osage”.
Declaration
Swift
case osage = 0x89
-
Script “Tangut”.
Declaration
Swift
case tangut = 0x8A
-
Script “Masaram_Gondi”.
Declaration
Swift
case masaramGondi = 0x8B
-
Script “Nushu”.
Declaration
Swift
case nushu = 0x8C
-
Script “Soyombo”.
Declaration
Swift
case soyombo = 0x8D
-
Script “Zanabazar_Square”.
Declaration
Swift
case zanabazarSquare = 0x8E
-
Script “Dogra”.
Declaration
Swift
case dogra = 0x8F
-
Script “Gunjala_Gondi”.
Declaration
Swift
case gunjalaGondi = 0x90
-
Script “Makasar”.
Declaration
Swift
case makasar = 0x91
-
Script “Medefaidrin”.
Declaration
Swift
case medefaidrin = 0x92
-
Script “Hanifi_Rohingya”.
Declaration
Swift
case hanifiRohingya = 0x93
-
Script “Sogdian”.
Declaration
Swift
case sogdian = 0x94
-
Script “Old_Sogdian”.
Declaration
Swift
case oldSogdian = 0x95
-
Returns the OpenType tag of the specified script.
The association between Unicode Script property and OpenType script tags is taken from the specification: https://docs.microsoft.com/en-us/typography/opentype/spec/scripttags.
If more than one tag is associated with a script, then the latest one is returned. For example, Devanagari script has two tags,
deva
anddev2
. So in this case,dev2
will be returned.If no tag is associated with a script, then
DFLT
is returned.Declaration
Swift
public var openTypeTag: SFNTTag { get }