1 | /* InputSubset.java -- subsets of Unicode important in text input
|
---|
2 | Copyright (C) 2002 Free Software Foundation, Inc.
|
---|
3 |
|
---|
4 | This file is part of GNU Classpath.
|
---|
5 |
|
---|
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.
|
---|
10 |
|
---|
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.
|
---|
15 |
|
---|
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.
|
---|
20 |
|
---|
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.
|
---|
25 |
|
---|
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. */
|
---|
37 |
|
---|
38 | package java.awt.im;
|
---|
39 |
|
---|
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}.
|
---|
44 | *
|
---|
45 | * @author Eric Blake <ebb9@email.byu.edu>
|
---|
46 | * @since 1.2
|
---|
47 | * @status updated to 1.4
|
---|
48 | */
|
---|
49 | public final class InputSubset extends java.lang.Character.Subset
|
---|
50 | { // XXX - FIXME Use fully qualified extends as gcj 3.1 workaround.
|
---|
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.
|
---|
55 | */
|
---|
56 | public static final InputSubset LATIN = new InputSubset("LATIN");
|
---|
57 |
|
---|
58 | /**
|
---|
59 | * Constant for the digits included in the BASIC_LATIN Unicode character
|
---|
60 | * block.
|
---|
61 | */
|
---|
62 | public static final InputSubset LATIN_DIGITS
|
---|
63 | = new InputSubset("LATIN_DIGITS");
|
---|
64 |
|
---|
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.
|
---|
69 | */
|
---|
70 | public static final InputSubset TRADITIONAL_HANZI
|
---|
71 | = new InputSubset("TRADITIONAL_HANZI");
|
---|
72 |
|
---|
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.
|
---|
77 | */
|
---|
78 | public static final InputSubset SIMPLIFIED_HANZI
|
---|
79 | = new InputSubset("SIMPLIFIED_HANZI");
|
---|
80 |
|
---|
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.
|
---|
85 | */
|
---|
86 | public static final InputSubset KANJI = new InputSubset("KANJI");
|
---|
87 |
|
---|
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.
|
---|
92 | */
|
---|
93 | public static final InputSubset HANJA = new InputSubset("HANJA");
|
---|
94 |
|
---|
95 | /**
|
---|
96 | * Constant for the halfwidth katakana subset of the Unicode halfwidth and
|
---|
97 | * fullwidth forms character block.
|
---|
98 | */
|
---|
99 | public static final InputSubset HALFWIDTH_KATAKANA
|
---|
100 | = new InputSubset("HALFWIDTH_KATAKANA");
|
---|
101 |
|
---|
102 | /**
|
---|
103 | * Constant for the fullwidth ASCII variants subset of the Unicode
|
---|
104 | * halfwidth and fullwidth forms character block.
|
---|
105 | *
|
---|
106 | * @since 1.3
|
---|
107 | */
|
---|
108 | public static final InputSubset FULLWIDTH_LATIN
|
---|
109 | = new InputSubset("FULLWIDTH_LATIN");
|
---|
110 |
|
---|
111 | /**
|
---|
112 | * Constant for the fullwidth digits included in the Unicode halfwidth and
|
---|
113 | * fullwidth forms character block.
|
---|
114 | *
|
---|
115 | * @since 1.3
|
---|
116 | */
|
---|
117 | public static final InputSubset FULLWIDTH_DIGITS
|
---|
118 | = new InputSubset("FULLWIDTH_DIGITS");
|
---|
119 |
|
---|
120 | /**
|
---|
121 | * Construct a subset.
|
---|
122 | *
|
---|
123 | * @param name the subset name
|
---|
124 | */
|
---|
125 | private InputSubset(String name)
|
---|
126 | {
|
---|
127 | super(name);
|
---|
128 | }
|
---|
129 | } // class InputSubset
|
---|