Package org.gnome.glib
Enum Class UnicodeScript
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<UnicodeScript>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum UnicodeScript
extends Enum<UnicodeScript>
implements Enumeration
The
GUnicodeScript
enumeration identifies different writing
systems. The values correspond to the names as defined in the
Unicode standard. The enumeration has been added in GLib 2.14,
and is interchangeable with PangoScript
.
Note that new types may be added in the future. Applications should be ready to handle unknown values. See Unicode Standard Annex #24: Script names.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAdlam.Ahom.Anatolian Hieroglyphs.ArabicArmenianAvestan.BalineseBamum.Bassa.Batak.BengaliBhaiksuki.BopomofoBrahmi.BrailleBugineseBuhidCanadian AboriginalCarian.Caucasian Albanian.Chakma.Cham.CherokeeChorasmian.a character used by multiple different scriptsCopticCuneiformCypriotCypro-Minoan.CyrillicDeseretDevanagariDives Akuru.Dogra.Duployan.Egyptian Hieroglpyhs.Elbasan.Elym.EthiopicGeorgianGlagoliticGothicGrantha.GreekGujaratiGunjala Gondi.GurmukhiHanHangulHanifi Rohingya.HanunooHatran.HebrewHiraganaImperial Aramaic.a mark glyph that takes its script from the base glyph to which it is attachedInscriptional Pahlavi.Inscriptional Parthian.a value never returned from g_unichar_get_script()Javanese.Kaithi.KannadaKatakanaKawi.Kayah Li.KharoshthiKhitan small script.KhmerKjohki.Khudawadi, Sindhi.LaoLatinLepcha.LimbuLinear A.Linear BLisu.Lycian.Lydian.Mahajani.Makasar.MalayalamMandaic.Manichaean.Marchen.Masaram Gondi.Mathematical notation.Medefaidrin.Meetei Mayek.Mende Kikakui.Meroitic Cursive.Meroitic Hieroglyphs.Miao.Modi.MongolianMro.Multani.MyanmarNabataean.Nag Mundari.Nand.New Tai LueNewa.N'KoNushu.Rohg.OghamOl Chiki.Old Hungarian.Old ItalicOld North Arabian.Old Permic.Old PersianOld Sogdian.Old South Arabian.Old Turkic.Old Uyghur.OriyaOsage.OsmanyaPahawh Hmong.Palmyrene.Pau Cin Hau.Phags-paPhoenicianPsalter Pahlavi.Rejang.RunicSamaritan.Saurashtra.Sharada.ShavianSiddham.Signwriting.SinhalaSogdian.Sora Sompeng.Soyombo.Sundanese.Syloti NagriSyriacTagalogTagbanwaTai LeTai Tham.Tai Viet.Takri.TamilTangsa.Tangut.TeluguThaanaThaiTibetanTifinaghTirhuta.Toto.Ugaritican unassigned code pointVai.Vithkuqi.Wcho.Warang Citi.Yezidi.YiZanabazar Square. -
Method Summary
Modifier and TypeMethodDescriptionstatic UnicodeScript
fromIso15924
(int iso15924) Looks up the Unicode script foriso15924
.static Type
getType()
Get the GType of the UnicodeScript classint
getValue()
Get the numeric value of this enumstatic UnicodeScript
of
(int value) Create a new UnicodeScript for the provided valueint
Looks up the ISO 15924 code for this UnicodeScript.static UnicodeScript
Returns the enum constant of this class with the specified name.static UnicodeScript[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID_CODE
a value never returned from g_unichar_get_script() -
COMMON
a character used by multiple different scripts -
INHERITED
a mark glyph that takes its script from the base glyph to which it is attached -
ARABIC
Arabic -
ARMENIAN
Armenian -
BENGALI
Bengali -
BOPOMOFO
Bopomofo -
CHEROKEE
Cherokee -
COPTIC
Coptic -
CYRILLIC
Cyrillic -
DESERET
Deseret -
DEVANAGARI
Devanagari -
ETHIOPIC
Ethiopic -
GEORGIAN
Georgian -
GOTHIC
Gothic -
GREEK
Greek -
GUJARATI
Gujarati -
GURMUKHI
Gurmukhi -
HAN
Han -
HANGUL
Hangul -
HEBREW
Hebrew -
HIRAGANA
Hiragana -
KANNADA
Kannada -
KATAKANA
Katakana -
KHMER
Khmer -
LAO
Lao -
LATIN
Latin -
MALAYALAM
Malayalam -
MONGOLIAN
Mongolian -
MYANMAR
Myanmar -
OGHAM
Ogham -
OLD_ITALIC
Old Italic -
ORIYA
Oriya -
RUNIC
Runic -
SINHALA
Sinhala -
SYRIAC
Syriac -
TAMIL
Tamil -
TELUGU
Telugu -
THAANA
Thaana -
THAI
Thai -
TIBETAN
Tibetan -
CANADIAN_ABORIGINAL
Canadian Aboriginal -
YI
Yi -
TAGALOG
Tagalog -
HANUNOO
Hanunoo -
BUHID
Buhid -
TAGBANWA
Tagbanwa -
BRAILLE
Braille -
CYPRIOT
Cypriot -
LIMBU
Limbu -
OSMANYA
Osmanya -
SHAVIAN
Shavian -
LINEAR_B
Linear B -
TAI_LE
Tai Le -
UGARITIC
Ugaritic -
NEW_TAI_LUE
New Tai Lue -
BUGINESE
Buginese -
GLAGOLITIC
Glagolitic -
TIFINAGH
Tifinagh -
SYLOTI_NAGRI
Syloti Nagri -
OLD_PERSIAN
Old Persian -
KHAROSHTHI
Kharoshthi -
UNKNOWN
an unassigned code point -
BALINESE
Balinese -
CUNEIFORM
Cuneiform -
PHOENICIAN
Phoenician -
PHAGS_PA
Phags-pa -
NKO
N'Ko -
KAYAH_LI
Kayah Li. Since 2.16.3 -
LEPCHA
Lepcha. Since 2.16.3 -
REJANG
Rejang. Since 2.16.3 -
SUNDANESE
Sundanese. Since 2.16.3 -
SAURASHTRA
Saurashtra. Since 2.16.3 -
CHAM
Cham. Since 2.16.3 -
OL_CHIKI
Ol Chiki. Since 2.16.3 -
VAI
Vai. Since 2.16.3 -
CARIAN
Carian. Since 2.16.3 -
LYCIAN
Lycian. Since 2.16.3 -
LYDIAN
Lydian. Since 2.16.3 -
AVESTAN
Avestan. Since 2.26 -
BAMUM
Bamum. Since 2.26 -
EGYPTIAN_HIEROGLYPHS
Egyptian Hieroglpyhs. Since 2.26 -
IMPERIAL_ARAMAIC
Imperial Aramaic. Since 2.26 -
INSCRIPTIONAL_PAHLAVI
Inscriptional Pahlavi. Since 2.26 -
INSCRIPTIONAL_PARTHIAN
Inscriptional Parthian. Since 2.26 -
JAVANESE
Javanese. Since 2.26 -
KAITHI
Kaithi. Since 2.26 -
LISU
Lisu. Since 2.26 -
MEETEI_MAYEK
Meetei Mayek. Since 2.26 -
OLD_SOUTH_ARABIAN
Old South Arabian. Since 2.26 -
OLD_TURKIC
Old Turkic. Since 2.28 -
SAMARITAN
Samaritan. Since 2.26 -
TAI_THAM
Tai Tham. Since 2.26 -
TAI_VIET
Tai Viet. Since 2.26 -
BATAK
Batak. Since 2.28 -
BRAHMI
Brahmi. Since 2.28 -
MANDAIC
Mandaic. Since 2.28 -
CHAKMA
Chakma. Since: 2.32 -
MEROITIC_CURSIVE
Meroitic Cursive. Since: 2.32 -
MEROITIC_HIEROGLYPHS
Meroitic Hieroglyphs. Since: 2.32 -
MIAO
Miao. Since: 2.32 -
SHARADA
Sharada. Since: 2.32 -
SORA_SOMPENG
Sora Sompeng. Since: 2.32 -
TAKRI
Takri. Since: 2.32 -
BASSA_VAH
Bassa. Since: 2.42 -
CAUCASIAN_ALBANIAN
Caucasian Albanian. Since: 2.42 -
DUPLOYAN
Duployan. Since: 2.42 -
ELBASAN
Elbasan. Since: 2.42 -
GRANTHA
Grantha. Since: 2.42 -
KHOJKI
Kjohki. Since: 2.42 -
KHUDAWADI
Khudawadi, Sindhi. Since: 2.42 -
LINEAR_A
Linear A. Since: 2.42 -
MAHAJANI
Mahajani. Since: 2.42 -
MANICHAEAN
Manichaean. Since: 2.42 -
MENDE_KIKAKUI
Mende Kikakui. Since: 2.42 -
MODI
Modi. Since: 2.42 -
MRO
Mro. Since: 2.42 -
NABATAEAN
Nabataean. Since: 2.42 -
OLD_NORTH_ARABIAN
Old North Arabian. Since: 2.42 -
OLD_PERMIC
Old Permic. Since: 2.42 -
PAHAWH_HMONG
Pahawh Hmong. Since: 2.42 -
PALMYRENE
Palmyrene. Since: 2.42 -
PAU_CIN_HAU
Pau Cin Hau. Since: 2.42 -
PSALTER_PAHLAVI
Psalter Pahlavi. Since: 2.42 -
SIDDHAM
Siddham. Since: 2.42 -
TIRHUTA
Tirhuta. Since: 2.42 -
WARANG_CITI
Warang Citi. Since: 2.42 -
AHOM
Ahom. Since: 2.48 -
ANATOLIAN_HIEROGLYPHS
Anatolian Hieroglyphs. Since: 2.48 -
HATRAN
Hatran. Since: 2.48 -
MULTANI
Multani. Since: 2.48 -
OLD_HUNGARIAN
Old Hungarian. Since: 2.48 -
SIGNWRITING
Signwriting. Since: 2.48 -
ADLAM
Adlam. Since: 2.50 -
BHAIKSUKI
Bhaiksuki. Since: 2.50 -
MARCHEN
Marchen. Since: 2.50 -
NEWA
Newa. Since: 2.50 -
OSAGE
Osage. Since: 2.50 -
TANGUT
Tangut. Since: 2.50 -
MASARAM_GONDI
Masaram Gondi. Since: 2.54 -
NUSHU
Nushu. Since: 2.54 -
SOYOMBO
Soyombo. Since: 2.54 -
ZANABAZAR_SQUARE
Zanabazar Square. Since: 2.54 -
DOGRA
Dogra. Since: 2.58 -
GUNJALA_GONDI
Gunjala Gondi. Since: 2.58 -
HANIFI_ROHINGYA
Hanifi Rohingya. Since: 2.58 -
MAKASAR
Makasar. Since: 2.58 -
MEDEFAIDRIN
Medefaidrin. Since: 2.58 -
OLD_SOGDIAN
Old Sogdian. Since: 2.58 -
SOGDIAN
Sogdian. Since: 2.58 -
ELYMAIC
Elym. Since: 2.62 -
NANDINAGARI
Nand. Since: 2.62 -
NYIAKENG_PUACHUE_HMONG
Rohg. Since: 2.62 -
WANCHO
Wcho. Since: 2.62 -
CHORASMIAN
Chorasmian. Since: 2.66 -
DIVES_AKURU
Dives Akuru. Since: 2.66 -
KHITAN_SMALL_SCRIPT
Khitan small script. Since: 2.66 -
YEZIDI
Yezidi. Since: 2.66 -
CYPRO_MINOAN
Cypro-Minoan. Since: 2.72 -
OLD_UYGHUR
Old Uyghur. Since: 2.72 -
TANGSA
Tangsa. Since: 2.72 -
TOTO
Toto. Since: 2.72 -
VITHKUQI
Vithkuqi. Since: 2.72 -
MATH
Mathematical notation. Since: 2.72 -
KAWI
Kawi. Since 2.74 -
NAG_MUNDARI
Nag Mundari. Since 2.74
-
-
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
-
of
Create a new UnicodeScript for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-
fromIso15924
Looks up the Unicode script foriso15924
. ISO 15924 assigns four-letter codes to scripts. For example, the code for Arabic is 'Arab'. This function accepts four letter codes encoded as aguint32
in a big-endian fashion. That is, the code expected for Arabic is 0x41726162 (0x41 is ASCII code for 'A', 0x72 is ASCII code for 'r', etc).See Codes for the representation of names of scripts for details.
- Parameters:
iso15924
- a Unicode script- Returns:
- the Unicode script for
iso15924
, or ofINVALID_CODE
ifiso15924
is zero andUNKNOWN
ifiso15924
is unknown.
-
toIso15924
public int toIso15924()Looks up the ISO 15924 code for this UnicodeScript. ISO 15924 assigns four-letter codes to scripts. For example, the code for Arabic is 'Arab'. The four letter codes are encoded as aguint32
by this function in a big-endian fashion. That is, the code returned for Arabic is 0x41726162 (0x41 is ASCII code for 'A', 0x72 is ASCII code for 'r', etc).See Codes for the representation of names of scripts for details.
- Returns:
- the ISO 15924 code for this UnicodeScript, encoded as an integer,
of zero if this UnicodeScript is
INVALID_CODE
or ISO 15924 code 'Zzzz' (script code for UNKNOWN) if this UnicodeScript is not understood.
-