1. /*
  2. * @(#)InputSubset.java 1.8 00/02/02
  3. *
  4. * Copyright 1998-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.awt.im;
  11. /**
  12. * Defines additional Unicode subsets for use by input methods. Unlike the
  13. * UnicodeBlock subsets defined in the <code>{@link
  14. * java.lang.Character.UnicodeBlock}</code> class, these constants do not
  15. * directly correspond to Unicode code blocks.
  16. *
  17. * @version 1.8, 02/02/00
  18. * @since 1.2
  19. */
  20. public final class InputSubset extends Character.Subset {
  21. private InputSubset(String name) {
  22. super(name);
  23. }
  24. /**
  25. * Constant for all Latin characters, including the characters
  26. * in the BASIC_LATIN, LATIN_1_SUPPLEMENT, LATIN_EXTENDED_A,
  27. * LATIN_EXTENDED_B Unicode character blocks.
  28. */
  29. public static final InputSubset LATIN
  30. = new InputSubset("LATIN");
  31. /**
  32. * Constant for the digits included in the BASIC_LATIN Unicode character
  33. * block.
  34. */
  35. public static final InputSubset LATIN_DIGITS
  36. = new InputSubset("LATIN_DIGITS");
  37. /**
  38. * Constant for all Han characters used in writing Traditional Chinese,
  39. * including a subset of the CJK unified ideographs as well as Traditional
  40. * Chinese Han characters that may be defined as surrogate characters.
  41. */
  42. public static final InputSubset TRADITIONAL_HANZI
  43. = new InputSubset("TRADITIONAL_HANZI");
  44. /**
  45. * Constant for all Han characters used in writing Simplified Chinese,
  46. * including a subset of the CJK unified ideographs as well as Simplified
  47. * Chinese Han characters that may be defined as surrogate characters.
  48. */
  49. public static final InputSubset SIMPLIFIED_HANZI
  50. = new InputSubset("SIMPLIFIED_HANZI");
  51. /**
  52. * Constant for all Han characters used in writing Japanese, including a
  53. * subset of the CJK unified ideographs as well as Japanese Han characters
  54. * that may be defined as surrogate characters.
  55. */
  56. public static final InputSubset KANJI
  57. = new InputSubset("KANJI");
  58. /**
  59. * Constant for all Han characters used in writing Korean, including a
  60. * subset of the CJK unified ideographs as well as Korean Han characters
  61. * that may be defined as surrogate characters.
  62. */
  63. public static final InputSubset HANJA
  64. = new InputSubset("HANJA");
  65. /**
  66. * Constant for the halfwidth katakana subset of the Unicode halfwidth and
  67. * fullwidth forms character block.
  68. */
  69. public static final InputSubset HALFWIDTH_KATAKANA
  70. = new InputSubset("HALFWIDTH_KATAKANA");
  71. /**
  72. * Constant for the fullwidth ASCII variants subset of the Unicode halfwidth and
  73. * fullwidth forms character block.
  74. * @since 1.3
  75. */
  76. public static final InputSubset FULLWIDTH_LATIN
  77. = new InputSubset("FULLWIDTH_LATIN");
  78. /**
  79. * Constant for the fullwidth digits included in the Unicode halfwidth and
  80. * fullwidth forms character block.
  81. * @since 1.3
  82. */
  83. public static final InputSubset FULLWIDTH_DIGITS
  84. = new InputSubset("FULLWIDTH_DIGITS");
  85. }