Enum Class ScriptCode

java.lang.Object
java.lang.Enum<ScriptCode>
com.luna.common.i18n.ScriptCode
All Implemented Interfaces:
Serializable, Comparable<ScriptCode>, java.lang.constant.Constable

public enum ScriptCode extends Enum<ScriptCode>
Since:
1.2
Author:
Takahiko Kawasaki
  • Enum Constant Details

    • Undefined

      public static final ScriptCode Undefined
      Undefined [-1]

      This is not an official ISO 15924 code.

      Since:
      1.14
      See Also:
    • Afak

      public static final ScriptCode Afak
      Afaka [439]
    • Aghb

      public static final ScriptCode Aghb
      Caucasian Albanian [239]
    • Arab

      public static final ScriptCode Arab
      Arabic [160]
    • Armi

      public static final ScriptCode Armi
      Imperial Aramaic [124]
    • Armn

      public static final ScriptCode Armn
      Armenian [230]
    • Avst

      public static final ScriptCode Avst
      Avestan [134]
    • Bali

      public static final ScriptCode Bali
      Balinese [360]
    • Bamu

      public static final ScriptCode Bamu
      Bamum [435]
    • Bass

      public static final ScriptCode Bass
      Bassa Vah [259]
    • Batk

      public static final ScriptCode Batk
      Batak [365]
    • Beng

      public static final ScriptCode Beng
      Bengali [325]
    • Blis

      public static final ScriptCode Blis
      Blissymbols [550]
    • Bopo

      public static final ScriptCode Bopo
      Bopomofo [285]
    • Brah

      public static final ScriptCode Brah
      Brahmi [300]
    • Brai

      public static final ScriptCode Brai
      Braille [570]
    • Bugi

      public static final ScriptCode Bugi
      Buginese [367]
    • Buhd

      public static final ScriptCode Buhd
      Buhid [372]
    • Cakm

      public static final ScriptCode Cakm
      Chakma [349]
    • Cans

      public static final ScriptCode Cans
      Unified Canadian Aboriginal Syllabics [440]
    • Cari

      public static final ScriptCode Cari
      Carian [201]
    • Cham

      public static final ScriptCode Cham
      Cham [358]
    • Cher

      public static final ScriptCode Cher
      Cherokee [445]
    • Cirt

      public static final ScriptCode Cirt
      Cirth [291]
    • Copt

      public static final ScriptCode Copt
      Coptic [204]
    • Cprt

      public static final ScriptCode Cprt
      Cypriot [403]
    • Cyrl

      public static final ScriptCode Cyrl
      Cyrillic [220]
    • Cyrs

      public static final ScriptCode Cyrs
      Cyrillic [221]
    • Deva

      public static final ScriptCode Deva
      Devanagari [315]
    • Dsrt

      public static final ScriptCode Dsrt
      Deseret [250]
    • Dupl

      public static final ScriptCode Dupl
      Duployan shorthand, Duployan stenography [755]
    • Egyd

      public static final ScriptCode Egyd
      Egyptian demotic [070]
    • Egyh

      public static final ScriptCode Egyh
      Egyptian hieratic [060]
    • Egyp

      public static final ScriptCode Egyp
      Egyptian hieroglyphs [050]
    • Elba

      public static final ScriptCode Elba
      Elbasan [226]
    • Ethi

      public static final ScriptCode Ethi
      Ethiopic [430]
    • Geor

      public static final ScriptCode Geor
      Georgian [240]
    • Geok

      public static final ScriptCode Geok
      Khutsuri [241]
    • Glag

      public static final ScriptCode Glag
      Glagolitic [225]
    • Goth

      public static final ScriptCode Goth
      Gothic [206]
    • Gran

      public static final ScriptCode Gran
      Grantha [343]
    • Grek

      public static final ScriptCode Grek
      Greek [200]
    • Gujr

      public static final ScriptCode Gujr
      Gujarati [320]
    • Guru

      public static final ScriptCode Guru
      Gurmukhi [310]
    • Hang

      public static final ScriptCode Hang
      Hangul [286]
    • Hani

      public static final ScriptCode Hani
      Han [500]
    • Hano

      public static final ScriptCode Hano
      Hanunoo [371]
    • Hans

      public static final ScriptCode Hans
      Han [501]
    • Hant

      public static final ScriptCode Hant
      Han [502]
    • Hebr

      public static final ScriptCode Hebr
      Hebrew [125]
    • Hira

      public static final ScriptCode Hira
      Hiragana [410]
    • Hluw

      public static final ScriptCode Hluw
      Anatolian Hieroglyphs [080]
    • Hmng

      public static final ScriptCode Hmng
      Pahawh Hmong [450]
    • Hrkt

      public static final ScriptCode Hrkt
      Japanese syllabaries [412]
    • Hung

      public static final ScriptCode Hung
      Old Hungarian [176]
    • Inds

      public static final ScriptCode Inds
      Indus [610]
    • Ital

      public static final ScriptCode Ital
      Old Italic [210]
    • Java

      public static final ScriptCode Java
      Javanese [361]
    • Jpan

      public static final ScriptCode Jpan
      Japanese [413]
    • Jurc

      public static final ScriptCode Jurc
      Jurchen [510]
    • Kali

      public static final ScriptCode Kali
      Kayah Li [357]
    • Kana

      public static final ScriptCode Kana
      Katakana [411]
    • Khar

      public static final ScriptCode Khar
      Kharoshthi [305]
    • Khmr

      public static final ScriptCode Khmr
      Khmer [355]
    • Khoj

      public static final ScriptCode Khoj
      Khojki [322]
    • Knda

      public static final ScriptCode Knda
      Kannada [345]
    • Kore

      public static final ScriptCode Kore
      Korean [287]
    • Kpel

      public static final ScriptCode Kpel
      Kpelle [436]
    • Kthi

      public static final ScriptCode Kthi
      Kaithi [317]
    • Lana

      public static final ScriptCode Lana
      Tai Tham [351]
    • Laoo

      public static final ScriptCode Laoo
      Lao [356]
    • Latf

      public static final ScriptCode Latf
      Latin [217]
    • Latg

      public static final ScriptCode Latg
      Latin [216]
    • Latn

      public static final ScriptCode Latn
      Latin [215]
    • Lepc

      public static final ScriptCode Lepc
      Lepcha [335]
    • Limb

      public static final ScriptCode Limb
      Limbu [336]
    • Lina

      public static final ScriptCode Lina
      Linear A [400]
    • Linb

      public static final ScriptCode Linb
      Linear B [401]
    • Lisu

      public static final ScriptCode Lisu
      Lisu [399]
    • Loma

      public static final ScriptCode Loma
      Loma [437]
    • Lyci

      public static final ScriptCode Lyci
      Lycian [202]
    • Lydi

      public static final ScriptCode Lydi
      Lydian [116]
    • Mahj

      public static final ScriptCode Mahj
      Mahajani [314]
    • Mand

      public static final ScriptCode Mand
      Mandaic, Mandaean [140]
    • Mani

      public static final ScriptCode Mani
      Manichaean [139]
    • Maya

      public static final ScriptCode Maya
      Mayan hieroglyphs [090]
    • Mend

      public static final ScriptCode Mend
      Mende [438]
    • Merc

      public static final ScriptCode Merc
      Meroitic Cursive [101]
    • Mero

      public static final ScriptCode Mero
      Meroitic Hieroglyphs [100]
    • Mlym

      public static final ScriptCode Mlym
      Malayalam [347]
    • Moon

      public static final ScriptCode Moon
      Moon [218]
    • Mong

      public static final ScriptCode Mong
      Mongolian [145]
    • Mroo

      public static final ScriptCode Mroo
      Mro, Mru [199]
    • Mtei

      public static final ScriptCode Mtei
      Meitei Mayek [337]
    • Mymr

      public static final ScriptCode Mymr
      Myanmar [350]
    • Narb

      public static final ScriptCode Narb
      Old North Arabian [106]
    • Nbat

      public static final ScriptCode Nbat
      Nabataean [159]
    • Nkgb

      public static final ScriptCode Nkgb
      Nakhi Geba [420]
    • Nkoo

      public static final ScriptCode Nkoo
      N’Ko [165]
    • Nshu

      public static final ScriptCode Nshu
      Nushu [499]
    • Ogam

      public static final ScriptCode Ogam
      Ogham [212]
    • Olck

      public static final ScriptCode Olck
      Ol Chiki [261]
    • Orkh

      public static final ScriptCode Orkh
      Old Turkic, Orkhon Runic [175]
    • Orya

      public static final ScriptCode Orya
      Oriya [327]
    • Osma

      public static final ScriptCode Osma
      Osmanya [260]
    • Palm

      public static final ScriptCode Palm
      Palmyrene [126]
    • Perm

      public static final ScriptCode Perm
      Old Permic [227]
    • Phag

      public static final ScriptCode Phag
      Phags-pa [331]
    • Phli

      public static final ScriptCode Phli
      Inscriptional Pahlavi [131]
    • Phlp

      public static final ScriptCode Phlp
      Psalter Pahlavi [132]
    • Phlv

      public static final ScriptCode Phlv
      Book Pahlavi [133]
    • Phnx

      public static final ScriptCode Phnx
      Phoenician [115]
    • Plrd

      public static final ScriptCode Plrd
      Miao [282]
    • Prti

      public static final ScriptCode Prti
      Inscriptional Parthian [130]
    • Qaaa

      public static final ScriptCode Qaaa
      Reserved for private use [900]
    • Qabx

      public static final ScriptCode Qabx
      Reserved for private use [949]
    • Rjng

      public static final ScriptCode Rjng
      Rejang [363]
    • Roro

      public static final ScriptCode Roro
      Rongorongo [620]
    • Runr

      public static final ScriptCode Runr
      Runic [211]
    • Samr

      public static final ScriptCode Samr
      Samaritan [123]
    • Sara

      public static final ScriptCode Sara
      Sarati [292]
    • Sarb

      public static final ScriptCode Sarb
      Old South Arabian [105]
    • Saur

      public static final ScriptCode Saur
      Saurashtra [344]
    • Sgnw

      public static final ScriptCode Sgnw
      SignWriting [095]
    • Shaw

      public static final ScriptCode Shaw
      Shavian [281]
    • Shrd

      public static final ScriptCode Shrd
      Sharada [319]
    • Sind

      public static final ScriptCode Sind
      Khudawadi, Sindhi [318]
    • Sinh

      public static final ScriptCode Sinh
      Sinhala [348]
    • Sora

      public static final ScriptCode Sora
      Sora Sompeng [398]
    • Sund

      public static final ScriptCode Sund
      Sundanese [362]
    • Sylo

      public static final ScriptCode Sylo
      Syloti Nagri [316]
    • Syrc

      public static final ScriptCode Syrc
      Syriac [135]
    • Syre

      public static final ScriptCode Syre
      Syriac [138]
    • Syrj

      public static final ScriptCode Syrj
      Syriac [137]
    • Syrn

      public static final ScriptCode Syrn
      Syriac [136]
    • Tagb

      public static final ScriptCode Tagb
      Tagbanwa [373]
    • Takr

      public static final ScriptCode Takr
      Takri [321]
    • Tale

      public static final ScriptCode Tale
      Tai Le [353]
    • Talu

      public static final ScriptCode Talu
      New Tai Lue [354]
    • Taml

      public static final ScriptCode Taml
      Tamil [346]
    • Tang

      public static final ScriptCode Tang
      Tangut [520]
    • Tavt

      public static final ScriptCode Tavt
      Tai Viet [359]
    • Telu

      public static final ScriptCode Telu
      Telugu [340]
    • Teng

      public static final ScriptCode Teng
      Tengwar [290]
    • Tfng

      public static final ScriptCode Tfng
      Tifinagh [120]
    • Tglg

      public static final ScriptCode Tglg
      Tagalog [370]
    • Thaa

      public static final ScriptCode Thaa
      Thaana [170]
    • Thai

      public static final ScriptCode Thai
      Thai [352]
    • Tibt

      public static final ScriptCode Tibt
      Tibetan [330]
    • Tirh

      public static final ScriptCode Tirh
      Tirhuta [326]
    • Ugar

      public static final ScriptCode Ugar
      Ugaritic [040]
    • Vaii

      public static final ScriptCode Vaii
      Vai [470]
    • Visp

      public static final ScriptCode Visp
      Visible Speech [280]
    • Wara

      public static final ScriptCode Wara
      Warang Citi [262]
    • Wole

      public static final ScriptCode Wole
      Woleai [480]
    • Xpeo

      public static final ScriptCode Xpeo
      Old Persian [030]
    • Xsux

      public static final ScriptCode Xsux
      Cuneiform, Sumero-Akkadian [020]
    • Yiii

      public static final ScriptCode Yiii
      Yi [460]
    • Zinh

      public static final ScriptCode Zinh
      Code for inherited script [994]
    • Zmth

      public static final ScriptCode Zmth
      Mathematical notation [995]
    • Zsym

      public static final ScriptCode Zsym
      Symbols [996]
    • Zxxx

      public static final ScriptCode Zxxx
      Code for unwritten documents [997]
    • Zyyy

      public static final ScriptCode Zyyy
      Code for undetermined script [998]
    • Zzzz

      public static final ScriptCode Zzzz
      Code for uncoded script [999]
  • Method Details

    • values

      public static ScriptCode[] 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

      public static ScriptCode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getByCode

      public static ScriptCode getByCode(String code)
      Get a ScriptCode instance 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 of getByCode(code, false).

      Parameters:
      code - ISO 15924 alpha-4 code. Or "Undefined" (case sensitive).
      Returns:
      A ScriptCode instance, or null if not found.
    • getByCodeIgnoreCase

      public static ScriptCode getByCodeIgnoreCase(String code)
      Get a ScriptCode instance 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 ScriptCode instance, or null if not found.
      Since:
      1.13
    • getByCode

      public static ScriptCode getByCode(String code, boolean caseSensitive)
      Get a ScriptCode instance 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 of caseSensitive).
      caseSensitive - If true, the first letter of the given code should be capital and the other letters should be small. If false, whether letters are capital or small does not matter. For example, getByCode("JPAN", true) returns null but getByCode("JPAN", false) returns Jpan.
      Returns:
      A ScriptCode instance, or null if not found.
    • getByCode

      public static ScriptCode getByCode(int code)
      Get a ScriptCode instance that corresponds to the given ISO 15924 numeric code.
      Parameters:
      code - ISO 15924 numeric code.
      Returns:
      A ScriptCode instance, or null if not found. If 0 or a negative value is given, null is returned.
    • findByName

      public static List<ScriptCode> findByName(String regex)
      Get a list of ScriptCode by 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 - regex is null.
      PatternSyntaxException - regex failed to be compiled.
      Since:
      1.11
    • findByName

      public static List<ScriptCode> findByName(Pattern pattern)
      Get a list of ScriptCode by 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.

      1. Egyd : Egyptian demotic
      2. Egyh : Egyptian hieratic
      3. Egyp : Egyptian hieroglyps
      Parameters:
      pattern - Pattern to match names.
      Returns:
      List of ScriptCode. If nothing has matched, an empty list is returned.
      Throws:
      IllegalArgumentException - pattern is null.
      Since:
      1.11
    • getNumeric

      public int getNumeric()
      Get the numeric code of this script code.
      Returns:
      Numeric code.
    • getName

      public String getName()
      Get English name of this script code.
      Returns:
      English name.