Lookup for Emacs
Lookup is an integrated user interface for various dictionaries. You can search various on-line and off-line dictionaries simultaneously with lookup.
Download the archive and place the contents of
lisp folder into your
site-lisp. You will need `cl-lib' if your Emacs is 24.2 or earlier.
You do not need any additional library if Emacs is 24.3 or later.
When proper installer is completed, it should be installed via following command.
% ./configure --with-emacs=emacs \ --with-lispdir=/your/home/emacs/lisp \ --infodir=/your/home/emacs/info % make install
Following is an example of the settings of
(define-key ctl-x-map "l" 'lookup) (define-key ctl-x-map "y" 'lookup-region) (define-key ctl-x-map "\C-y" 'lookup-pattern) (load "lookup-autoloads") (setq lookup-search-agents '((ndeb "/usr/local/dict/epwing") (ndspell)))
(You may also create
~/.emacs.d/lookup/ directory and put
file for various settings.)
M-x lookup will start Lookup.
M-x lookup-region will search the
text in the region. If you
M-x lookup-pattern, you will be asekd for
search words. For details, please refer the documentation.
EPWING, EBXA, etc are supported with help of
Textual and XML-based dictionaries
are also supported. For faster search, suffix array tool called
sary is used. With
sary, you can
use BTONIC or Lingvo DSL file as dictionary.
Google and Wikipedia searches are supported with
Dictd and some other dictionaries are also supported.