Anthy辞書追加 - アールメカブ

アールメカブ


Anthy辞書追加

Linuxの備忘録

[#nf21dffc]
  1. /usr/share/anthy/dic/ に辞書 (*.t, *.ctd) を入れる
  2. 追加した辞書のファイル名を /etc/anthy/diclist に追加
  3. sudo update-anthy-dics

ログイン後に設定が反映される

$ ls /usr/share/anthy/dic
2ch.t     base.t      extra.t     gcannaf.ctd  name.t      udict   
zipcode.t adjust.t  compound.t  gcanna.ctd  gtankan.ctd 
 tankanji.t  utf8.t
sudo cp /canna-misao-0.99/*.ctd /usr/share/anthy/dic
ls /usr/share/anthy/dic
2ch.t       extra.t      kigo.ctd     mfzok.ctd   name.t      utf8.t
adjust.t    gcanna.ctd   koyu.ctd     mmain.ctd   ryaku.ctd   
zipcode.t  base.t      gcannaf.ctd  mchimei.ctd  mscien.ctd  
tankanji.t compound.t  gtankan.ctd  mcomp.ctd    msub.ctd 
 udict
$ sudo update-anthy-dics
Updating anthy.dic...file name prefix=[./] 
      you can change this by -p option.
 copying .///mkworddic/anthy.wdic (word_dic)
 copying .///depgraph/anthy.dep (dep_dic)
 copying .///calctrans/anthy.trans_info (trans_info)
 copying .///calctrans/anthy.cand_info (cand_info)
 copying .///calctrans/anthy.weak_words (weak_words)
 copying .///calctrans/anthy.corpus_bucket (corpus_bucket)
 copying .///calctrans/anthy.corpus_array (corpus_array)
/usr/bin/mkfiledic done.
done.
$ sudo vi /etc/anthy/diclist
base.t
extra.t
mmain.ctd
2ch.t
kigo.ctd
koyu.ctd
mchimei.ctd
mcomp.ctd
mfzok.ctd
mscien.ctd
msub.ctd
ryaku.ctd
$ sudo update-anthy-dics
Updating anthy.dic...file name prefix=[./] you can change this by -p option.
 copying .///mkworddic/anthy.wdic (word_dic)
 copying .///depgraph/anthy.dep (dep_dic)
 copying .///calctrans/anthy.trans_info (trans_info)
 copying .///calctrans/anthy.cand_info (cand_info)
 copying .///calctrans/anthy.weak_words (weak_words)
 copying .///calctrans/anthy.corpus_bucket (corpus_bucket)
 copying .///calctrans/anthy.corpus_array (corpus_array)
/usr/bin/mkfiledic done.
done.
 
Link: Linuxの備忘録(4494d)
Last-modified: 2008-02-23 (土) 16:17:10 (5907d)