The IME is about done.
It will download edict2 automatically to $XDG_CONFIG_HOME/hayanyuu
It needs kakasi-cvs for UTF8 conversion of hiragana -> katakana.
It no longer needs mecab. Instead the usage is a little different:
Let’s say you want to type:
You begin typing: “reitaisai” and it finds it in edict2 indicated by F3. You press it and it’s added to the “line so far”. Then you type “no”, F1 (hiragana). “yomikata” -> F3. “ha” -> F1. “reitaisai” -> F2 (katakana). “Enter” to echo the “line so far” to stdout.
Inflections are harder. Maybe in a future version I’ll find a better way to do it, but now, just type the base verb/adjective (as it appears in edict2) and add the inflection after it with hiragana. Then remove the redundant base inflections afterwards. E.g.:
“iu” -> 言う. “tte” -> F1. Enter. Remove u
Lastly, here is another hint for xbindkeys:
"xterm -e 'hayanyuu >/tmp/hayanyuu_latest'; xdotool type "$(cat /tmp/hayanyuu_latest)""
So you don’t even have to paste it.