#author("2023-04-15T13:38:34+09:00","","") #topicpath /////////////////////////////////////////////////////////////////////////////// * 目次 [#d2856ee7] #contents(); //////////////////////////////////////////////////////////////////////////////// * sdic で英辞郎辞書を使う [#c316805c] //////////////////////////////////////////////////////////////////////////////// * 環境構築 [#hb8b9537] + 英辞郎の CD-ROM 版を入手する(発売元で直販してなければ amazon 等で購入する) + sdic.el を入手する -- https://github.com/tsuchm/sdic.git + sdic は make そのままでは使えないので make する $ cd sdic $ ./autogen.sh # ここで sdic.el が生成される $ make + 辞書ファイルの作成 -- sdic/contrib/eijirou.perl を使う $ nkf -w8 /media/${LOGNAME}/eijiro/eijiro54.txt | perl sdic**/contrib/eijirou.perl > ${HOME}/dic/eijirou.sdic + emacs で sdic を使う設定をする (setq load-path (cons "/usr/local/share/emacs/site-lisp" load-path)) (autoload 'sdic-describe-word "sdic" "英単語の意味を調べる" t nil) (global-set-key "\C-cw" 'sdic-describe-word) (autoload 'sdic-describe-word-at-point "sdic" "カーソルの位置の英単語の意味を調べる" t nil) (global-set-key "\C-cW" 'sdic-describe-word-at-point) (setq sdic-eiwa-dictionary-list '((sdicf-client "/usr/local/share/dict/eijirou.sdic"))) (setq sdic-waei-dictionary-list '((sdicf-client "/usr/local/share/dict/waeijirou.sdic"))) (setq sdic-default-coding-system 'utf-8-unix) //////////////////////////////////////////////////////////////////////////////// * 参考リンク [#z316e5bb] - [[SDICと英辞郎>https://www.aise.ics.saitama-u.ac.jp/~gotoh/Tips/sdic_eijiro.html]] - [[sdic を利用し Emacs から英辞郎の辞書を引く - higepon blog>https://higepon.hatenablog.com/entry/20090125/1232872431]]