Ubuntuã§Anthyã«é¡æåç»é²
Ubuntuã§é¡æåå
¥åããããªãã¨æã£ã¦ãAnthyã«è¨å®ãã¾ããã
åºæ¬çã«ã¯ここãåèã«ãã¾ããã
ãã ãæåã³ã¼ãé¢ä¿*1ã§ãã¾ããããªãã¨ããããã£ããã§ããã®è¾ºã®è¦ãæ¸ãã
1. ãªã¬ã³ã¸ã®é¡æåè¾æ¸MS-IMEããã¹ãå½¢å¼ããã¦ã³ãã¼ã
顔文字パーティー オレンジの顔文字辞書ver3.1ããé¡æåè¾æ¸*2ããã¦ã³ãã¼ããã¾ãã
2. æåã³ã¼ããShift_JISãããUTF-8ã¸
以ä¸ã®ã³ãã³ãã§list.txtããlist.utf8.txtã¨ããUTF-8ã®ãã¡ã¤ã«ã«å¤æãã¦ä¿åã
$ cat list.txt | nkf -w > list.utf8.txt
3. MS-IMEå½¢å¼ã®è¾æ¸ãCannaå½¢å¼ã®è¾æ¸ã«å¤æãã
http://kodou.net/unixuser/200405/part5.htmlããkao.rbãã³ãããã¦ãã¦ã以ä¸ã®ããã«UTF-8ç¨ã«æ¸ãæãã¾ãã
require 'kconv' while line = gets str = line.split(/\t/) next unless str[2] next unless str[2].toutf8.chop == "é¡æå" print str[0].toutf8 print " #KJ " puts str[1].toutf8.gsub(/ /, "\\ ") end
ä¸ã®ãã¡ã¤ã«ãUTF-8ã®æåã³ã¼ãã§kao.rbã¨ãã¦ä¿åããã®ãå¿ããã«ã
ããã¦ã以ä¸ã®ããã«ãã¦ãã¹ã¯ãªãããå®è¡
$ ruby -Ku kao.rb < list.utf8.txt > private_words_default
ããã§ãå人è¾æ¸*3ãã§ãã¾ãã
4. ä½æã§ããè¾æ¸ãã¡ã¤ã«ãAnthyã®å人è¾æ¸ãã£ã¬ã¯ããªã«ã³ãã¼ãã¾ãã
ã§ãããã¡ã¤ã«ã以ä¸ã®ããã«~/.anthy以ä¸ã«ã³ãã¼ãã¾ãã
$ cp private_words_default ~/.anthy/
~/.anthy以ä¸ã«ä¿åãããã¡ã¤ã«åã¯å¿
ãprivate_words_defaultã¨ãããã¨ã
ããããªãã¨å人è¾æ¸ã¨ãã¦ç»é²ããã¾ããã
以ä¸*4
ããã§ã§ããã¯ãã§ããã(ãâ½ã*)ãã»\ ã».âªãã£ããã¼ã¤âª.ã»\ ã»ã¾(*ãâ½ã)ã
ãªããééã£ã¦ãã¨ãããã£ããæãã¦ãã ããã(ãoã)ã¨(ããã)ã(ããã)ã·(ãã»ã)ã¯o(_\ _)oãã³ãâª