uim-fep & uim-anthy導入

パッケージ入れる

#apt-get install uim-anthy anthy uim-fep

適当に辞書選ぶ。

PocketWorkstation固有の問題

uim-fep -e w3m

openpty: no such file or directoryで落ちる。

うーむ。こういうときはstraceすね。

open("/dev/ptyp0", O_RDWR)              = -1 ENOENT (No such file or directory)

これぽい。

とりあえず/devをmount --bindしてやる。busyboxのはサポートないので適当にutil-linuxをクロスコンパイル。
バイナリ:http://websvn.nyaxtstep.com/viewvc.cgi/zaurus/bin/

#~/bin/mount --bind /dev /mnt/card/dev

まだだめ。

思い出すとzaurus向けjfbtermパッチの中に/dev/ptyp -> /dev/ptyaに変えてるパッチがあったような気がする。シンボリックリンク貼ればいけるかな?

#for i in `seq 0 9`; do ln -s /dev/ptya$i /dev/ptyp$1; done

いけた!

キーバインド変更

/usr/share/uim/generic-key-custom.scmをいじる。

(define-custom 'generic-on-key '("<Control>o")
               '(global-keys1)
           '(key)
           (_ "[Global] on")
           (_ "long description will be here"))

(define-custom 'generic-off-key '("<Control>o")
               '(global-keys1)
           '(key)
           (_ "[Global] off")
           (_ "long description will be here"))

Ctrl-oでAnthyをon/off。なぜか~/.uimをいじっても駄目。