Name Date Size

.. 2013-05-16 00:04:22 11

CodePointIM.java 2013-05-16 00:04:22 2.6 KiB

CodePointInputMethod.java 2013-05-16 00:04:22 15.6 KiB

CodePointInputMethodDescriptor.java 2013-05-16 00:04:22 3.4 KiB

java.awt.im.spi.InputMethodDescriptor 2013-05-16 00:04:22 73

README.html 2013-05-16 00:04:22 3.2 KiB

README_ja.html 2013-05-16 00:04:22 4.4 KiB

README_zh_CN.html 2013-05-16 00:04:22 3 KiB

resources 2013-05-16 00:04:22 5

README.html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>README - CodePointIM</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body>
<h1>Code Point Input Method</h1>
<p>
The Code Point Input Method is a simple input method that allows Unicode
characters to be entered using their code point or code unit values.
<p>
The input method accepts three different notations, all using hexadecimal
digits from the set [0-9a-fA-F]:
<br>
<ul>
<li>"\uxxxx": The standard Unicode escape notation of the Java programming
language. This notation allows input of code points up to U+FFFE; the illegal
code point U+FFFF is not allowed.</li>
<li>"\Uxxxxxx": An extended Unicode escape notation specific to this input
method. This notation allows direct input of any Unicode code Point except the
illegal code point U+FFFF. The uppercase "U" indicates that six hexadecimal
digits follow. "xxxxxx" must be between 000000 and 10FFFF.</li>
<li>"\uxxxx\uyyyy": Two consecutive standard Unicode escapes, together
representing a code point between U+10000 and U+10FFFF (a supplementary
character). "xxxx" must be between D800 and DBFF (that is, a high surrogate
value), "yyyy" between DC00 and DFFF (a low surrogate value).</li>
</ul>
In general, the input method passes characters through unchanged. However,
when the user types a "\", the input method enters composition mode. In
composition mode, the user types the desired code point using one of the
notations above, then types a space character to convert to the corresponding
Unicode character and commit. The input method then returns to pass-through
mode until another "\" character is entered.
<p>
While in composition mode, the user can use the left arrow, right arrow,
backspace, and delete keys to edit the sequence. The "\u" or "\U" characters
can only be deleted if they are not followed by hexadecimal digits in the
composition sequence. Deleting the initial "\u" or "\U" returns the input
method to pass-through mode.
<p>
Since the initial "\" character starts composition mode, a user must type two
"\" characters in order to add a single "\" to the text. When an initial "\"
has been entered, but the next character is not "u", "U", or "\", both the "\"
and the subsequent character are committed, and the input method returns to
pass-through mode. Also, typing a new line, or tab character at any time
during composition immediately commits the current composed text.
<p>
Input methods are extensions to the Java Runtime Environment; they cannot be
run as applications. Before you can use an input method, you have to install
it in the JRE, run an application that supports input methods (such as the
JFC demos Notepad and Stylepad), and select the input method. You can learn
more about these steps from the article
"<a href="http://javadesktop.org/articles/InputMethod/index.html">Using Input Methods on the Java Platform</a>"
and more about supplementary character support from the article
"<a href="http://java.sun.com/developer/technicalArticles/Intl/Supplementary/index.html">Supplementary Characters in the Java Platform</a>".
<p>
This input method requires JRE 5.0 or higher.
<br>
</body>
</html>

README_ja.html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>README - CodePointIM</title>
</head>
<body>
<h1>Code Point Input Method</h1>
<p>
Code Point Input Methodは、コードポイントまたはコード単位を使ってUnicode文字を入力するシンプルなインプットメソッドです。
<p>
このインプットメソッドでは、十六進数(0~9、a~f、A~F)を使った3つの入力形式をサポートします。
<br>
<ul>
<li>"\uxxxx":Javaプログラミング言語の標準Unicodeエスケープ表記です。この表記法では、U+0000からU+FFFEまでのコードポイントを入力できます。不正なコードポイントであるU+FFFFは入力できません。</li>
<li>"\Uxxxxxx":このインプットメソッド限定の拡張Unicodeエスケープ表記です。この表記法では、すべての有効なUnicodeコードポイントを直接入力できます。大文字の'U'は、後に6桁の十六進数が続くことを示しています。"xxxxxx"に指定できる値は000000から10FFFFまでで、このうち不正なコードポイントであるU+FFFF(00FFFF)は入力できません。</li>
<li>"\uxxxx\uyyyy":連続する2つの標準Unicodeエスケープ表記です。2つ合わせてU+10000からU+10FFFFまでの範囲のコードポイントを持つ補助文字(supplementary character)を表します。"xxxx"はD800以上DBFF以下(上位サロゲート値)、"yyyy"はDC00以上DFFF以下(下位サロゲート値)の範囲でなければなりません。</li>
</ul>
このインプットメソッドは、通常は入力された文字をそのままアプリケーション・プログラムに渡します(パススルー・モード)。しかし、ユーザが文字'\'をタイプするとコンポジション・モードになり、この状態でユーザは上記の入力形式のいずれかを使って目的のコードポイントを入力し、Spaceキーを押して入力されたコードポイントに相当するUnicode文字に変換・確定することができます。確定によってコンポジション・モードは終了し、その後再び'\'がタイプされるまでインプットメソッドはパススルー・モードで動作します。
<p>
コンポジション・モードでは、ユーザはBackspace、Deleteおよび左右の矢印キーを使って変換テキストを編集することができます。"\u"および"\U"は、変換テキスト中で後続する文字がない場合のみ削除可能です。先頭の"\u"または"\U"を削除すると、インプットメソッドはパススルー・モードに戻ります。
<p>
最初の'\'のタイプによってコンポジション・モードになるため、'\'を確定済みテキストにするためには合計二度タイプする必要があります。'\'の次にタイプされた文字が'u'、'U'、'\'のいずれでもない場合、'\'とその次にタイプされた文字の両方が確定され、インプットメソッドはパススルー・モードに戻ります。また、コンポジション・モード中にTabまたはEnterキーを押すと、インプットメソッドは現在の変換テキストをそのまま確定してパススルー・モードに戻ります。
<p>
インプットメソッドはJava Runtime Environmentの拡張機能であり、アプリケーション・プログラムとして動かすことはできません。インプットメソッドを使用する場合、はじめにインプットメソッドをJREにインストールし、次にインプットメソッドをサポートするアプリケーション・プログラム(例えばJFCデモのNotepadやStylepad)を起動してインプットメソッドを選択してください。これらの手順については"<a href="http://javadesktop.org/articles/InputMethod/index.html">Using Input Methods on the Java Platform</a>"をご参照ください。また、補助文字サポートの概要については"<a href="http://java.sun.com/developer/technicalArticles/Intl/Supplementary/index_ja.html">Javaプラットフォームにおける補助文字のサポート</a>"をご参照ください。
<p>
このインプットメソッドを使用するためには、JRE 5.0以降が必要です。
</body>
</html>

README_zh_CN.html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>自述文件——代码点输入法</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<h1>代码点输入法</h1>
<p>
代码点输入法是一种简单的输入法,使您可以使用 Unicode 字符的代码点或代码单元值来输入 Unicode 字符。
</p>
<p>该输入法接受三种不同的表示法,这三种方法都使用来自字符集 [0-9a-fA-F] 的十六进制数字: <br>
</p>
<ul>
<li>"\uxxxx":Java 编程语言的标准 Unicode 换码表示法。此表示法允许输入不超过 U+FFFE
的代码点;不允许输入非法代码点 U+FFFF。</li>
<li>"\Uxxxxxx":此输入法专用的扩展 Unicode 换码表示法。此表示法允许直接输入任何 Unicode
代码点,但非法代码点 U+FFFF 除外。大写 "U" 表示后跟六个十六进制数字。"xxxxxx" 必须在 000000 和 10FFFF
之间。</li>
<li>"\uxxxx\uyyyy":两个连续的标准 Unicode 换码,共同表示 U+10000 和 U+10FFFF
之间的一个代码点(增补字符)。"xxxx" 必须在 D800 和 DBFF 之间(即高代码值),"yyyy" 必须在 DC00 和 DFFF
之间(低代码值)。</li>
</ul>
一般情况下,输入法仅传递字符而不进行更改。但是,当用户键入 "\"
时,输入法将进入编写模式。在编写模式下,用户使用上述表示法之一键入所需代码点,然后键入空格字符以转换至相应的 Unicode
字符并提交。然后输入法将返回到传递模式,直到用户输入另一个 "\" 字符。
<p>处于编写模式时,用户可以使用左箭头键、右箭头键、Back Space 键和 Delete 键来编辑序列。在编写序列中,只有当 "\u" 或
"\U" 字符后面未跟有十六进制数字时,才可以将 "\u" 或 "\U" 删除。删除初始的 "\u" 或 "\U" 将使输入法返回至传递模式。
</p>
<p>由于初始的 "\" 字符用于启动编写模式,因此为了向文本中添加一个 "\",用户必须键入两个 "\" 字符。如果已输入初始
"\",但下一个字符不是 "u"、"U" 或 "\",则 "\"
和随后一个字符将被提交,并且输入法将返回至传递模式。另外,在编写期间的任何时候键入一个新行或制表符都将立即提交当前编写的文本。
</p>
<p>输入法是 Java 运行环境的扩展;它们不能作为应用程序运行。要使用某个输入法,您必须将其安装在 JRE
中,运行支持输入法的应用程序(例如 JFC 演示版 Notepad 和 Stylepad),并选择该输入法。您可以从“<a
href="http://javadesktop.org/articles/InputMethod/index.html">在 Java
平台上使用输入法</a>”中了解有关这些步骤的更多信息,还可以从“<a
href="http://java.sun.com/developer/technicalArticles/Intl/Supplementary/index.html">Java
平台中的增补字符</a>”中了解有关增补字符支持的更多信息。
</p>
<p>该输入法要求 JRE 5.0 或更高版本。 <br>
</p>
</body>
</html>