| 1 | <HTML> |
| 2 | <HEAD> |
| 3 | <!-- Created with AOLpress/2.0 --> |
| 4 | <!-- AP: Created on: 3-Aug-2002 --> |
| 5 | <!-- AP: Last modified: 16-Apr-2004 --> |
| 6 | <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> |
| 7 | <LINK REL="icon" href="../../_static/fftype16.png"> |
| 8 | <!--<TITLE>X Input Methods</TITLE>--> |
| 9 | <TITLE>X のインプットメソッド</TITLE> |
| 10 | <LINK REL="stylesheet" TYPE="text/css" HREF="FontForge.css"> |
| 11 | </HEAD> |
| 12 | <BODY> |
| 13 | <DIV id="in"> |
| 14 | <P> |
| 15 | <!-- |
| 16 | For entering text in CJK languages, simple keyboard typing is not adequate. |
| 17 | Instead there are programs that run and handle the conversion of keystrokes |
| 18 | to characters these programs are called input methods. --> |
| 19 | CJK 諸言語のテキストの入力には、キーボードによる単純なタイプ入力は適していません。その代わり、キーストロークから文字への変換を扱うプログラムが存在し、それらはインプットメソッドと呼ばれています。 |
| 20 | <P> |
| 21 | <!-- |
| 22 | I have tested FontForge with two freely available input methods (as well |
| 23 | as one can who speaks neither Chinese, Japanese nor Korean) kinput2 (for |
| 24 | Japanese) and <A HREF="http://xcin.linux.org.tw/">xcin</A> (for Chinese). --> |
| 25 | 私は FontForge を無料で入手可能な 2 種類の入力メソッド、kinput2 (日本語) と <A HREF="http://xcin.linux.org.tw/">xcin</a> (中国語) でテストしました (中国語、日本語または中国語を話す人ほど十分ではありませんが) |
| 26 | <P> |
| 27 | <!-- |
| 28 | There is reasonably good (English) documentation on installing and using |
| 29 | kinput2 on the mozilla site, and at |
| 30 | <A HREF="http://www.suse.de/~mfabian/suse-cjk/kinput2.html">suse</A>, kinput2 |
| 31 | has the interesting complexity that it requires yet another server to be |
| 32 | running, generally either cannaserver or jserver. It looks to me as though |
| 33 | it might be possible to use a chinese or korean jserver with kinput2 but |
| 34 | I have not tried this. --> |
| 35 | kinput2 のインストールと使用法に関する比較的よくできた (英語の) 文書が Mozilla のサイトと、<A HREF="http://www.suse.de/~mfabian/suse-cjk/kinput2.html">suse</A> のサイトにあります。kinput2 を実行するには、別のサーバ (一般には cannaserver か jserver) を実行していなければならないという興味深い複雑さがあります。それだけではなく中国語版や韓国語版の jserver を kinput2 で使うことも可能なようですが、それは試していません。 |
| 36 | <P> |
| 37 | <!-- |
| 38 | There is good Chinese and English documentation on xcin at the |
| 39 | <A HREF="http://xcin.linux.org.tw/">xcin site in Taiwan </A>(english is not |
| 40 | the default here, but it is available about 3 lines down). --> |
| 41 | <A HREF="http://xcin.linux.org.tw/">台湾の xcin のサイト</A>には、中国語と英語のよくできた文書があります (英語はデフォルトではありませんが、 3 行ほど下から入手可能です)。 |
| 42 | <P> |
| 43 | <!-- |
| 44 | One of the most difficult problems I had in installing these was finding |
| 45 | the appropriate locales. I could not find them in my RedHat 7.3 distribution, |
| 46 | nor could I find any RedHad rpms containing them. There is a good supply |
| 47 | of Mandrake locale rpms (named <CODE>locales-zh*</CODE> for chinese, |
| 48 | <CODE>locales-jp* </CODE>for japanese, etc.) but Mandrake stores them in |
| 49 | a different directory so after installing them I had to copy them from |
| 50 | <CODE>/usr/share/locales</CODE> to <CODE>/usr/lib/locales</CODE>. The SUSE |
| 51 | docs imply that the current SUSE distribution ships with these locales. --> |
| 52 | これらをインストールする際に最も困難だった問題は、適切なロケールを見つけることです。RedHat 7.3 のディストリビューションからはそれを見つけることができず、それらを含む RedHat の RPM も見つかりませんでした。Mandrake のロケール RPM (中国語では<CODE>locales-zh*</CODE>, 日本語では<CODE>locales-jp*</CODE> というように名前がついています。) が優れた供給元でしたが、Mandrake はそれを違う場所にインストールするので、インストール後に <CODE>/usr/share/locales</CODE> から <CODE>/usr/lib/locales</CODE> に移動しなければなりませんでした。SUSE の文書には、現在の SUSE のディストリビューションにはそれらのロケールが付属しているという意味のことが書かれていました。 |
| 53 | <P> |
| 54 | <!-- |
| 55 | To start fontforge with an input method you must first insure that the input |
| 56 | method itself is running. For kinput2 do the following: --> |
| 57 | FontForge でインプットメソッドを使うようにして起動するには、まずインプットメソッドそのものが走っていることを確かめなければなりません。kinput2 では以下のようにしてください: |
| 58 | <BLOCKQUOTE> |
| 59 | <PRE>$ cannaserver & |
| 60 | $ kinput2 -canna -xim & |
| 61 | </PRE> |
| 62 | </BLOCKQUOTE> |
| 63 | <P> |
| 64 | <!-- |
| 65 | While for xcin: --> |
| 66 | xcin の場合、こうなります: |
| 67 | <BLOCKQUOTE> |
| 68 | <PRE>$ setenv LC_CTYPE zh_TW.Big5 (or $ LC_CTYPE=zh_TW.Big5 ; export LC_CTYPE ) |
| 69 | $ xcin & |
| 70 | </PRE> |
| 71 | </BLOCKQUOTE> |
| 72 | <P> |
| 73 | <!-- |
| 74 | Beware: Different systems will have slightly different locale names (sometimes |
| 75 | it's <CODE>zh_TW.big5</CODE>, or something else) so if things don't work |
| 76 | try something else. --> |
| 77 | 注意: 各種のシステムは、それぞれ微妙に異なるロケール名をもっています (時には <CODE>zh_TW.big5</CODE> ですし、時には別のロケールです) ので、うまく動かない場合は別の設定を試してみてください。 |
| 78 | <P> |
| 79 | <!-- |
| 80 | Once you've started your input method you must then start FontForge. You |
| 81 | should set the LC_CTYPE environment variable (or LC_ALL or LANG) to the |
| 82 | appropriate locale. You may (if you have multiple input methods running that |
| 83 | support the same locale) need to set the XMODIFIERS environment variable |
| 84 | to the name of your method (xcin can have multiple names, it prints out the |
| 85 | one it is currently using on start-up). --> |
| 86 | まずインプットメソッドを起動したなら、次に FontForge を起動しなければなりません。環境変数 LC_CTYPE (または LC_ALL か LANG) を適切なロケールに設定します。おそらく (同じロケールをサポートする複数のインプットメソッドが実行中の場合) 環境変数 XMODIFIERS を使用したいメソッドの名前に設定します。xcin は複数の名前をもつことができ、現在使用している値を起動時に印字します。 |
| 87 | <BLOCKQUOTE> |
| 88 | <PRE>$ setenv LC_CTYPE ja_JP.eucJP |
| 89 | $ setenv XMODIFIERS "@im=kinput2" |
| 90 | $ fontforge -new |
| 91 | </PRE> |
| 92 | </BLOCKQUOTE> |
| 93 | <P> |
| 94 | <!-- |
| 95 | FontForge will start up significantly more slowly when connecting to an IM, |
| 96 | just be patient with it. FontForge supports OverTheSpot input in textfields |
| 97 | and Root input in the font and outline character views. Not all textfields |
| 98 | accept unicode input, but any that do should now accept input from an IM. --> |
| 99 | FontForge は IM に接続していると、明らかに起動が遅くなりますが、我慢してそのままお待ちください。FontForge はテキストフィールドではその場入力 (OverTheSpot) を、フォントビューとアウトライングリフビューでは一行入力 (Root) をサポートしています。すべてのテキストフィールドが Unicode 入力を受け付けるわけではありませんが、Unicode が入力可能なフィールドはすべて、これで IM から入力を受け付けるようになります。 |
| 100 | <P> |
| 101 | <!-- |
| 102 | <FONT COLOR="Red"><SMALL><STRONG>This only works if |
| 103 | <CODE>X_HAVE_UTF8_STRING</CODE> is defined - - an XFree 4.0.2 extension (ie. |
| 104 | not on solaris)</STRONG></SMALL></FONT> --> |
| 105 | <FONT COLOR="Red"><SMALL><STRONG>この機能は、XFree86 4.0.2 で導入された拡張 |
| 106 | <CODE>X_HAVE_UTF8_STRING</CODE> が定義されている環境でしか動きません (つまり、Solaris では動作しません)</STRONG></SMALL></FONT> |
| 107 | <P> |
| 108 | <HR> |
| 109 | <P> |
| 110 | <!-- |
| 111 | If you are interested in the mechanics of XIM programming I refer you to |
| 112 | O'Reilly's excellent |
| 113 | <A HREF="http://capderec.udg.es:81/ebt-bin/nph-dweb/dynaweb/SGI_Developer/XLib_PG/@Generic__BookView">Programmers |
| 114 | Reference Guide for X11</A>, chapter 11. --> |
| 115 | XIM プログラミングの機構に興味をもたれたならば、O'Reilly の秀逸な <A HREF="http://capderec.udg.es:81/ebt-bin/nph-dweb/dynaweb/SGI_Developer/XLib_PG/@Generic__BookView">Programmers Reference Guide for X11</A> の第 11 章をお奨めします。 |
| 116 | <P> |
| 117 | </DIV> |
| 118 | </BODY></HTML> |