Merge from the pain train
[official-gcc.git] / libjava / java / awt / im / InputSubset.java
blob78c2164ffab8031f6c56cc16c4e5173b19b8dc5c
1 /* InputSubset.java -- subsets of Unicode important in text input
2 Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING. If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 02111-1307 USA.
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library. Thus, the terms and
23 conditions of the GNU General Public License cover the whole
24 combination.
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module. An independent module is a module which is not derived from
33 or based on this library. If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so. If you do not wish to do so, delete this
36 exception statement from your version. */
38 package java.awt.im;
40 /**
41 * Defines additional Unicode character blocks for use by input methods.
42 * These constants encompass several Unicode blocks, or portions thereof, for
43 * simplification over {@link Character.UnicodeBlock}.
45 * @author Eric Blake (ebb9@email.byu.edu)
46 * @since 1.2
47 * @status updated to 1.4
49 public final class InputSubset extends Character.Subset
51 /**
52 * Constant for all Latin characters, including the characters in the
53 * BASIC_LATIN, LATIN_1_SUPPLEMENT, LATIN_EXTENDED_A, LATIN_EXTENDED_B
54 * Unicode character blocks.
56 public static final InputSubset LATIN = new InputSubset("LATIN");
58 /**
59 * Constant for the digits included in the BASIC_LATIN Unicode character
60 * block.
62 public static final InputSubset LATIN_DIGITS
63 = new InputSubset("LATIN_DIGITS");
65 /**
66 * Constant for all Han characters used in writing Traditional Chinese,
67 * including a subset of the CJK unified ideographs as well as Traditional
68 * Chinese Han characters that may be defined as surrogate characters.
70 public static final InputSubset TRADITIONAL_HANZI
71 = new InputSubset("TRADITIONAL_HANZI");
73 /**
74 * Constant for all Han characters used in writing Simplified Chinese,
75 * including a subset of the CJK unified ideographs as well as Simplified
76 * Chinese Han characters that may be defined as surrogate characters.
78 public static final InputSubset SIMPLIFIED_HANZI
79 = new InputSubset("SIMPLIFIED_HANZI");
81 /**
82 * Constant for all Han characters used in writing Japanese, including a
83 * subset of the CJK unified ideographs as well as Japanese Han characters
84 * that may be defined as surrogate characters.
86 public static final InputSubset KANJI = new InputSubset("KANJI");
88 /**
89 * Constant for all Han characters used in writing Korean, including a
90 * subset of the CJK unified ideographs as well as Korean Han characters
91 * that may be defined as surrogate characters.
93 public static final InputSubset HANJA = new InputSubset("HANJA");
95 /**
96 * Constant for the halfwidth katakana subset of the Unicode halfwidth and
97 * fullwidth forms character block.
99 public static final InputSubset HALFWIDTH_KATAKANA
100 = new InputSubset("HALFWIDTH_KATAKANA");
103 * Constant for the fullwidth ASCII variants subset of the Unicode
104 * halfwidth and fullwidth forms character block.
106 * @since 1.3
108 public static final InputSubset FULLWIDTH_LATIN
109 = new InputSubset("FULLWIDTH_LATIN");
112 * Constant for the fullwidth digits included in the Unicode halfwidth and
113 * fullwidth forms character block.
115 * @since 1.3
117 public static final InputSubset FULLWIDTH_DIGITS
118 = new InputSubset("FULLWIDTH_DIGITS");
121 * Construct a subset.
123 * @param name the subset name
125 private InputSubset(String name)
127 super(name);
129 } // class InputSubset