Section 56: Use drawterm and 9vx on Japanese Macbook (10.6.2)

I happen to have a Macbook with Japanese keyboard (Mac OS X 10.6.2), and need to use it for may professional job. It is now possible to make a small modifications on Russ's distribution. Now I can use ktrans ( also put in this page) on this new drawterm and also 9vx.

(((((drawterm))))
After untar it, it'll show a drawterm.macjpn directory. Under it, you"ll see two directories, drawterm and Drawterm.app. The former includes the different file from those of Russ's distribution. You exchange those files, and compile by CONF=osx make. The latter include MAC OX X's dock files, which you can copy to say /Applications directory. You'll nedd to edit Drawterm.app/Contents/MacOS/core.sh file to fit to your environment. The conversion key from かな to 漢字 is Shift+Space or Control+Backslash keys.

(((((9vx)))))
For 9vxosx, similar situations as for drawterm, just untar it, then, replace two files, and compile.
I used vx32-0.12 source tree from the same source above.
You may also need to force the gcc as 32 bit node by adding -m32 option.
You may see many error messages like _XOPEN_SOURCE related, then, you can add lines of

#ifdef _APPLE_
#define _XOPEN_SOURCE
#endif
onto many files.
See also Section 39 under "Release 3 related" title for ktrans description.
You may need a /rc/bin/Kanji file, the contntes of which is
#!/bin/rc

pipefile -r ktrans /dev/cons
rio -i $home/lib/windows 
and exec it instead of rio in your $(home)/lib/profile.

Take out drawterm_for_macbook from here.

Take out 9vxosx_for_macbook from here.


Take out ktrans from here.


Take out ktrans jisho from here.



=====for Japanese User=======

たまたまmacbookを仕事で使うことになりました。そこで、これでもdrawtermを使ってPlan 9 systemに ログイン出来る様にdrawtermをちょっと改造して見ました。上の英語の部分にタグがありますから、そこから 持って行って下さい。

解凍しますとdrawterm.macjpnの下に二つのディレクトリがあります。ひとつはdrawterm で、ここに改造したソースが入っています。まずはRuss Coxさんの所からオリジナルのdrawtermのソースを 持って来て、必要なファイルを上書きして下さい。で、CONF=osx makeです。

もうひとつのディレクトリはDrawterm.appで、ここにOSX(106.2)で動かすのに必要なものが全て入っています。 drawtermのバイナリも入っています。これをディレクトリごと例えば/Applicationsディレクトリへコピーすれば それだけで動きます。ただし/Drawter.app//Contents/MacOS/core.shは私のところの環境に合わせてありますので、これを適宜書き変えて下さい。cntl+nで日本語モード、ctl+eで英語モード、ctl+gでギリシャ語、ctl+rでロシア語モードです。日本語モードで かな-->漢字変換はShift+Space又はCtl+\です。ktransもちょっとはバグフィックスされていますので、このページの別の所をチェックして見て下さい。
同じ事はやはりRussさんの9vxを使っても可能です。
これをコンパイルする時も-m32オプションを付けてる必要があります。
私はvx32-0.12ソースツリーを使いましたが、この上に揚げてある9vxosx.tgzファイルに含まれている
二つのファイルをRussさんのものと入れ替えて下さい。またコンパイル中に多くのファイルで_XOPEN_SOURCE
関連のエラーが出ますが、この時はファイルの頭に
#ifdef _APPLE_
#define _XOPEN_SOURCE
#endif
を入れてコンパイルすると大丈夫です。では。
					December 24, 2009, 岡本健二 okamoto@granite.las.osakafu-u.ac.jp


Go to Next Section

Back to INDEX