Class UScript
- java.lang.Object
-
- com.ibm.icu.lang.UScript
-
public final class UScript extends java.lang.Object
Constants for ISO 15924 script codes, and related functions.The current set of script code constants supports at least all scripts that are encoded in the version of Unicode which ICU currently supports. The names of the constants are usually derived from the Unicode script property value aliases. See UAX #24 Unicode Script Property (http://www.unicode.org/reports/tr24/) and http://www.unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt .
In addition, constants for many ISO 15924 script codes are included, for use with language tags, CLDR data, and similar. Some of those codes are not used in the Unicode Character Database (UCD). For example, there are no characters that have a UCD script property value of Hans or Hant. All Han ideographs have the Hani script property value in Unicode.
Private-use codes Qaaa..Qabx are not included, except as used in the UCD or in CLDR.
Starting with ICU 55, script codes are only added when their scripts have been or will certainly be encoded in Unicode, and have been assigned Unicode script property value aliases, to ensure that their script names are stable and match the names of the constants. Script codes like Latf and Aran that are not subject to separate encoding may be added at any time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UScript.ScriptUsage
Script usage constants.
-
Field Summary
Fields Modifier and Type Field Description static int
ADLAM
ISO 15924 script codestatic int
AFAKA
ISO 15924 script codestatic int
AHOM
ISO 15924 script codestatic int
ANATOLIAN_HIEROGLYPHS
ISO 15924 script codestatic int
ARABIC
Arabicstatic int
ARMENIAN
Armenianstatic int
AVESTAN
ISO 15924 script codestatic int
BALINESE
ISO 15924 script codestatic int
BAMUM
ISO 15924 script codestatic int
BASSA_VAH
ISO 15924 script codestatic int
BATAK
ISO 15924 script codestatic int
BENGALI
Bengalistatic int
BHAIKSUKI
ISO 15924 script codestatic int
BLISSYMBOLS
ISO 15924 script codestatic int
BOOK_PAHLAVI
ISO 15924 script codestatic int
BOPOMOFO
Bopomofostatic int
BRAHMI
ISO 15924 script codestatic int
BRAILLE
Braille Script in Unicode 4static int
BUGINESE
Script in Unicode 4.1static int
BUHID
Buhidstatic int
CANADIAN_ABORIGINAL
Unified Canadian Aboriginal Symbolsstatic int
CARIAN
ISO 15924 script codestatic int
CAUCASIAN_ALBANIAN
ISO 15924 script codestatic int
CHAKMA
ISO 15924 script codestatic int
CHAM
ISO 15924 script codestatic int
CHEROKEE
Cherokeestatic int
CHORASMIAN
static int
CIRTH
ISO 15924 script codestatic int
CODE_LIMIT
Deprecated.ICU 58 The numeric value may change over time, see ICU ticket #12420.static int
COMMON
Commonstatic int
COPTIC
Copticstatic int
CUNEIFORM
ISO 15924 script codestatic int
CYPRIOT
Cypriot Script in Unicode 4static int
CYRILLIC
Cyrillicstatic int
DEMOTIC_EGYPTIAN
ISO 15924 script codestatic int
DESERET
Deseretstatic int
DEVANAGARI
Devanagaristatic int
DIVES_AKURU
static int
DOGRA
ISO 15924 script codestatic int
DUPLOYAN
ISO 15924 script codestatic int
DUPLOYAN_SHORTAND
Deprecated.ICU 54static int
EASTERN_SYRIAC
ISO 15924 script codestatic int
EGYPTIAN_HIEROGLYPHS
ISO 15924 script codestatic int
ELBASAN
ISO 15924 script codestatic int
ELYMAIC
static int
ESTRANGELO_SYRIAC
ISO 15924 script codestatic int
ETHIOPIC
Ethiopicstatic int
GEORGIAN
Georgianstatic int
GLAGOLITIC
Script in Unicode 4.1static int
GOTHIC
Gothicstatic int
GRANTHA
ISO 15924 script codestatic int
GREEK
Greekstatic int
GUJARATI
Gujaratistatic int
GUNJALA_GONDI
static int
GURMUKHI
Gurmukhistatic int
HAN
Hanstatic int
HAN_WITH_BOPOMOFO
ISO 15924 script codestatic int
HANGUL
Hangulstatic int
HANIFI_ROHINGYA
static int
HANUNOO
Hanunooostatic int
HARAPPAN_INDUS
ISO 15924 script codestatic int
HATRAN
ISO 15924 script codestatic int
HEBREW
Hebrewstatic int
HIERATIC_EGYPTIAN
ISO 15924 script codestatic int
HIRAGANA
Hiraganastatic int
IMPERIAL_ARAMAIC
ISO 15924 script codestatic int
INHERITED
Inheritedstatic int
INSCRIPTIONAL_PAHLAVI
ISO 15924 script codestatic int
INSCRIPTIONAL_PARTHIAN
ISO 15924 script codestatic int
INVALID_CODE
Invalid codestatic int
JAMO
ISO 15924 script codestatic int
JAPANESE
ISO 15924 script codestatic int
JAVANESE
ISO 15924 script codestatic int
JURCHEN
ISO 15924 script codestatic int
KAITHI
ISO 15924 script codestatic int
KANNADA
Kannadastatic int
KATAKANA
Katakanastatic int
KATAKANA_OR_HIRAGANA
Script in Unicode 4.0.1static int
KAYAH_LI
ISO 15924 script codestatic int
KHAROSHTHI
Script in Unicode 4.1static int
KHITAN_SMALL_SCRIPT
static int
KHMER
Khmerstatic int
KHOJKI
ISO 15924 script codestatic int
KHUDAWADI
ISO 15924 script codestatic int
KHUTSURI
ISO 15924 script codestatic int
KOREAN
ISO 15924 script codestatic int
KPELLE
ISO 15924 script codestatic int
LANNA
ISO 15924 script codestatic int
LAO
Laostatic int
LATIN
Latinstatic int
LATIN_FRAKTUR
ISO 15924 script codestatic int
LATIN_GAELIC
ISO 15924 script codestatic int
LEPCHA
ISO 15924 script codestatic int
LIMBU
Limbu Script in Unicode 4static int
LINEAR_A
ISO 15924 script codestatic int
LINEAR_B
Linear B Script in Unicode 4static int
LISU
ISO 15924 script codestatic int
LOMA
ISO 15924 script codestatic int
LYCIAN
ISO 15924 script codestatic int
LYDIAN
ISO 15924 script codestatic int
MAHAJANI
ISO 15924 script codestatic int
MAKASAR
static int
MALAYALAM
Malayalamstatic int
MANDAEAN
ISO 15924 script codestatic int
MANDAIC
ISO 15924 script codestatic int
MANICHAEAN
ISO 15924 script codestatic int
MARCHEN
ISO 15924 script codestatic int
MASARAM_GONDI
ISO 15924 script codestatic int
MATHEMATICAL_NOTATION
ISO 15924 script codestatic int
MAYAN_HIEROGLYPHS
ISO 15924 script codestatic int
MEDEFAIDRIN
static int
MEITEI_MAYEK
ISO 15924 script codestatic int
MENDE
Mende Kikakui ISO 15924 script codestatic int
MEROITIC
ISO 15924 script codestatic int
MEROITIC_CURSIVE
ISO 15924 script codestatic int
MEROITIC_HIEROGLYPHS
ISO 15924 script codestatic int
MIAO
ISO 15924 script codestatic int
MODI
ISO 15924 script codestatic int
MONGOLIAN
Mangolianstatic int
MOON
ISO 15924 script codestatic int
MRO
ISO 15924 script codestatic int
MULTANI
ISO 15924 script codestatic int
MYANMAR
Myammarstatic int
NABATAEAN
ISO 15924 script codestatic int
NAKHI_GEBA
ISO 15924 script codestatic int
NANDINAGARI
static int
NEW_TAI_LUE
Script in Unicode 4.1static int
NEWA
ISO 15924 script codestatic int
NKO
ISO 15924 script codestatic int
NUSHU
ISO 15924 script codestatic int
NYIAKENG_PUACHUE_HMONG
static int
OGHAM
Oghamstatic int
OL_CHIKI
ISO 15924 script codestatic int
OLD_CHURCH_SLAVONIC_CYRILLIC
ISO 15924 script codestatic int
OLD_HUNGARIAN
ISO 15924 script codestatic int
OLD_ITALIC
Old Itallicstatic int
OLD_NORTH_ARABIAN
ISO 15924 script codestatic int
OLD_PERMIC
ISO 15924 script codestatic int
OLD_PERSIAN
Script in Unicode 4.1static int
OLD_SOGDIAN
static int
OLD_SOUTH_ARABIAN
ISO 15924 script codestatic int
ORIYA
Oriyastatic int
ORKHON
ISO 15924 script codestatic int
OSAGE
ISO 15924 script codestatic int
OSMANYA
Osmanya Script in Unicode 4static int
PAHAWH_HMONG
ISO 15924 script codestatic int
PALMYRENE
ISO 15924 script codestatic int
PAU_CIN_HAU
ISO 15924 script codestatic int
PHAGS_PA
ISO 15924 script codestatic int
PHOENICIAN
ISO 15924 script codestatic int
PHONETIC_POLLARD
ISO 15924 script codestatic int
PSALTER_PAHLAVI
ISO 15924 script codestatic int
REJANG
ISO 15924 script codestatic int
RONGORONGO
ISO 15924 script codestatic int
RUNIC
Runicstatic int
SAMARITAN
ISO 15924 script codestatic int
SARATI
ISO 15924 script codestatic int
SAURASHTRA
ISO 15924 script codestatic int
SHARADA
ISO 15924 script codestatic int
SHAVIAN
Shavian Script in Unicode 4static int
SIDDHAM
ISO 15924 script codestatic int
SIGN_WRITING
ISO 15924 script code for Sutton SignWritingstatic int
SIMPLIFIED_HAN
ISO 15924 script codestatic int
SINDHI
ISO 15924 script codestatic int
SINHALA
Sinhalastatic int
SOGDIAN
static int
SORA_SOMPENG
ISO 15924 script codestatic int
SOYOMBO
ISO 15924 script codestatic int
SUNDANESE
ISO 15924 script codestatic int
SYLOTI_NAGRI
Script in Unicode 4.1static int
SYMBOLS
ISO 15924 script codestatic int
SYMBOLS_EMOJI
ISO 15924 script codestatic int
SYRIAC
Syriacstatic int
TAGALOG
Tagalogstatic int
TAGBANWA
Tagbanwastatic int
TAI_LE
Tai Le Script in Unicode 4static int
TAI_VIET
ISO 15924 script codestatic int
TAKRI
ISO 15924 script codestatic int
TAMIL
Tamilstatic int
TANGUT
ISO 15924 script codestatic int
TELUGU
Telugustatic int
TENGWAR
ISO 15924 script codestatic int
THAANA
Thanastatic int
THAI
Thaistatic int
TIBETAN
Tibetanstatic int
TIFINAGH
Script in Unicode 4.1static int
TIRHUTA
ISO 15924 script codestatic int
TRADITIONAL_HAN
ISO 15924 script codestatic int
UCAS
Unified Canadian Aboriginal Symbols (alias)static int
UGARITIC
Ugaritic Script in Unicode 4static int
UNKNOWN
ISO 15924 script codestatic int
UNWRITTEN_LANGUAGES
ISO 15924 script codestatic int
VAI
ISO 15924 script codestatic int
VISIBLE_SPEECH
ISO 15924 script codestatic int
WANCHO
static int
WARANG_CITI
ISO 15924 script codestatic int
WESTERN_SYRIAC
ISO 15924 script codestatic int
WOLEAI
ISO 15924 script codestatic int
YEZIDI
static int
YI
Yi syllablesstatic int
ZANABAZAR_SQUARE
ISO 15924 script code
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
breaksBetweenLetters(int script)
Returns true if the script allows line breaks between letters (excluding hyphenation).static int[]
getCode(ULocale locale)
Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.static int[]
getCode(java.lang.String nameOrAbbrOrLocale)
Gets the script codes associated with the given locale or ISO 15924 abbreviation or name.static int[]
getCode(java.util.Locale locale)
Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.static int
getCodeFromName(java.lang.String nameOrAbbr)
Returns the script code associated with the given Unicode script property alias (name or abbreviation).static java.lang.String
getName(int scriptCode)
Returns the long Unicode script name, if there is one.static java.lang.String
getSampleString(int script)
Returns the script sample character string.static int
getScript(int codepoint)
Gets the script code associated with the given codepoint.static int
getScriptExtensions(int c, java.util.BitSet set)
Sets code point c's Script_Extensions as script code integers into the output BitSet.static java.lang.String
getShortName(int scriptCode)
Returns the 4-letter ISO 15924 script code, which is the same as the short Unicode script name if Unicode has names for the script.static UScript.ScriptUsage
getUsage(int script)
Returns the script usage according to UAX #31 Unicode Identifier and Pattern Syntax.static boolean
hasScript(int c, int sc)
Do the Script_Extensions of code point c contain script sc?static boolean
isCased(int script)
Returns true if in modern (or most recent) usage of the script case distinctions are customary.static boolean
isRightToLeft(int script)
Returns true if the script is written right-to-left.
-
-
-
Field Detail
-
INVALID_CODE
public static final int INVALID_CODE
Invalid code- See Also:
- Constant Field Values
-
COMMON
public static final int COMMON
Common- See Also:
- Constant Field Values
-
INHERITED
public static final int INHERITED
Inherited- See Also:
- Constant Field Values
-
ARABIC
public static final int ARABIC
Arabic- See Also:
- Constant Field Values
-
ARMENIAN
public static final int ARMENIAN
Armenian- See Also:
- Constant Field Values
-
BENGALI
public static final int BENGALI
Bengali- See Also:
- Constant Field Values
-
BOPOMOFO
public static final int BOPOMOFO
Bopomofo- See Also:
- Constant Field Values
-
CHEROKEE
public static final int CHEROKEE
Cherokee- See Also:
- Constant Field Values
-
COPTIC
public static final int COPTIC
Coptic- See Also:
- Constant Field Values
-
CYRILLIC
public static final int CYRILLIC
Cyrillic- See Also:
- Constant Field Values
-
DESERET
public static final int DESERET
Deseret- See Also:
- Constant Field Values
-
DEVANAGARI
public static final int DEVANAGARI
Devanagari- See Also:
- Constant Field Values
-
ETHIOPIC
public static final int ETHIOPIC
Ethiopic- See Also:
- Constant Field Values
-
GEORGIAN
public static final int GEORGIAN
Georgian- See Also:
- Constant Field Values
-
GOTHIC
public static final int GOTHIC
Gothic- See Also:
- Constant Field Values
-
GREEK
public static final int GREEK
Greek- See Also:
- Constant Field Values
-
GUJARATI
public static final int GUJARATI
Gujarati- See Also:
- Constant Field Values
-
GURMUKHI
public static final int GURMUKHI
Gurmukhi- See Also:
- Constant Field Values
-
HAN
public static final int HAN
Han- See Also:
- Constant Field Values
-
HANGUL
public static final int HANGUL
Hangul- See Also:
- Constant Field Values
-
HEBREW
public static final int HEBREW
Hebrew- See Also:
- Constant Field Values
-
HIRAGANA
public static final int HIRAGANA
Hiragana- See Also:
- Constant Field Values
-
KANNADA
public static final int KANNADA
Kannada- See Also:
- Constant Field Values
-
KATAKANA
public static final int KATAKANA
Katakana- See Also:
- Constant Field Values
-
KHMER
public static final int KHMER
Khmer- See Also:
- Constant Field Values
-
LAO
public static final int LAO
Lao- See Also:
- Constant Field Values
-
LATIN
public static final int LATIN
Latin- See Also:
- Constant Field Values
-
MALAYALAM
public static final int MALAYALAM
Malayalam- See Also:
- Constant Field Values
-
MONGOLIAN
public static final int MONGOLIAN
Mangolian- See Also:
- Constant Field Values
-
MYANMAR
public static final int MYANMAR
Myammar- See Also:
- Constant Field Values
-
OGHAM
public static final int OGHAM
Ogham- See Also:
- Constant Field Values
-
OLD_ITALIC
public static final int OLD_ITALIC
Old Itallic- See Also:
- Constant Field Values
-
ORIYA
public static final int ORIYA
Oriya- See Also:
- Constant Field Values
-
RUNIC
public static final int RUNIC
Runic- See Also:
- Constant Field Values
-
SINHALA
public static final int SINHALA
Sinhala- See Also:
- Constant Field Values
-
SYRIAC
public static final int SYRIAC
Syriac- See Also:
- Constant Field Values
-
TAMIL
public static final int TAMIL
Tamil- See Also:
- Constant Field Values
-
TELUGU
public static final int TELUGU
Telugu- See Also:
- Constant Field Values
-
THAANA
public static final int THAANA
Thana- See Also:
- Constant Field Values
-
THAI
public static final int THAI
Thai- See Also:
- Constant Field Values
-
TIBETAN
public static final int TIBETAN
Tibetan- See Also:
- Constant Field Values
-
CANADIAN_ABORIGINAL
public static final int CANADIAN_ABORIGINAL
Unified Canadian Aboriginal Symbols- See Also:
- Constant Field Values
-
UCAS
public static final int UCAS
Unified Canadian Aboriginal Symbols (alias)- See Also:
- Constant Field Values
-
YI
public static final int YI
Yi syllables- See Also:
- Constant Field Values
-
TAGALOG
public static final int TAGALOG
Tagalog- See Also:
- Constant Field Values
-
HANUNOO
public static final int HANUNOO
Hanunooo- See Also:
- Constant Field Values
-
BUHID
public static final int BUHID
Buhid- See Also:
- Constant Field Values
-
TAGBANWA
public static final int TAGBANWA
Tagbanwa- See Also:
- Constant Field Values
-
BRAILLE
public static final int BRAILLE
Braille Script in Unicode 4- See Also:
- Constant Field Values
-
CYPRIOT
public static final int CYPRIOT
Cypriot Script in Unicode 4- See Also:
- Constant Field Values
-
LIMBU
public static final int LIMBU
Limbu Script in Unicode 4- See Also:
- Constant Field Values
-
LINEAR_B
public static final int LINEAR_B
Linear B Script in Unicode 4- See Also:
- Constant Field Values
-
OSMANYA
public static final int OSMANYA
Osmanya Script in Unicode 4- See Also:
- Constant Field Values
-
SHAVIAN
public static final int SHAVIAN
Shavian Script in Unicode 4- See Also:
- Constant Field Values
-
TAI_LE
public static final int TAI_LE
Tai Le Script in Unicode 4- See Also:
- Constant Field Values
-
UGARITIC
public static final int UGARITIC
Ugaritic Script in Unicode 4- See Also:
- Constant Field Values
-
KATAKANA_OR_HIRAGANA
public static final int KATAKANA_OR_HIRAGANA
Script in Unicode 4.0.1- See Also:
- Constant Field Values
-
BUGINESE
public static final int BUGINESE
Script in Unicode 4.1- See Also:
- Constant Field Values
-
GLAGOLITIC
public static final int GLAGOLITIC
Script in Unicode 4.1- See Also:
- Constant Field Values
-
KHAROSHTHI
public static final int KHAROSHTHI
Script in Unicode 4.1- See Also:
- Constant Field Values
-
SYLOTI_NAGRI
public static final int SYLOTI_NAGRI
Script in Unicode 4.1- See Also:
- Constant Field Values
-
NEW_TAI_LUE
public static final int NEW_TAI_LUE
Script in Unicode 4.1- See Also:
- Constant Field Values
-
TIFINAGH
public static final int TIFINAGH
Script in Unicode 4.1- See Also:
- Constant Field Values
-
OLD_PERSIAN
public static final int OLD_PERSIAN
Script in Unicode 4.1- See Also:
- Constant Field Values
-
BALINESE
public static final int BALINESE
ISO 15924 script code- See Also:
- Constant Field Values
-
BATAK
public static final int BATAK
ISO 15924 script code- See Also:
- Constant Field Values
-
BLISSYMBOLS
public static final int BLISSYMBOLS
ISO 15924 script code- See Also:
- Constant Field Values
-
BRAHMI
public static final int BRAHMI
ISO 15924 script code- See Also:
- Constant Field Values
-
CHAM
public static final int CHAM
ISO 15924 script code- See Also:
- Constant Field Values
-
CIRTH
public static final int CIRTH
ISO 15924 script code- See Also:
- Constant Field Values
-
OLD_CHURCH_SLAVONIC_CYRILLIC
public static final int OLD_CHURCH_SLAVONIC_CYRILLIC
ISO 15924 script code- See Also:
- Constant Field Values
-
DEMOTIC_EGYPTIAN
public static final int DEMOTIC_EGYPTIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
HIERATIC_EGYPTIAN
public static final int HIERATIC_EGYPTIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
EGYPTIAN_HIEROGLYPHS
public static final int EGYPTIAN_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
-
KHUTSURI
public static final int KHUTSURI
ISO 15924 script code- See Also:
- Constant Field Values
-
SIMPLIFIED_HAN
public static final int SIMPLIFIED_HAN
ISO 15924 script code- See Also:
- Constant Field Values
-
TRADITIONAL_HAN
public static final int TRADITIONAL_HAN
ISO 15924 script code- See Also:
- Constant Field Values
-
PAHAWH_HMONG
public static final int PAHAWH_HMONG
ISO 15924 script code- See Also:
- Constant Field Values
-
OLD_HUNGARIAN
public static final int OLD_HUNGARIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
HARAPPAN_INDUS
public static final int HARAPPAN_INDUS
ISO 15924 script code- See Also:
- Constant Field Values
-
JAVANESE
public static final int JAVANESE
ISO 15924 script code- See Also:
- Constant Field Values
-
KAYAH_LI
public static final int KAYAH_LI
ISO 15924 script code- See Also:
- Constant Field Values
-
LATIN_FRAKTUR
public static final int LATIN_FRAKTUR
ISO 15924 script code- See Also:
- Constant Field Values
-
LATIN_GAELIC
public static final int LATIN_GAELIC
ISO 15924 script code- See Also:
- Constant Field Values
-
LEPCHA
public static final int LEPCHA
ISO 15924 script code- See Also:
- Constant Field Values
-
LINEAR_A
public static final int LINEAR_A
ISO 15924 script code- See Also:
- Constant Field Values
-
MANDAIC
public static final int MANDAIC
ISO 15924 script code- See Also:
- Constant Field Values
-
MANDAEAN
public static final int MANDAEAN
ISO 15924 script code- See Also:
- Constant Field Values
-
MAYAN_HIEROGLYPHS
public static final int MAYAN_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
-
MEROITIC_HIEROGLYPHS
public static final int MEROITIC_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
-
MEROITIC
public static final int MEROITIC
ISO 15924 script code- See Also:
- Constant Field Values
-
NKO
public static final int NKO
ISO 15924 script code- See Also:
- Constant Field Values
-
ORKHON
public static final int ORKHON
ISO 15924 script code- See Also:
- Constant Field Values
-
OLD_PERMIC
public static final int OLD_PERMIC
ISO 15924 script code- See Also:
- Constant Field Values
-
PHAGS_PA
public static final int PHAGS_PA
ISO 15924 script code- See Also:
- Constant Field Values
-
PHOENICIAN
public static final int PHOENICIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
MIAO
public static final int MIAO
ISO 15924 script code- See Also:
- Constant Field Values
-
PHONETIC_POLLARD
public static final int PHONETIC_POLLARD
ISO 15924 script code- See Also:
- Constant Field Values
-
RONGORONGO
public static final int RONGORONGO
ISO 15924 script code- See Also:
- Constant Field Values
-
SARATI
public static final int SARATI
ISO 15924 script code- See Also:
- Constant Field Values
-
ESTRANGELO_SYRIAC
public static final int ESTRANGELO_SYRIAC
ISO 15924 script code- See Also:
- Constant Field Values
-
WESTERN_SYRIAC
public static final int WESTERN_SYRIAC
ISO 15924 script code- See Also:
- Constant Field Values
-
EASTERN_SYRIAC
public static final int EASTERN_SYRIAC
ISO 15924 script code- See Also:
- Constant Field Values
-
TENGWAR
public static final int TENGWAR
ISO 15924 script code- See Also:
- Constant Field Values
-
VAI
public static final int VAI
ISO 15924 script code- See Also:
- Constant Field Values
-
VISIBLE_SPEECH
public static final int VISIBLE_SPEECH
ISO 15924 script code- See Also:
- Constant Field Values
-
CUNEIFORM
public static final int CUNEIFORM
ISO 15924 script code- See Also:
- Constant Field Values
-
UNWRITTEN_LANGUAGES
public static final int UNWRITTEN_LANGUAGES
ISO 15924 script code- See Also:
- Constant Field Values
-
UNKNOWN
public static final int UNKNOWN
ISO 15924 script code- See Also:
- Constant Field Values
-
CARIAN
public static final int CARIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
JAPANESE
public static final int JAPANESE
ISO 15924 script code- See Also:
- Constant Field Values
-
LANNA
public static final int LANNA
ISO 15924 script code- See Also:
- Constant Field Values
-
LYCIAN
public static final int LYCIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
LYDIAN
public static final int LYDIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
OL_CHIKI
public static final int OL_CHIKI
ISO 15924 script code- See Also:
- Constant Field Values
-
REJANG
public static final int REJANG
ISO 15924 script code- See Also:
- Constant Field Values
-
SAURASHTRA
public static final int SAURASHTRA
ISO 15924 script code- See Also:
- Constant Field Values
-
SIGN_WRITING
public static final int SIGN_WRITING
ISO 15924 script code for Sutton SignWriting- See Also:
- Constant Field Values
-
SUNDANESE
public static final int SUNDANESE
ISO 15924 script code- See Also:
- Constant Field Values
-
MOON
public static final int MOON
ISO 15924 script code- See Also:
- Constant Field Values
-
MEITEI_MAYEK
public static final int MEITEI_MAYEK
ISO 15924 script code- See Also:
- Constant Field Values
-
IMPERIAL_ARAMAIC
public static final int IMPERIAL_ARAMAIC
ISO 15924 script code- See Also:
- Constant Field Values
-
AVESTAN
public static final int AVESTAN
ISO 15924 script code- See Also:
- Constant Field Values
-
CHAKMA
public static final int CHAKMA
ISO 15924 script code- See Also:
- Constant Field Values
-
KOREAN
public static final int KOREAN
ISO 15924 script code- See Also:
- Constant Field Values
-
KAITHI
public static final int KAITHI
ISO 15924 script code- See Also:
- Constant Field Values
-
MANICHAEAN
public static final int MANICHAEAN
ISO 15924 script code- See Also:
- Constant Field Values
-
INSCRIPTIONAL_PAHLAVI
public static final int INSCRIPTIONAL_PAHLAVI
ISO 15924 script code- See Also:
- Constant Field Values
-
PSALTER_PAHLAVI
public static final int PSALTER_PAHLAVI
ISO 15924 script code- See Also:
- Constant Field Values
-
BOOK_PAHLAVI
public static final int BOOK_PAHLAVI
ISO 15924 script code- See Also:
- Constant Field Values
-
INSCRIPTIONAL_PARTHIAN
public static final int INSCRIPTIONAL_PARTHIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
SAMARITAN
public static final int SAMARITAN
ISO 15924 script code- See Also:
- Constant Field Values
-
TAI_VIET
public static final int TAI_VIET
ISO 15924 script code- See Also:
- Constant Field Values
-
MATHEMATICAL_NOTATION
public static final int MATHEMATICAL_NOTATION
ISO 15924 script code- See Also:
- Constant Field Values
-
SYMBOLS
public static final int SYMBOLS
ISO 15924 script code- See Also:
- Constant Field Values
-
BAMUM
public static final int BAMUM
ISO 15924 script code- See Also:
- Constant Field Values
-
LISU
public static final int LISU
ISO 15924 script code- See Also:
- Constant Field Values
-
NAKHI_GEBA
public static final int NAKHI_GEBA
ISO 15924 script code- See Also:
- Constant Field Values
-
OLD_SOUTH_ARABIAN
public static final int OLD_SOUTH_ARABIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
BASSA_VAH
public static final int BASSA_VAH
ISO 15924 script code- See Also:
- Constant Field Values
-
DUPLOYAN
public static final int DUPLOYAN
ISO 15924 script code- See Also:
- Constant Field Values
-
DUPLOYAN_SHORTAND
@Deprecated public static final int DUPLOYAN_SHORTAND
Deprecated.ICU 54Typo, use DUPLOYAN- See Also:
- Constant Field Values
-
ELBASAN
public static final int ELBASAN
ISO 15924 script code- See Also:
- Constant Field Values
-
GRANTHA
public static final int GRANTHA
ISO 15924 script code- See Also:
- Constant Field Values
-
KPELLE
public static final int KPELLE
ISO 15924 script code- See Also:
- Constant Field Values
-
LOMA
public static final int LOMA
ISO 15924 script code- See Also:
- Constant Field Values
-
MENDE
public static final int MENDE
Mende Kikakui ISO 15924 script code- See Also:
- Constant Field Values
-
MEROITIC_CURSIVE
public static final int MEROITIC_CURSIVE
ISO 15924 script code- See Also:
- Constant Field Values
-
OLD_NORTH_ARABIAN
public static final int OLD_NORTH_ARABIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
NABATAEAN
public static final int NABATAEAN
ISO 15924 script code- See Also:
- Constant Field Values
-
PALMYRENE
public static final int PALMYRENE
ISO 15924 script code- See Also:
- Constant Field Values
-
KHUDAWADI
public static final int KHUDAWADI
ISO 15924 script code- See Also:
- Constant Field Values
-
SINDHI
public static final int SINDHI
ISO 15924 script code- See Also:
- Constant Field Values
-
WARANG_CITI
public static final int WARANG_CITI
ISO 15924 script code- See Also:
- Constant Field Values
-
AFAKA
public static final int AFAKA
ISO 15924 script code- See Also:
- Constant Field Values
-
JURCHEN
public static final int JURCHEN
ISO 15924 script code- See Also:
- Constant Field Values
-
MRO
public static final int MRO
ISO 15924 script code- See Also:
- Constant Field Values
-
NUSHU
public static final int NUSHU
ISO 15924 script code- See Also:
- Constant Field Values
-
SHARADA
public static final int SHARADA
ISO 15924 script code- See Also:
- Constant Field Values
-
SORA_SOMPENG
public static final int SORA_SOMPENG
ISO 15924 script code- See Also:
- Constant Field Values
-
TAKRI
public static final int TAKRI
ISO 15924 script code- See Also:
- Constant Field Values
-
TANGUT
public static final int TANGUT
ISO 15924 script code- See Also:
- Constant Field Values
-
WOLEAI
public static final int WOLEAI
ISO 15924 script code- See Also:
- Constant Field Values
-
ANATOLIAN_HIEROGLYPHS
public static final int ANATOLIAN_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
-
KHOJKI
public static final int KHOJKI
ISO 15924 script code- See Also:
- Constant Field Values
-
TIRHUTA
public static final int TIRHUTA
ISO 15924 script code- See Also:
- Constant Field Values
-
CAUCASIAN_ALBANIAN
public static final int CAUCASIAN_ALBANIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
MAHAJANI
public static final int MAHAJANI
ISO 15924 script code- See Also:
- Constant Field Values
-
AHOM
public static final int AHOM
ISO 15924 script code- See Also:
- Constant Field Values
-
HATRAN
public static final int HATRAN
ISO 15924 script code- See Also:
- Constant Field Values
-
MODI
public static final int MODI
ISO 15924 script code- See Also:
- Constant Field Values
-
MULTANI
public static final int MULTANI
ISO 15924 script code- See Also:
- Constant Field Values
-
PAU_CIN_HAU
public static final int PAU_CIN_HAU
ISO 15924 script code- See Also:
- Constant Field Values
-
SIDDHAM
public static final int SIDDHAM
ISO 15924 script code- See Also:
- Constant Field Values
-
ADLAM
public static final int ADLAM
ISO 15924 script code- See Also:
- Constant Field Values
-
BHAIKSUKI
public static final int BHAIKSUKI
ISO 15924 script code- See Also:
- Constant Field Values
-
MARCHEN
public static final int MARCHEN
ISO 15924 script code- See Also:
- Constant Field Values
-
NEWA
public static final int NEWA
ISO 15924 script code- See Also:
- Constant Field Values
-
OSAGE
public static final int OSAGE
ISO 15924 script code- See Also:
- Constant Field Values
-
HAN_WITH_BOPOMOFO
public static final int HAN_WITH_BOPOMOFO
ISO 15924 script code- See Also:
- Constant Field Values
-
JAMO
public static final int JAMO
ISO 15924 script code- See Also:
- Constant Field Values
-
SYMBOLS_EMOJI
public static final int SYMBOLS_EMOJI
ISO 15924 script code- See Also:
- Constant Field Values
-
MASARAM_GONDI
public static final int MASARAM_GONDI
ISO 15924 script code- See Also:
- Constant Field Values
-
SOYOMBO
public static final int SOYOMBO
ISO 15924 script code- See Also:
- Constant Field Values
-
ZANABAZAR_SQUARE
public static final int ZANABAZAR_SQUARE
ISO 15924 script code- See Also:
- Constant Field Values
-
DOGRA
public static final int DOGRA
ISO 15924 script code- See Also:
- Constant Field Values
-
GUNJALA_GONDI
public static final int GUNJALA_GONDI
- See Also:
- Constant Field Values
-
MAKASAR
public static final int MAKASAR
- See Also:
- Constant Field Values
-
MEDEFAIDRIN
public static final int MEDEFAIDRIN
- See Also:
- Constant Field Values
-
HANIFI_ROHINGYA
public static final int HANIFI_ROHINGYA
- See Also:
- Constant Field Values
-
SOGDIAN
public static final int SOGDIAN
- See Also:
- Constant Field Values
-
OLD_SOGDIAN
public static final int OLD_SOGDIAN
- See Also:
- Constant Field Values
-
ELYMAIC
public static final int ELYMAIC
- See Also:
- Constant Field Values
-
NYIAKENG_PUACHUE_HMONG
public static final int NYIAKENG_PUACHUE_HMONG
- See Also:
- Constant Field Values
-
NANDINAGARI
public static final int NANDINAGARI
- See Also:
- Constant Field Values
-
WANCHO
public static final int WANCHO
- See Also:
- Constant Field Values
-
CHORASMIAN
public static final int CHORASMIAN
- See Also:
- Constant Field Values
-
DIVES_AKURU
public static final int DIVES_AKURU
- See Also:
- Constant Field Values
-
KHITAN_SMALL_SCRIPT
public static final int KHITAN_SMALL_SCRIPT
- See Also:
- Constant Field Values
-
YEZIDI
public static final int YEZIDI
- See Also:
- Constant Field Values
-
CODE_LIMIT
@Deprecated public static final int CODE_LIMIT
Deprecated.ICU 58 The numeric value may change over time, see ICU ticket #12420.One more than the highest normal UScript code. The highest value is available via UCharacter.getIntPropertyMaxValue(UProperty.SCRIPT).- See Also:
- Constant Field Values
-
-
Method Detail
-
getCode
public static final int[] getCode(java.util.Locale locale)
Gets a script codes associated with the given locale or ISO 15924 abbreviation or name. Returns MALAYAM given "Malayam" OR "Mlym". Returns LATIN given "en" OR "en_US"- Parameters:
locale
- Locale- Returns:
- The script codes array. null if the the code cannot be found.
-
getCode
public static final int[] getCode(ULocale locale)
Gets a script codes associated with the given locale or ISO 15924 abbreviation or name. Returns MALAYAM given "Malayam" OR "Mlym". Returns LATIN given "en" OR "en_US"- Parameters:
locale
- ULocale- Returns:
- The script codes array. null if the the code cannot be found.
-
getCode
public static final int[] getCode(java.lang.String nameOrAbbrOrLocale)
Gets the script codes associated with the given locale or ISO 15924 abbreviation or name. Returns MALAYAM given "Malayam" OR "Mlym". Returns LATIN given "en" OR "en_US"Note: To search by short or long script alias only, use
getCodeFromName(String)
instead. That does a fast lookup with no access of the locale data.- Parameters:
nameOrAbbrOrLocale
- name of the script or ISO 15924 code or locale- Returns:
- The script codes array. null if the the code cannot be found.
-
getCodeFromName
public static final int getCodeFromName(java.lang.String nameOrAbbr)
Returns the script code associated with the given Unicode script property alias (name or abbreviation). Short aliases are ISO 15924 script codes. Returns MALAYAM given "Malayam" OR "Mlym".- Parameters:
nameOrAbbr
- name of the script or ISO 15924 code- Returns:
- The script code value, or INVALID_CODE if the code cannot be found.
-
getScript
public static final int getScript(int codepoint)
Gets the script code associated with the given codepoint. Returns UScript.MALAYAM given 0x0D02- Parameters:
codepoint
- UChar32 codepoint- Returns:
- The script code
-
hasScript
public static final boolean hasScript(int c, int sc)
Do the Script_Extensions of code point c contain script sc? If c does not have explicit Script_Extensions, then this tests whether c has the Script property value sc.Some characters are commonly used in multiple scripts. For more information, see UAX #24: http://www.unicode.org/reports/tr24/.
- Parameters:
c
- code pointsc
- script code- Returns:
- true if sc is in Script_Extensions(c)
-
getScriptExtensions
public static final int getScriptExtensions(int c, java.util.BitSet set)
Sets code point c's Script_Extensions as script code integers into the output BitSet.- If c does have Script_Extensions, then the return value is the negative number of Script_Extensions codes (= -set.cardinality()); in this case, the Script property value (normally Common or Inherited) is not included in the set.
- If c does not have Script_Extensions, then the one Script code is put into the set and also returned.
- If c is not a valid code point, then the one
UNKNOWN
code is put into the set and also returned.
Some characters are commonly used in multiple scripts. For more information, see UAX #24: http://www.unicode.org/reports/tr24/.
- Parameters:
c
- code pointset
- set of script code integers; will be cleared, then bits are set corresponding to c's Script_Extensions- Returns:
- negative number of script codes in c's Script_Extensions, or the non-negative single Script value
-
getName
public static final java.lang.String getName(int scriptCode)
Returns the long Unicode script name, if there is one. Otherwise returns the 4-letter ISO 15924 script code. Returns "Malayam" given MALAYALAM.- Parameters:
scriptCode
- int script code- Returns:
- long script name as given in PropertyValueAliases.txt, or the 4-letter code
- Throws:
java.lang.IllegalArgumentException
- if the script code is not valid
-
getShortName
public static final java.lang.String getShortName(int scriptCode)
Returns the 4-letter ISO 15924 script code, which is the same as the short Unicode script name if Unicode has names for the script. Returns "Mlym" given MALAYALAM.- Parameters:
scriptCode
- int script code- Returns:
- short script name (4-letter code)
- Throws:
java.lang.IllegalArgumentException
- if the script code is not valid
-
getSampleString
public static final java.lang.String getSampleString(int script)
Returns the script sample character string. This string normally consists of one code point but might be longer. The string is empty if the script is not encoded.- Parameters:
script
- script code- Returns:
- the sample character string
-
getUsage
public static final UScript.ScriptUsage getUsage(int script)
Returns the script usage according to UAX #31 Unicode Identifier and Pattern Syntax. ReturnsUScript.ScriptUsage.NOT_ENCODED
if the script is not encoded in Unicode.- Parameters:
script
- script code- Returns:
- script usage
- See Also:
UScript.ScriptUsage
-
isRightToLeft
public static final boolean isRightToLeft(int script)
Returns true if the script is written right-to-left. For example, Arab and Hebr.- Parameters:
script
- script code- Returns:
- true if the script is right-to-left
-
breaksBetweenLetters
public static final boolean breaksBetweenLetters(int script)
Returns true if the script allows line breaks between letters (excluding hyphenation). Such a script typically requires dictionary-based line breaking. For example, Hani and Thai.- Parameters:
script
- script code- Returns:
- true if the script allows line breaks between letters
-
isCased
public static final boolean isCased(int script)
Returns true if in modern (or most recent) usage of the script case distinctions are customary. For example, Latn and Cyrl.- Parameters:
script
- script code- Returns:
- true if the script is cased
-
-