Enum Class ScriptCode
- All Implemented Interfaces:
Serializable, Comparable<ScriptCode>, java.lang.constant.Constable
ISO 15924 script code.
- Since:
- 1.2
- Author:
- Takahiko Kawasaki
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdlam [166]Afaka [439]Caucasian Albanian [239]Ahom, Tai Ahom [338]Arabic [160]Arabic (Nastaliq variant) [161]Imperial Aramaic [124]Armenian [230]Avestan [134]Balinese [360]Bamum [435]Bassa Vah [259]Batak [365]Bengali (Bangla) [325]Beria Erfe [258]Bhaiksuki [334]Blissymbols [550]Bopomofo [285]Brahmi [300]Braille [570]Buginese [367]Buhid [372]Chakma [349]Unified Canadian Aboriginal Syllabics [440]Carian [201]Cham [358]Cherokee [445]Chisoi [298]Chorasmian [109]Cirth [291]Coptic [204]Cypro-Minoan [402]Cypriot syllabary [403]Cyrillic [220]Cyrillic (Old Church Slavonic variant) [221]Devanagari (Nagari) [315]Dives Akuru [342]Dogra [328]Deseret (Mormon) [250]Duployan shorthand, Duployan stenography [755]Egyptian demotic [70]Egyptian hieratic [060]Egyptian hieroglyphs [050]Elbasan [226]Elymaic [128]Ethiopic [430]Garay [164]Khutsuri (Asomtavruli and Nuskhuri) [241]Georgian (Mkhedruli and Mtavruli) [240]Glagolitic [225]Gunjala Gondi [312]Masaram Gondi [313]Gothic [206]Grantha [343]Greek [200]Gujarati [320]Gurung Khema [397]Gurmukhi [310]Han with Bopomofo (alias for Han + Bopomofo) [503]Hangul [286]Han (Hanzi, Kanji, Hanja) [500]Hanunoo [371]Han (Simplified variant) [501]Han (Traditional variant) [502]Hatran [127]Hebrew [125]Hiragana [410]Anatolian Hieroglyphs (Luwian Hieroglyphs, Hittite Hieroglyphs) [080]Pahawh Hmong [450]Nyiakeng Puachue Hmong [451]Han (Traditional variant) with Latin (alias for Hant + Latn) [504]Japanese syllabaries (alias for Hiragana + Katakana) [412]Old Hungarian (Hungarian Runic) [176]Indus (Harappan) [610]Old Italic (Etruscan, Oscan, etc.) [210]Jamo (alias for Jamo subset of Hangul) [284]Javanese [361]Japanese (alias for Han + Hiragana + Katakana) [413]Jurchen [510]Kayah Li [357]Katakana [411]Kawi [368]Kharoshthi [305]Khmer [355]Khojki [322]Khitan large script [505]Khitan small script [288]Kannada [345]Korean (alias for Hangul + Han) [287]Kpelle [436]Kirat Rai [396]Kaithi [317]Tai Tham (Lanna) [351]Lao [356]Latin (Fraktur variant) [217]Latin (Gaelic variant) [216]Latin [215]Leke [364]Lepcha [335]Limbu [336]Linear A [400]Linear B [401]Lisu (Fraser) [399]Loma [437]Lycian [202]Lydian [116]Mahajani [314]Makasar [366]Mandaic, Mandaean [140]Manichaean [139]Marchen [332]Mayan hieroglyphs [090]Medefaidrin [265]Mende Kikakui [438]Meroitic Cursive [101]Meroitic Hieroglyphs [100]Malayalam [347]Modi [324]Mongolian [145]Moon (Moon code, Moon script, Moon type) [218]Mro, Mru [264]Meitei Mayek (Meithei, Meetei) [337]Multani [323]Myanmar (Burmese) [350]Nag Mundari [295]Nandinagari [311]Old North Arabian (Ancient North Arabian) [106]Nabataean [159]Newa, Newar, Newari [333]Naxi Dongba [85]Naxi Geba [420]N’Ko [165]Nushu [499]Ogham [212]Ol Chiki (Ol Cemet’, Ol, Santali) [261]Ol Onal [296]Old Turkic, Orkhon Runic [175]Oriya (Odia) [327]Osage [219]Osmanya [260]Old Uyghur [143]Palmyrene [126]Pau Cin Hau [263]Proto-Cuneiform [15]Proto-Elamite [16]Old Permic [227]Phags-pa [331]Inscriptional Pahlavi [131]Psalter Pahlavi [132]Book Pahlavi [133]Phoenician [115]Klingon (KLI pIqaD) [293]Miao (Pollard) [282]Inscriptional Parthian [130]Proto-Sinaitic [103]Reserved for private use [900]Reserved for private use [901]Reserved for private use [902]Reserved for private use [903]Reserved for private use [904]Reserved for private use [905]Reserved for private use [906]Reserved for private use [907]Reserved for private use [908]Reserved for private use [909]Reserved for private use [910]Reserved for private use [911]Reserved for private use [912]Reserved for private use [913]Reserved for private use [914]Reserved for private use [915]Reserved for private use [916]Reserved for private use [917]Reserved for private use [918]Reserved for private use [919]Reserved for private use [920]Reserved for private use [921]Reserved for private use [922]Reserved for private use [923]Reserved for private use [924]Reserved for private use [925]Reserved for private use [926]Reserved for private use [927]Reserved for private use [928]Reserved for private use [929]Reserved for private use [930]Reserved for private use [931]Reserved for private use [932]Reserved for private use [933]Reserved for private use [934]Reserved for private use [935]Reserved for private use [936]Reserved for private use [937]Reserved for private use [938]Reserved for private use [939]Reserved for private use [940]Reserved for private use [941]Reserved for private use [942]Reserved for private use [943]Reserved for private use [944]Reserved for private use [945]Reserved for private use [946]Reserved for private use [947]Reserved for private use [948]Reserved for private use [949]Ranjana [303]Rejang (Redjang, Kaganga) [363]Hanifi Rohingya [167]Rongorongo [620]Runic [211]Samaritan [123]Sarati [292]Old South Arabian [105]Saurashtra [344](Small) Seal [590]SignWriting [095]Shavian (Shaw) [281]Sharada [319]Shuishu [530]Siddham [302]Sidetic [180]Khudawadi, Sindhi [318]Sinhala [348]Sogdian [141]Old Sogdian [142]Sora Sompeng [398]Soyombo [329]Sundanese [362]Sunuwar [274]Syloti Nagri [316]Syriac [135]Syriac (Estrangelo variant) [138]Syriac (Western variant) [137]Syriac (Eastern variant) [136]Tagbanwa [373]Takri [321]Tai Le [353]New Tai Lue [354]Tamil [346]Tangut [520]Tai Viet [359]Tai Yo [380]Telugu [340]Tengwar [290]Tifinagh (Berber) [120]Tagalog (Baybayin, Alibata) [370]Thaana [170]Thai [352]Tibetan [330]Tirhuta [326]Tangsa [275]Todhri [229]Tolong Siki [299]Toto [294]Tulu-Tigalari [341]Ugaritic [040]Undefined [-1]Vai [470]Visible Speech [280]Vithkuqi [228]Warang Citi (Varang Kshiti) [262]Wancho [283]Woleai [480]Old Persian [030]Cuneiform, Sumero-Akkadian [020]Yezidi [192]Yi [460]Zanabazar Square [339]Code for inherited script [994]Mathematical notation [995]Symbols (emoji variant) [993]Symbols [996]Code for unwritten documents [997]Code for undetermined script [998]Code for uncoded script [999] -
Method Summary
Modifier and TypeMethodDescriptionstatic List<ScriptCode> findByName(String regex) Get a list ofScriptCodeby a name regular expression.static List<ScriptCode> findByName(Pattern pattern) Get a list ofScriptCodeby a name pattern.static ScriptCodegetByCode(int code) Get aScriptCodeinstance that corresponds to the given ISO 15924 numeric code.static ScriptCodeGet aScriptCodeinstance that corresponds to the given ISO 15924 alpha-4 code.static ScriptCodeGet aScriptCodeinstance that corresponds to the given ISO 15924 alpha-4 code.static ScriptCodegetByCodeIgnoreCase(String code) Get aScriptCodeinstance that corresponds to the given ISO 15924 alpha-4 code.static ScriptCodegetByLocale(Locale locale) Get aScriptCodethat corresponds to the script code of the givenLocaleinstance.getName()Get English name of this script code.intGet the numeric code of this script code.toLocale()Convert thisScriptCodeinstance to aLocaleinstance.static ScriptCodeReturns the enum constant of this class with the specified name.static ScriptCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Undefined
Undefined [-1]This is not an official ISO 15924 code.
- Since:
- 1.14
- See Also:
-
Adlm
Adlam [166] -
Afak
Afaka [439] -
Aghb
Caucasian Albanian [239] -
Ahom
Ahom, Tai Ahom [338] -
Arab
Arabic [160] -
Aran
Arabic (Nastaliq variant) [161] -
Armi
Imperial Aramaic [124] -
Armn
Armenian [230] -
Avst
Avestan [134] -
Bali
Balinese [360] -
Bamu
Bamum [435] -
Bass
Bassa Vah [259] -
Batk
Batak [365] -
Beng
Bengali (Bangla) [325] -
Berf
Beria Erfe [258] -
Bhks
Bhaiksuki [334] -
Blis
Blissymbols [550] -
Bopo
Bopomofo [285] -
Brah
Brahmi [300] -
Brai
Braille [570] -
Bugi
Buginese [367] -
Buhd
Buhid [372] -
Cakm
Chakma [349] -
Cans
Unified Canadian Aboriginal Syllabics [440] -
Cari
Carian [201] -
Cham
Cham [358] -
Cher
Cherokee [445] -
Chis
Chisoi [298] -
Chrs
Chorasmian [109] -
Cirt
Cirth [291] -
Copt
Coptic [204] -
Cpmn
Cypro-Minoan [402] -
Cprt
Cypriot syllabary [403] -
Cyrl
Cyrillic [220] -
Cyrs
Cyrillic (Old Church Slavonic variant) [221] -
Deva
Devanagari (Nagari) [315] -
Diak
Dives Akuru [342] -
Dogr
Dogra [328] -
Dsrt
Deseret (Mormon) [250] -
Dupl
Duployan shorthand, Duployan stenography [755] -
Egyd
Egyptian demotic [70] -
Egyh
Egyptian hieratic [060] -
Egyp
Egyptian hieroglyphs [050] -
Elba
Elbasan [226] -
Elym
Elymaic [128] -
Ethi
Ethiopic [430] -
Gara
Garay [164] -
Geok
Khutsuri (Asomtavruli and Nuskhuri) [241] -
Geor
Georgian (Mkhedruli and Mtavruli) [240] -
Glag
Glagolitic [225] -
Gong
Gunjala Gondi [312] -
Gonm
Masaram Gondi [313] -
Goth
Gothic [206] -
Gran
Grantha [343] -
Grek
Greek [200] -
Gujr
Gujarati [320] -
Gukh
Gurung Khema [397] -
Guru
Gurmukhi [310] -
Hanb
Han with Bopomofo (alias for Han + Bopomofo) [503] -
Hang
Hangul [286] -
Hani
Han (Hanzi, Kanji, Hanja) [500] -
Hano
Hanunoo [371] -
Hans
Han (Simplified variant) [501] -
Hant
Han (Traditional variant) [502] -
Hatr
Hatran [127] -
Hebr
Hebrew [125] -
Hira
Hiragana [410] -
Hluw
Anatolian Hieroglyphs (Luwian Hieroglyphs, Hittite Hieroglyphs) [080] -
Hmng
Pahawh Hmong [450] -
Hmnp
Nyiakeng Puachue Hmong [451] -
Hntl
Han (Traditional variant) with Latin (alias for Hant + Latn) [504] -
Hrkt
Japanese syllabaries (alias for Hiragana + Katakana) [412] -
Hung
Old Hungarian (Hungarian Runic) [176] -
Inds
Indus (Harappan) [610] -
Ital
Old Italic (Etruscan, Oscan, etc.) [210] -
Jamo
Jamo (alias for Jamo subset of Hangul) [284] -
Java
Javanese [361] -
Jpan
Japanese (alias for Han + Hiragana + Katakana) [413] -
Jurc
Jurchen [510] -
Kali
Kayah Li [357] -
Kana
Katakana [411] -
Kawi
Kawi [368] -
Khar
Kharoshthi [305] -
Khmr
Khmer [355] -
Khoj
Khojki [322] -
Kitl
Khitan large script [505] -
Kits
Khitan small script [288] -
Knda
Kannada [345] -
Kore
Korean (alias for Hangul + Han) [287] -
Kpel
Kpelle [436] -
Krai
Kirat Rai [396] -
Kthi
Kaithi [317] -
Lana
Tai Tham (Lanna) [351] -
Laoo
Lao [356] -
Latf
Latin (Fraktur variant) [217] -
Latg
Latin (Gaelic variant) [216] -
Latn
Latin [215] -
Leke
Leke [364] -
Lepc
Lepcha [335] -
Limb
Limbu [336] -
Lina
Linear A [400] -
Linb
Linear B [401] -
Lisu
Lisu (Fraser) [399] -
Loma
Loma [437] -
Lyci
Lycian [202] -
Lydi
Lydian [116] -
Mahj
Mahajani [314] -
Maka
Makasar [366] -
Mand
Mandaic, Mandaean [140] -
Mani
Manichaean [139] -
Marc
Marchen [332] -
Maya
Mayan hieroglyphs [090] -
Medf
Medefaidrin [265] -
Mend
Mende Kikakui [438] -
Merc
Meroitic Cursive [101] -
Mero
Meroitic Hieroglyphs [100] -
Mlym
Malayalam [347] -
Modi
Modi [324] -
Mong
Mongolian [145] -
Moon
Moon (Moon code, Moon script, Moon type) [218] -
Mroo
Mro, Mru [264] -
Mtei
Meitei Mayek (Meithei, Meetei) [337] -
Mult
Multani [323] -
Mymr
Myanmar (Burmese) [350] -
Nagm
Nag Mundari [295] -
Nand
Nandinagari [311] -
Narb
Old North Arabian (Ancient North Arabian) [106] -
Nbat
Nabataean [159] -
Newa
Newa, Newar, Newari [333] -
Nkdb
Naxi Dongba [85] -
Nkgb
Naxi Geba [420] -
Nkoo
N’Ko [165] -
Nshu
Nushu [499] -
Ogam
Ogham [212] -
Olck
Ol Chiki (Ol Cemet’, Ol, Santali) [261] -
Onao
Ol Onal [296] -
Orkh
Old Turkic, Orkhon Runic [175] -
Orya
Oriya (Odia) [327] -
Osge
Osage [219] -
Osma
Osmanya [260] -
Ougr
Old Uyghur [143] -
Palm
Palmyrene [126] -
Pauc
Pau Cin Hau [263] -
Pcun
Proto-Cuneiform [15] -
Pelm
Proto-Elamite [16] -
Perm
Old Permic [227] -
Phag
Phags-pa [331] -
Phli
Inscriptional Pahlavi [131] -
Phlp
Psalter Pahlavi [132] -
Phlv
Book Pahlavi [133] -
Phnx
Phoenician [115] -
Piqd
Klingon (KLI pIqaD) [293] -
Plrd
Miao (Pollard) [282] -
Prti
Inscriptional Parthian [130] -
Psin
Proto-Sinaitic [103] -
Qaaa
Reserved for private use [900] -
Qaab
Reserved for private use [901] -
Qaac
Reserved for private use [902] -
Qaad
Reserved for private use [903] -
Qaae
Reserved for private use [904] -
Qaaf
Reserved for private use [905] -
Qaag
Reserved for private use [906] -
Qaah
Reserved for private use [907] -
Qaai
Reserved for private use [908] -
Qaaj
Reserved for private use [909] -
Qaak
Reserved for private use [910] -
Qaal
Reserved for private use [911] -
Qaam
Reserved for private use [912] -
Qaan
Reserved for private use [913] -
Qaao
Reserved for private use [914] -
Qaap
Reserved for private use [915] -
Qaaq
Reserved for private use [916] -
Qaar
Reserved for private use [917] -
Qaas
Reserved for private use [918] -
Qaat
Reserved for private use [919] -
Qaau
Reserved for private use [920] -
Qaav
Reserved for private use [921] -
Qaaw
Reserved for private use [922] -
Qaax
Reserved for private use [923] -
Qaay
Reserved for private use [924] -
Qaaz
Reserved for private use [925] -
Qaba
Reserved for private use [926] -
Qabb
Reserved for private use [927] -
Qabc
Reserved for private use [928] -
Qabd
Reserved for private use [929] -
Qabe
Reserved for private use [930] -
Qabf
Reserved for private use [931] -
Qabg
Reserved for private use [932] -
Qabh
Reserved for private use [933] -
Qabi
Reserved for private use [934] -
Qabj
Reserved for private use [935] -
Qabk
Reserved for private use [936] -
Qabl
Reserved for private use [937] -
Qabm
Reserved for private use [938] -
Qabn
Reserved for private use [939] -
Qabo
Reserved for private use [940] -
Qabp
Reserved for private use [941] -
Qabq
Reserved for private use [942] -
Qabr
Reserved for private use [943] -
Qabs
Reserved for private use [944] -
Qabt
Reserved for private use [945] -
Qabu
Reserved for private use [946] -
Qabv
Reserved for private use [947] -
Qabw
Reserved for private use [948] -
Qabx
Reserved for private use [949] -
Ranj
Ranjana [303] -
Rjng
Rejang (Redjang, Kaganga) [363] -
Rohg
Hanifi Rohingya [167] -
Roro
Rongorongo [620] -
Runr
Runic [211] -
Samr
Samaritan [123] -
Sara
Sarati [292] -
Sarb
Old South Arabian [105] -
Saur
Saurashtra [344] -
Seal
(Small) Seal [590] -
Sgnw
SignWriting [095] -
Shaw
Shavian (Shaw) [281] -
Shrd
Sharada [319] -
Shui
Shuishu [530] -
Sidd
Siddham [302] -
Sidt
Sidetic [180] -
Sind
Khudawadi, Sindhi [318] -
Sinh
Sinhala [348] -
Sogd
Sogdian [141] -
Sogo
Old Sogdian [142] -
Sora
Sora Sompeng [398] -
Soyo
Soyombo [329] -
Sund
Sundanese [362] -
Sunu
Sunuwar [274] -
Sylo
Syloti Nagri [316] -
Syrc
Syriac [135] -
Syre
Syriac (Estrangelo variant) [138] -
Syrj
Syriac (Western variant) [137] -
Syrn
Syriac (Eastern variant) [136] -
Tagb
Tagbanwa [373] -
Takr
Takri [321] -
Tale
Tai Le [353] -
Talu
New Tai Lue [354] -
Taml
Tamil [346] -
Tang
Tangut [520] -
Tavt
Tai Viet [359] -
Tayo
Tai Yo [380] -
Telu
Telugu [340] -
Teng
Tengwar [290] -
Tfng
Tifinagh (Berber) [120] -
Tglg
Tagalog (Baybayin, Alibata) [370] -
Thaa
Thaana [170] -
Thai
Thai [352] -
Tibt
Tibetan [330] -
Tirh
Tirhuta [326] -
Tnsa
Tangsa [275] -
Todr
Todhri [229] -
Tols
Tolong Siki [299] -
Toto
Toto [294] -
Tutg
Tulu-Tigalari [341] -
Ugar
Ugaritic [040] -
Vaii
Vai [470] -
Visp
Visible Speech [280] -
Vith
Vithkuqi [228] -
Wara
Warang Citi (Varang Kshiti) [262] -
Wcho
Wancho [283] -
Wole
Woleai [480] -
Xpeo
Old Persian [030] -
Xsux
Cuneiform, Sumero-Akkadian [020] -
Yezi
Yezidi [192] -
Yiii
Yi [460] -
Zanb
Zanabazar Square [339] -
Zinh
Code for inherited script [994] -
Zmth
Mathematical notation [995] -
Zsye
Symbols (emoji variant) [993] -
Zsym
Symbols [996] -
Zxxx
Code for unwritten documents [997] -
Zyyy
Code for undetermined script [998] -
Zzzz
Code for uncoded script [999]
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumeric
public int getNumeric()Get the numeric code of this script code.- Returns:
- Numeric code.
-
getName
-
toLocale
-
getByCode
Get aScriptCodeinstance that corresponds to the given ISO 15924 alpha-4 code.This method calls
getByCode(code, true). Note that the behavior has changed since the version 1.13. In the older versions, this method was an alias ofgetByCode(code, false).- Parameters:
code- ISO 15924 alpha-4 code. Or "Undefined" (case-sensitive).- Returns:
- A
ScriptCodeinstance, ornullif not found.
-
getByCodeIgnoreCase
Get aScriptCodeinstance that corresponds to the given ISO 15924 alpha-4 code.This method calls
getByCode(code, false).- Parameters:
code- ISO 15924 alpha-4 code. Or "Undefined" (case-insensitive).- Returns:
- A
ScriptCodeinstance, ornullif not found. - Since:
- 1.13
-
getByCode
Get aScriptCodeinstance that corresponds to the given ISO 15924 alpha-4 code.- Parameters:
code- ISO 15924 alpha-4 code. Or "Undefined" (its case sensitivity depends on the value ofcaseSensitive).caseSensitive- Iftrue, the first letter of the given code should be capital and the other letters should be small. Iffalse, whether letters are capital or small does not matter. For example,getByCode("JPAN", true)returnsnullbutgetByCode("JPAN", false)returnsJpan.- Returns:
- A
ScriptCodeinstance, ornullif not found.
-
getByCode
Get aScriptCodeinstance that corresponds to the given ISO 15924 numeric code.- Parameters:
code- ISO 15924 numeric code.- Returns:
- A
ScriptCodeinstance, ornullif not found. If 0 or a negative value is given,nullis returned.
-
getByLocale
Get aScriptCodethat corresponds to the script code of the givenLocaleinstance.- Parameters:
locale- ALocaleinstance.- Returns:
- A
ScriptCodeinstance, ornullif not found. WhengetScript()method of the givenLocaleinstance returnsnullor an empty string,ScriptCode.Undefinedis returned. - See Also:
-
findByName
Get a list ofScriptCodeby a name regular expression.This method is almost equivalent to
findByName(Pattern.compile(regex)).- Parameters:
regex- Regular expression for names.- Returns:
- List of
ScriptCode. If nothing has matched, an empty list is returned. - Throws:
IllegalArgumentException-regexisnull.PatternSyntaxException-regexfailed to be compiled.- Since:
- 1.11
-
findByName
Get a list ofScriptCodeby a name pattern.For example, the list obtained by the code snippet below:
Pattern pattern = Pattern.compile("Egyptian.*"); List<ScriptCode> list = ScriptCode.findByName(pattern);contains 3
ScriptCodes as listed below.- Parameters:
pattern- Pattern to match names.- Returns:
- List of
ScriptCode. If nothing has matched, an empty list is returned. - Throws:
IllegalArgumentException-patternisnull.- Since:
- 1.11
-