Skip to content

Latest commit

 

History

History
68 lines (56 loc) · 2.53 KB

SETUP-EN.org

File metadata and controls

68 lines (56 loc) · 2.53 KB

Download

run the following commands to get basic files. about the dictionaries, most of the linux distributions seems updated versions, you may want to use those.

wget http://namazu.org/~tsuchiya/sdic/sdic-2.1.3.tar.gz
wget http://www.namazu.org/~tsuchiya/sdic/data/gene95.tar.gz
wget http://www.namazu.org/~tsuchiya/sdic/data/edict.gz

build sdic

;; building. emacs -batch -q -l install.el -f make-sdic –with-lispdir=$(pwd) –with-dictdir=$(pwd) \ –infodir=$(pwd)

build sdic files from ejiro (Optional)

cat EIJI-126.TXT RYAKU126.TXT | nkf -w8| perl contrib/eijirou.perl –compat > eijirou126.sdic cat WAEI-126.TXT | nkf -w8| perl contrib/eijirou.perl –compat > waei-126.sdic

emacs init excerpt

;;; sdic-mode 用の設定
(setq load-path (cons "/home/yagnesh/git/sdic/" load-path ))
(require 'sdic)
(autoload 'sdic-describe-word "sdic" "英単語の意味を調べる" t nil)
(autoload 'sdic-describe-word-at-point "sdic" "カーソルの位置の英単語の意味を調べる" t nil)
(global-set-key "\C-cw" 'sdic-describe-word)
(global-set-key "\C-cW" 'sdic-describe-word-at-point)
(setq sdic-eiwa-dictionary-list '((sdicf-client "/home/yagnesh/git/sdic/gene.sdic")))
(setq sdic-waei-dictionary-list '((sdicf-client "/home/yagnesh/git/sdic/edict.sdic")))
(setq sdic-default-coding-system 'utf-8-unix)

Ejirou dictionary setup

Ejirou dictionaries are huge but non-free., if have them you can use them as sdic. To make eijirou dictionaries into sdic format. follow the instructions.

Install dependencies

sudo apt-get install nkf

build ejirou to sdic

  • copy the files from the folder
  • convert them in sdic file format using the script pdic1line2sdic.rb

EDIT better use perl script in contrib/

nkf -S -e EIJI-126.TXT RYAKU126.TXT | contrib/eijirou.perl > eiji-126.sdic
nkf -S -e WAEI-126.TXT | contrib/eijirou.perl > waeiji-126.sdic

add them in the sdic search alist

(setq sdic-eiwa-dictionary-list
      '((sdicf-client "/home/yagnesh/git/sdic/gene.sdic")
        (sdicf-client "/home/yagnesh/git/sdic/eiji-126.sdic")))
(setq sdic-waei-dictionary-list
      '((sdicf-client "/home/yagnesh/git/sdic/edict.sdic")
        (sdicf-client "/home/yagnesh/git/sdic/waeiji-126.sdic"
                      (add-keys-to-headword t))))

Resources

http://d.hatena.ne.jp/eiel/20090111#1231681381