Prime is a predictive text input method effectively used in Emacs.
相撲外:Installing Prime on the Universal
To install it, follow these steps, based on the Prime installation guide, originally found here.
Download the sary package from the sary website.
| $ wget -c http://sary.sourceforge.net/sary-1.2.0.tar.gz |
Unpack.
| $ tar xzvf sary-1.2.0.tar.gz |
Install.
| $ cd sary-1.2.0 $ ./configure $ make $ make install |
Deprecated: If under cygwin, sary-ruby installs fine now, it used to not, so you had to follow this guide (not necessary now): If installing under cygwing, follow this guide to deal with errors, caused by cygwin compilation, otherwise:
Download the sary-ruby package from sary-ruby homepage.
| $ wget -c http://sary.sourceforge.net/sary-ruby-1.2.0.tar.gz |
Unpack.
| $ tar xzvf sary-ruby-1.2.0.tar.gz |
Compile.
| $ cd sary-ruby-1.2.0 $ ruby extconf.rb $ make $ make install |
Download the suikyou package from the suikyo repository.
| $ wget -c http://prime.sourceforge.jp/src/suikyo-2.1.0.tar.gz |
Unpack.
| $ tar xzvf suikyo-2.1.0.tar.gz |
Install.
| $ cd suikyo-2.1.0 $ ./configure $ make $ make install |
Download the ruby-progressbar package from the ruby-progressbar webpage
| $ wget -c http://0xcc.net/ruby-progressbar/ruby-progressbar-0.9.tar.gz |
Unpack.
| $ tar xzvf ruby-progressbar-0.9.tar.gz |
Copy progressbar.rb to Ruby's path, where other .rb files reside.
Download the prime server package from the Prime distribution site.
| $ wget -c http://prime.sourceforge.jp/src/prime-1.0.0.1.tar.gz |
Unpack.
| $ tar xzvf prime-1.0.0.1.tar.gz |
Install.
| $ cd prime-1.0.0.1 $ ./configure $ make $ make install $ make install-etc |
Download the prime-dict package from the Prime distribution site.
| $ wget -c http://prime.sourceforge.jp/src/prime-dict-1.0.0.tar.gz |
Unpack.
| $ tar xzvf prime-dict-1.0.0.tar.gz |
Install.
| $ cd prime-dict-1.0.0 $ ./configure $ make $ make install |
This finishes the server installation. Now the emacs frontend must be installed. To install it, follow these steps, based on the Prime emacs frontend installation guide, originally found here.
Download the APEL package from the APEL distribution site.
| $ wget -c http://kanji.zinbun.kyoto-u.ac.jp/~tomo/lemi/dist/apel/apel-10.7.tar.gz |
Unpack.
| $ tar xzvf apel-10.7.tar.gz |
Install.
| $ cd apel-10.7 $ make $ make install |
Download the MELL package from the MELL distribution site.
| $ wget -c http://taiyaki.org/elisp/mell/src/mell-1.0.0.tar.gz |
Unpack.
| $ tar xzvf mell-1.0.0.tar.gz |
Install.
| $ cd mell-1.0.0 $./configure $ make $ make install |
Download the prime-el package from the prime-el distribution site.
| $ wget -c http://prime.sourceforge.jp/src/prime-el-1.5.1.3.tar.gz |
Unpack.
| $ tar xzvf prime-el-1.5.1.3.tar.gz |
Install.
| $ cd prime-el-1.5.1.3 $./configure $ make $ make install $ make install-etc |
Now, to finish the installation, modify you .emacs file, according to MELL installation guide, originally found here and the Prime emacs frontend installation guide, originally found here.
Add the following lines to your .emacs file:
;;; MELL (Emacs Lisp ライブラリ)
(require 'init-mell)
;;; Suikyo (ローマ字ひらがな変換ライブラリ)
(require 'init-suikyo)
;;; PRIME for Emacs
(require 'init-prime)
(setq prime-toggle-key "C-xC-j")
(global-set-key prime-toggle-key 'japanese-prime)
Now restart emacs. After this, when you hit C-x C-j prime input will start and you can type predictivelly.
However, under cygwin, Prime still doesn't run.
For some reason emacs get stuck in busy mode, displaying the clock, after displaying the message:
Loading /home/shiroikuma/.prime/Custom_prime-el.el (source)...done