uim-anthyのインストール
続いて、日本語入力システム「uim」、およびかな漢字変換エンジン「anthy」をインストールする。まずは、uimディレクトリに移動する。
# cd /usr/pkgsrc/inputmethod/uim
ここで「bmake show-options」コマンドを実行すれば、uimに現在設定されているオプションが確認できる。
# bmake show-options Any of the following general options may be selected: ←利用可能なオプション anthy Use Anthy as Japanese conversion program. canna Use Canna as Japanese conversion program. eb Enable EB dictionary library support. gnome Enable GNOME support. gtk Enable support for GTK. kde Enable KDE support. m17nlib Enable the m17n library support. prime Use Prime for Kana-to-Kanji conversion. qt Enable support for QT. uim-fep Enable UIM FEP support. xim Enable X Input Method support. These options are enabled by default: ←デフォルトで有効なオプション anthy canna gtk uim-fep xim These options are currently enabled: anthy canna gtk uim-fep xim You can select which build options to use by setting PKG_DEFAULT_OPTIONS or PKG_OPTIONS.uim.
結果を見るとわかるように、オプションとして「anthy」が有効になっているため、デフォルトの設定ままインストールすればよい。
# bmake install clean
これでuimとanthyが一緒にインストールされる。
mltermのインストール
最後は、多言語対応ターミナルエミュレータ、mltermのインストールだ。「bmake show-options」でオプションを確認してみると「uim」が有効になっていない。
# cd /usr/pkgsrc/x11/mlterm/ # bmake show-options Any of the following general options may be selected: uim Enable UIM support. xft2 Enable Xft support. These options are enabled by default: ←デフォルトで有効なオプションは無し These options are currently enabled: You can select which build options to use by setting PKG_DEFAULT_OPTIONS or PKG_OPTIONS.mlterm.
|
| 図2:mltermの設定(エンコーディング) |
そこで「/usr/pkg/etc/mk.conf」に次の設定行を加える。
PKG_OPTIONS.mlterm = uim
後はこれまでと同じく、次のようにしてインストールを行えばよい。
# cd /usr/pkgsrc/x11/mlterm/ # bmake install cleam
mltermの設定は、「Ctrl + 右クリック」で表示されるダイアログボックスで行うのが手軽だ(図2)。今回の環境で日本語入力を行うには、少なくとも、「エンコーディング」パネルで「入力メソッド」を「uim」に、「オプション」を「anthy(ja)」に設定する必要がある。
以上で、「半角/全角」キーや「Shift + スペース」で日本語入力のオン/オフが行えるようになる。標準でインストールされているVimを使えば、さまざまな文字コードの日本語のファイルが編集可能だ(図3)。
あとは、必要に応じて多言語対応のページャ「lv」や、文字コード変換プログラム「nkf」といった定番ツールをインストールして環境を整えていけばよいだろう。
|
| 図3:Vimで日本語のファイルを編集 |
