これじゃ Emacs で日本語が入力できないじゃないか。
Emacs で (ibus や scim を通さずに) mozc が使えるなら別にそれでもかまわないんだが・・・。
EUC-JP を入出力にして
[lugia@arpa-castle ~]$ ruby -Ke -v /usr/bin/prime ruby 1.9.2dev (2010-07-11 revision 28618) [i686-linux] /usr/bin/prime:174: warning: (...) interpreted as grouped expression /usr/bin/prime:180: warning: (...) interpreted as grouped expression /usr/lib/ruby/1.9.1/prime/taiyaki.rb:170: warning: method redefined; discarding old chars /usr/lib/ruby/1.9.1/suikyo/suikyo.rb:17: warning: method redefined; discarding old join2 /usr/lib/ruby/1.9.1/prime/taiyaki.rb:237: warning: previous definition of join2 was here lookup_compact ぷろ # ←入力 (compact の後は Tab。ひらがな2文字ならなんでも。) /usr/lib/ruby/1.9.1/prime/server.rb:88: warning: instance variable @debug not initialized /usr/lib/ruby/1.9.1/prime/grammar/grammar.rb:49:in `lookup_katsuyou': incompatible character encodings: ASCII-8BIT and EUC-JP (Encoding::CompatibilityError) from /usr/lib/ruby/1.9.1/prime/prime-japanese.rb:352:in `block (2 levels) in guess_clauses_internal' from /usr/lib/ruby/1.9.1/prime/prime-japanese.rb:351:in `each' from /usr/lib/ruby/1.9.1/prime/prime-japanese.rb:351:in `block in guess_clauses_internal' from /usr/lib/ruby/1.9.1/prime/prime-japanese.rb:341:in `each' from /usr/lib/ruby/1.9.1/prime/prime-japanese.rb:341:in `guess_clauses_internal' from /usr/lib/ruby/1.9.1/prime/prime-japanese.rb:301:in `process_clauses' from /usr/lib/ruby/1.9.1/prime/prime-japanese.rb:252:in `search_japanese_uniclause' from /usr/lib/ruby/1.9.1/prime/session-prime08.rb:218:in `search_compact' from /usr/lib/ruby/1.9.1/prime/session-prime08.rb:123:in `lookup_compact' from /usr/lib/ruby/1.9.1/prime/prime08.rb:67:in `lookup_compact' from /usr/lib/ruby/1.9.1/prime/protocol.rb:238:in `lookup_compact' from /usr/lib/ruby/1.9.1/prime/protocol.rb:114:in `send_command' from /usr/lib/ruby/1.9.1/prime/protocol.rb:100:in `execute' from /usr/lib/ruby/1.9.1/prime/server.rb:33:in `block (2 levels) in session_loop' from <internal:prelude>:10:in `synchronize' from /usr/lib/ruby/1.9.1/prime/server.rb:32:in `block in session_loop' from /usr/lib/ruby/1.9.1/prime/server.rb:26:in `loop' from /usr/lib/ruby/1.9.1/prime/server.rb:26:in `session_loop' from /usr/lib/ruby/1.9.1/prime/server.rb:139:in `start' from /usr/bin/prime:164:in `main' from /usr/bin/prime:184:in `<main>' [lugia@arpa-castle ~]$
ruby 側に問題があるような気もしなくもない。
バイナリは
[lugia@arpa-castle ~]$ rpm -qi prime suikyo ruby ruby-sary Name : prime Relocations: (not relocatable) Version : 1.0.0.1 Vendor: (none) Release : 9m.mo7 Build Date: 2010年08月16日 08時56分20秒 Install Date: 2010年08月16日 08時56分58秒 Build Host: arpa-castle Group : Applications/System Source RPM: prime-1.0.0.1-9m.mo7.nosrc.rpm Size : 868083 License: GPL Signature : (none) URL : http://taiyaki.org/prime/ Summary : PRIME - a Japanese PRedictive Input Method Editor Description : PRIME predicts user's input words using the knowledge of natural language and the history of user's operations, and reduces the cost of typing by the user. For example, if a user wants to input "application" and types "ap" as the beginning characters of the word, PRIME might predict some candidate words like "apple", "application", "appointment", etc... And then the user can input "application" easily by selecting the word from the candidate words by PRIME. Name : suikyo Relocations: (not relocatable) Version : 2.1.0 Vendor: (none) Release : 17m.mo7 Build Date: 2010年08月06日 01時43分51秒 Install Date: 2010年08月15日 09時07分23秒 Build Host: rainbowshoes Group : Development/Libraries Source RPM: suikyo-2.1.0-17m.mo7.nosrc.rpm Size : 245275 License: GPL Signature : (none) URL : http://taiyaki.org/suikyo/ Summary : Romaji Hiragana conversion library Description : Suikyo is a Romaji Hiragana conversion library based on DFA (Deterministic finate state) automaton. Name : ruby Relocations: (not relocatable) Version : 1.9.2 Vendor: (none) Release : 0.992.12m.mo7 Build Date: 2010年08月11日 00時31分49秒 Install Date: 2010年08月15日 09時35分33秒 Build Host: rainbowshoes Group : Development/Languages Source RPM: ruby-1.9.2-0.992.12m.mo7.nosrc.rpm Size : 2581401 License: Ruby or GPLv2 Signature : (none) URL : http://www.ruby-lang.org/ Summary : オブジェクト指向スクリプト言語のインタープリター Description : Ruby-1.9 is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, and extensible. Name : ruby-sary Relocations: (not relocatable) Version : 1.2.0 Vendor: (none) Release : 10m.mo7 Build Date: 2010年08月16日 08時58分28秒 Install Date: 2010年08月16日 08時58分30秒 Build Host: arpa-castle Group : Applications/Text Source RPM: ruby-sary-1.2.0-10m.mo7.nosrc.rpm Size : 29020 License: GPL Signature : (none) URL : http://sary.namazu.org/ruby/ Summary : sary extention for Ruby Description : This package add sary methods for Ruby. [lugia@arpa-castle ~]$
DVD インストールのもので問題が起きてないならスルーしてくれ。
ちなみに ibus や scim を通しちゃいけない理由は、
- 重い。まあ、半分は prime のせいもあるんだろうが。
- ssh リモートや jfbterm と組み合わせてコンソールなどの時でもいつもの入力方法が使える。
といったところ。