com.ibm.icu.lang
Class UScript

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

public final class UScript
extends 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 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 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
          Deprecated. This is a draft API and might change in a future release of ICU.
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 OGHAM
          Ogham
static int OLD_ITALIC
          Old Itallic
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 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 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(Locale locale)
          Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.
static int[] getCode(String nameOrAbbrOrLocale)
          Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.
static int[] getCode(ULocale locale)
          Deprecated. This is a draft API and might change in a future release of ICU.
static int getCodeFromName(String nameOrAbbr)
          Gets a script codes associated with the given ISO 15924 abbreviation or name.
static 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 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
Deprecated. This is a draft API and might change in a future release of ICU.

New script code in Unicode 4.0.1

See Also:
Constant Field Values
Status:
Draft ICU 3.0.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

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(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)
Deprecated. This is a draft API and might change in a future release of ICU.

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.
Status:
Deprecated in This is a draft API and might change in a future release of ICU..

getCode

public static final int[] getCode(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(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 Internal Only and can change at any time.

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 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 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) 2004 IBM Corporation and others.