com.ibm.icu.lang
Class UScript

java.lang.Object
  extended bycom.ibm.icu.lang.UScript

public final class UScript
extends java.lang.Object

A class to reflect UTR #24: Script Names (based on ISO 15924:2000, "Code for the representation of names of scripts"). UTR #24 describes the basis for a new Unicode data file, Scripts.txt.

Status:
Stable ICU 2.4.

Field Summary
static int ARABIC
          Arabic
static int ARMENIAN
          Armenian
static int BENGALI
          Bengali
static int BOPOMOFO
          Bopomofo
static int BRAILLE
          Braille New script in Unicode 4
static int BUGINESE
          New script code in Unicode 4.1
static int BUHID
          Buhid
static int CANADIAN_ABORIGINAL
          Unified Canadian Aboriginal Symbols
static int CHEROKEE
          Cherokee
static int CODE_LIMIT
          Limit
static int COMMON
          Common
static int COPTIC
          Coptic
static int CYPRIOT
          Cypriot New script in Unicode 4
static int CYRILLIC
          Cyrillic
static int DESERET
          Deseret
static int DEVANAGARI
          Devanagari
static int ETHIOPIC
          Ethiopic
static int GEORGIAN
          Georgian
static int GLAGOLITIC
          New script code in Unicode 4.1
static int GOTHIC
          Gothic
static int GREEK
          Greek
static int GUJARATI
          Gujarati
static int GURMUKHI
          Gurmukhi
static int HAN
          Han
static int HANGUL
          Hangul
static int HANUNOO
          Hanunooo
static int HEBREW
          Hebrew
static int HIRAGANA
          Hiragana
static int INHERITED
          Inherited
static int INVALID_CODE
          Invalid code
static int KANNADA
          Kannada
static int KATAKANA
          Katakana
static int KATAKANA_OR_HIRAGANA
          New script code in Unicode 4.0.1
static int KHAROSHTHI
          New script code in Unicode 4.1
static int KHMER
          Khmer
static int LAO
          Lao
static int LATIN
          Latin
static int LIMBU
          Limbu New script in Unicode 4
static int LINEAR_B
          Linear B New script in Unicode 4
static int MALAYALAM
          Malayalam
static int MONGOLIAN
          Mangolian
static int MYANMAR
          Myammar
static int NEW_TAI_LUE
          New script code in Unicode 4.1
static int OGHAM
          Ogham
static int OLD_ITALIC
          Old Itallic
static int OLD_PERSIAN
          New script code in Unicode 4.1
static int ORIYA
          Oriya
static int OSMANYA
          Osmanya New script in Unicode 4
static int RUNIC
          Runic
static int SHAVIAN
          Shavian New script in Unicode 4
static int SINHALA
          Sinhala
static int SYLOTI_NAGRI
          New script code in Unicode 4.1
static int SYRIAC
          Syriac
static int TAGALOG
          Tagalog
static int TAGBANWA
          Tagbanwa
static int TAI_LE
          Tai Le New script in Unicode 4
static int TAMIL
          Tamil
static int TELUGU
          Telugu
static int THAANA
          Thana
static int THAI
          Thai
static int TIBETAN
          Tibetan
static int TIFINAGH
          New script code in Unicode 4.1
static int UCAS
          Unified Canadian Aboriginal Symbols (alias)
static int UGARITIC
          Ugaritic New script in Unicode 4
static int YI
          Yi syllables
 
Method Summary
static int[] getCode(java.util.Locale locale)
          Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.
static int[] getCode(java.lang.String nameOrAbbrOrLocale)
          Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.
static int[] getCode(ULocale locale)
          Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.
static int getCodeFromName(java.lang.String nameOrAbbr)
          Gets a script codes associated with the given ISO 15924 abbreviation or name.
static java.lang.String getName(int scriptCode)
          Gets a script name associated with the given script code.
static int getScript(int codepoint)
          Gets the script code associated with the given codepoint.
static java.lang.String getShortName(int scriptCode)
          Gets a script name associated with the given script code.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INVALID_CODE

public static final int INVALID_CODE
Invalid code

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

COMMON

public static final int COMMON
Common

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

INHERITED

public static final int INHERITED
Inherited

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

ARABIC

public static final int ARABIC
Arabic

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

ARMENIAN

public static final int ARMENIAN
Armenian

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

BENGALI

public static final int BENGALI
Bengali

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

BOPOMOFO

public static final int BOPOMOFO
Bopomofo

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

CHEROKEE

public static final int CHEROKEE
Cherokee

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

COPTIC

public static final int COPTIC
Coptic

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

CYRILLIC

public static final int CYRILLIC
Cyrillic

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

DESERET

public static final int DESERET
Deseret

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

DEVANAGARI

public static final int DEVANAGARI
Devanagari

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

ETHIOPIC

public static final int ETHIOPIC
Ethiopic

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

GEORGIAN

public static final int GEORGIAN
Georgian

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

GOTHIC

public static final int GOTHIC
Gothic

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

GREEK

public static final int GREEK
Greek

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

GUJARATI

public static final int GUJARATI
Gujarati

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

GURMUKHI

public static final int GURMUKHI
Gurmukhi

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

HAN

public static final int HAN
Han

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

HANGUL

public static final int HANGUL
Hangul

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

HEBREW

public static final int HEBREW
Hebrew

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

HIRAGANA

public static final int HIRAGANA
Hiragana

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

KANNADA

public static final int KANNADA
Kannada

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

KATAKANA

public static final int KATAKANA
Katakana

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

KHMER

public static final int KHMER
Khmer

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

LAO

public static final int LAO
Lao

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

LATIN

public static final int LATIN
Latin

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

MALAYALAM

public static final int MALAYALAM
Malayalam

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

MONGOLIAN

public static final int MONGOLIAN
Mangolian

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

MYANMAR

public static final int MYANMAR
Myammar

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

OGHAM

public static final int OGHAM
Ogham

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

OLD_ITALIC

public static final int OLD_ITALIC
Old Itallic

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

ORIYA

public static final int ORIYA
Oriya

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

RUNIC

public static final int RUNIC
Runic

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

SINHALA

public static final int SINHALA
Sinhala

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

SYRIAC

public static final int SYRIAC
Syriac

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

TAMIL

public static final int TAMIL
Tamil

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

TELUGU

public static final int TELUGU
Telugu

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

THAANA

public static final int THAANA
Thana

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

THAI

public static final int THAI
Thai

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

TIBETAN

public static final int TIBETAN
Tibetan

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

CANADIAN_ABORIGINAL

public static final int CANADIAN_ABORIGINAL
Unified Canadian Aboriginal Symbols

See Also:
Constant Field Values
Status:
Stable ICU 2.6.

UCAS

public static final int UCAS
Unified Canadian Aboriginal Symbols (alias)

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

YI

public static final int YI
Yi syllables

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

TAGALOG

public static final int TAGALOG
Tagalog

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

HANUNOO

public static final int HANUNOO
Hanunooo

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

BUHID

public static final int BUHID
Buhid

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

TAGBANWA

public static final int TAGBANWA
Tagbanwa

See Also:
Constant Field Values
Status:
Stable ICU 2.4.

BRAILLE

public static final int BRAILLE
Braille New script in Unicode 4

See Also:
Constant Field Values
Status:
Stable ICU 2.6.

CYPRIOT

public static final int CYPRIOT
Cypriot New script in Unicode 4

See Also:
Constant Field Values
Status:
Stable ICU 2.6.

LIMBU

public static final int LIMBU
Limbu New script in Unicode 4

See Also:
Constant Field Values
Status:
Stable ICU 2.6.

LINEAR_B

public static final int LINEAR_B
Linear B New script in Unicode 4

See Also:
Constant Field Values
Status:
Stable ICU 2.6.

OSMANYA

public static final int OSMANYA
Osmanya New script in Unicode 4

See Also:
Constant Field Values
Status:
Stable ICU 2.6.

SHAVIAN

public static final int SHAVIAN
Shavian New script in Unicode 4

See Also:
Constant Field Values
Status:
Stable ICU 2.6.

TAI_LE

public static final int TAI_LE
Tai Le New script in Unicode 4

See Also:
Constant Field Values
Status:
Stable ICU 2.6.

UGARITIC

public static final int UGARITIC
Ugaritic New script in Unicode 4

See Also:
Constant Field Values
Status:
Stable ICU 2.6.

KATAKANA_OR_HIRAGANA

public static final int KATAKANA_OR_HIRAGANA
New script code in Unicode 4.0.1

See Also:
Constant Field Values
Status:
Draft ICU 3.0.

BUGINESE

public static final int BUGINESE
New script code in Unicode 4.1

See Also:
Constant Field Values
Status:
Draft ICU 3.4.

GLAGOLITIC

public static final int GLAGOLITIC
New script code in Unicode 4.1

See Also:
Constant Field Values
Status:
Draft ICU 3.4.

KHAROSHTHI

public static final int KHAROSHTHI
New script code in Unicode 4.1

See Also:
Constant Field Values
Status:
Draft ICU 3.4.

SYLOTI_NAGRI

public static final int SYLOTI_NAGRI
New script code in Unicode 4.1

See Also:
Constant Field Values
Status:
Draft ICU 3.4.

NEW_TAI_LUE

public static final int NEW_TAI_LUE
New script code in Unicode 4.1

See Also:
Constant Field Values
Status:
Draft ICU 3.4.

TIFINAGH

public static final int TIFINAGH
New script code in Unicode 4.1

See Also:
Constant Field Values
Status:
Draft ICU 3.4.

OLD_PERSIAN

public static final int OLD_PERSIAN
New script code in Unicode 4.1

See Also:
Constant Field Values
Status:
Draft ICU 3.4.

CODE_LIMIT

public static final int CODE_LIMIT
Limit

See Also:
Constant Field Values
Status:
Stable ICU 2.4.
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.
Status:
Stable ICU 2.4.

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.
Status:
Draft ICU 3.0.

getCode

public static final int[] getCode(java.lang.String nameOrAbbrOrLocale)
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"

Note: To search by short or long script alias only, use UCharacater.getPropertyValueEnum(UProperty.SCRIPT, alias) instead. This 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.
Status:
Stable ICU 2.4.

getCodeFromName

public static final int getCodeFromName(java.lang.String nameOrAbbr)
Gets a script codes associated with the given ISO 15924 abbreviation or name. 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.
Status:
Internal. This API is ICU internal only.

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
Status:
Stable ICU 2.4.

getName

public static final java.lang.String getName(int scriptCode)
Gets a script name associated with the given script code. Returns "Malayam" given MALAYAM

Parameters:
scriptCode - int script code
Returns:
script name as a string in full as given in TR#24
Status:
Stable ICU 2.4.

getShortName

public static final java.lang.String getShortName(int scriptCode)
Gets a script name associated with the given script code. Returns "Mlym" given MALAYAM

Parameters:
scriptCode - int script code
Returns:
script abbreviated name as a string as given in TR#24
Status:
Stable ICU 2.4.


Copyright (c) 2006 IBM Corporation and others.