[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3. Lookup $B$rMxMQ$9$k$K$O(B

$B$3$N>O$G$O!"(BLookup $B$N%$%s%9%H!<%k8e$K9T$J$o$J$1$l$P$J$i$J$$@_Dj9`L\$K$D(B $B$$$F@bL@$7$^$9!#%W%m%0%i%`$N%$%s%9%H!<%k$K$D$$$F$O!"(BLookup $BG[I[J*$KImB0(B $B$N%U%!%$%k(B INSTALL $B$r;2>H$7$F2<$5$$!#@_Dj8e$N99$J$k%+%9%?%^%$%:$K$D$$$F(B $B$O!"(B5. $B<+J,9%$_$KD4@a$9$k(B $B$r;2>H$7$F2<$5$$!#(B

3.1 $B<-=q$N=`Hw$r@0$($k(B  
3.2 $B<-=q$K9g$o$;$F@_Dj$9$k(B  
3.3 $B?7$7$$8!:w%3%^%s%I$r:n$k(B  
3.4 $B$=$NB>$N<g$J@_Dj9`L\(B  
3.5 $B=i4|2=%U%!%$%k$N@_DjNc(B  
3.6 $B%;%C%H%"%C%WJQ?t0lMw(B  
3.7 $B%;%C%H%"%C%W4X?t0lMw(B  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.1 $B<-=q$N=`Hw$r@0$($k(B

Lookup $B$G$O!"0J2<$N<-=q$NMxMQ$r%5%]!<%H$7$F$$$^$9!#<+J,$NMxMQ$7$?$$<-=q(B $B$r3NG'$7!"$=$l$>$l$N2<=`Hw$r@0$($F2<$5$$!#(B


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.2 $B<-=q$K9g$o$;$F@_Dj$9$k(B

3.2.1 $B4pK\E*$J@_DjJ}K!(B  
3.2.2 $B3F<o%*%W%7%g%s$N@_Dj(B  
3.2.3 $BMxMQ$9$k<-=q$N@)8B(B  
3.2.4 $BJd=u%Q%C%1!<%8$NMxMQ(B  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ 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B

 
(ndtp "dserver" :port 2010 :account "user@domain")
$B%(!<%8%'%s%H$N<oN`$O(B ndtp$B!"<-=q$N=j:_$O(B "dserver" $B$G!"(B $B%*%W%7%g%s(B port $B$KCM(B 2010 $B$r!"%*%W%7%g%s(B account $B$K(B $BCM(B "user@domain" $B$r$=$l$>$l;XDj$7$F$$$^$9!#(B

$B3F%(!<%8%'%s%H$G6qBNE*$K2?$r@_Dj$9$Y$-$+$O!"$=$l$>$l$N%(!<%8%'%s%H$K$D$$(B $B$F$N@bL@$r;2>H$7$F2<$5$$!#%*%W%7%g%s$K$D$$$F$O!"$9$Y$F$N%(!<%8%'%s%H$G6&(B $BDL$K;H$($k$b$N$b$"$j$^$9!#(B5.2.1 $B%(!<%8%'%s%H!&%*%W%7%g%s0lMw(B $B$r;2>H$7$F2<$5$$!#(B

$B>e$N$h$&$J@_Dj$r!"MxMQ$9$k%(!<%8%'%s%H$N?t$@$1JB$Y$?$b$N$,!"<B:]$N(B lookup-search-agents $B$NCM$H$J$j$^$9!#Nc$($P0l$D$NE57?E*$JNc$H$7$F!"(B $B<!$N$h$&$J@_Dj$,9M$($i$l$k$G$7$g$&!#(B

 
;; $B%[%9%H(B dserver $B$G(B NDTP $B%5!<%P$,F0$$$F$*$j!"(B
;; $B%9%Z%k%A%'%C%/$N5!G=$rM-8z$H$9$k>l9g!#(B
(setq lookup-search-agents
      '((ndtp "dserver") (ndspell)))


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.2.2 $B3F<o%*%W%7%g%s$N@_Dj(B

$B@h$N@a$G$O!"%(!<%8%'%s%H$K%*%W%7%g%s$r;XDj$9$k$d$jJ}$K$D$$$F@bL@$7$^$7$?(B $B$,!"%*%W%7%g%s$O<-=q$K$b@_Dj$9$k$3$H$,2DG=$G$9!#<B:]!"(BLookup $B$N%(!<%8%'(B $B%s%H$d<-=q$O$[$H$s$I!"2?$i$+$N%*%W%7%g%s;XDj$K$h$C$F%+%9%?%^%$%:$5$l$k$h(B $B$&$K$J$C$F$$$^$9!#%*%W%7%g%s$N@_Dj$O:#8e$$$m$$$m$J>lLL$G=P$F$/$k$N$G!"$3(B $B$3$G0lEY>\$7$/@bL@$7$F$*$-$^$9!#(B

Lookup $B$G(B $B%*%W%7%g%s(B $B$H$O!"L>A0IU$-%Q%i%a!<%?$N$3$H$r0UL#$7$^$9!#(B $B$D$^$jFCDj$N%7%s%\%k$r%?%0$H$7$F!"$=$l$KBP1~$5$;$k7A$GCM$r@_Dj$7$^$9!#(B $B$3$l$OE57?E*$K$O!"(B(key . value) $B$H$$$&(B cons $B$N7A$G(B $BI=8=$5$l$^$9!#(B

$B@hDx$O%(!<%8%'%s%H$N%*%W%7%g%s$H$7$F!"(Blookup-search-agents $B$K(B $B%*%W%7%g%s$N(B cons $B$N%j%9%H$r@_Dj$7$^$7$?$,!"<-=q$N>l9g$K$OJQ?t(B lookup-dictionary-options-alist $B$rMQ$$$k$3$H$,=PMh$^$9!#(B

$BNc$($P<-=q$K%*%W%7%g%s(B title $B$r@_Dj$9$k$3$H$r9M$($F$_$^$7$g$&!#(B $B$3$l$O<-=q$N%?%$%H%k$rJQ99$9$k$?$a$N6&DL%*%W%7%g%s$G$9!#<!$N$h$&$K$7$^$9!#(B

 
(setq lookup-dictionary-options-alist
      '(("ndtp+dserver:KOKUGO" ':title "$B9q8l<-E5(B")
        ("ndeb+/cdrom:EIWA" ':title "$B1QOB<-E5(B")
        ("ndeb+/cdrom:WAEI" ':title "$BOB1Q<-E5(B")))

$B@h$N%(!<%8%'%s%H!&%*%W%7%g%s$N@_DjK!$H$h$/;w$F$$$k$N$,$o$+$k$H;W$$$^$9!#(B $B<-=q$rFCDj$9$k$?$a$K!"<-=q(BID(see section 2.4 $B5/F0$9$k$K$O(B)$B$rJ8;zNs$G;XDj$7$F$$(B $B$^$9!#(B

$B$7$+$7$3$NJ}K!$G$O!"@_Dj$,A}$($F$/$k$H!"$4$A$c$4$A$c$H$7$F>/!9$o$+$j$E$i(B $B$/$J$C$F$7$^$$$^$9!#$=$3$G<B:]$N%*%W%7%g%s@_Dj$N$?$a$KJXMx$J4X?t(B lookup-set-dictionary-option $B$rMQ0U$7$F$$$^$9!#$3$N4X?t$O4V@\E*$K(B lookup-dictionary-options-alist $B$r=q$-49$($^$9!#<BMQ>e$O$3$N4X?t(B $B$rMxMQ$7!"(Blookup-dictionary-options-alist $B$OD>@\$KJQ99$7$J$$J}$,(B $B$$$$$G$7$g$&!#>e$NNc$O!"<!$N<0$HEy2A$K$J$j$^$9!#(B

 
(lookup-set-dictionary-option "ndtp+dserver:KOKUGO" ':title "$B9q8l<-E5(B")
(lookup-set-dictionary-option "ndeb+/cdrom:EIWA" ':title "$B1QOB;~E@(B")
(lookup-set-dictionary-option "ndeb+/cdrom:WAEI" ':title "$BOB1Q<-E5(B")

$B$?$@$7!"$3$l$O4X?t$J$N$G!"(BLookup $B$N%W%m%0%i%`!&%U%!%$%k$r%m!<%I$7$F$+$i(B $B$G$J$$$HMxMQ=PMh$^$;$s!#$=$3$G%W%m%0%i%`$N%m!<%ID>8e$K@_Dj$,40N;$9$k$h$&!"(B Lookup $B@lMQ$N=i4|2=%U%!%$%k(B `~/.lookup' $B$rMQ$$$k$3$H$,=PMh$^$9!#$3(B $B$l$O8e$G$^$?>\$7$/@bL@$7$^$9!#(B(see section 3.5 $B=i4|2=%U%!%$%k$N@_DjNc(B)

$B$^$?!"A4$F$N<-=q$KBP$7$F%G%U%)%k%H$N%*%W%7%g%s$r@_Dj$9$k$?$a$K!"JQ?t(B lookup-default-dictionary-options $B$,MxMQ=PMh$^$9!#%*%W%7%g%s$N(B cons $B$r%j%9%H$K$7$FJB$Y$^$9!#Nc$($P<!$N$h$&$K@_Dj$9$l$P!"C18l$N8lHx$r(B $B<h$j=|$/=hM}$r%G%U%)%k%H$G9T$J$&$h$&$K$J$j$^$9!#(B

 
(setq lookup-default-dictionary-options
      '((:stemmer .  stem-english)))

$BA4$F$N<-=q$KBP$7$F$G$O$J$/!"$"$kFCDj$N%(!<%8%'%s%H$K$@$1%G%U%)%k%H$r@_Dj(B $B$7$?$$$3$H$b$"$j$^$9!#$3$l$OC1=c$K!"<-=q%*%W%7%g%s$r%(!<%8%'%s%H!&%*%W%7%g(B $B%s$HF1$8$KJB$Y$k$@$1$G$9!#<-=q%*%W%7%g%s$,;XDj$5$l$J$+$C$?>l9g!"<!$K%(!<(B $B%8%'%s%H!&%*%W%7%g%s$+$iF1$8$b$N$,C5$7=P$5$l$^$9!#$?$@$7(B title $B$N(B $B@_Dj$J$I!"6&M-$,L50UL#$J$b$N$K$D$$$F$O$=$N8B$j$G$O$"$j$^$;$s!#(B

$B<-=q%*%W%7%g%s$HF1MM$K!"%(!<%8%'%s%H!&%*%W%7%g%s$N$?$a$K$b@_DjMQ$NJQ?t!&(B $B4X?t$,MQ0U$5$l$F$$$^$9!#$=$l$>$l(B lookup-agent-options-alist$B!"(B lookup-set-agent-option$B!"(Blookup-default-agent-options $B$G$9!#(B $BNc$($P<-=q$rL58z2=$9$k$K$O!"<!$N$h$&$K=q$/$3$H$b=PMh$^$9!#(B

 
(setq lookup-search-agents '((agent "location")))
(lookup-set-agent-option "agent+location" ':disable '("KOKUGO" "WAEI"))

$B$J$*!"%*%W%7%g%s@_Dj$NM%@h=g0L$O<!$NDL$j$G$9!#(B


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.2.3 $BMxMQ$9$k<-=q$N@)8B(B

$BJQ?t(B lookup-search-agents $B$G@_Dj$5$l$?%(!<%8%'%s%H$ODL>o!"(BLookup $B$N5/F0$HF1;~$KA4$F=i4|2=$5$l!"$=$3$K4^$^$l$kA4$F$N<-=q$,MxMQ$5$l$k$b$N$H(B $B$7$FA*Br$5$l$^$9!#$7$+$7>l9g$K$h$C$F$O!"$=$N$&$A0lIt$N<-=q$7$+I,MW$H$7$J(B $B$$$3$H$b$"$k$+$b$7$l$^$;$s!#%(!<%8%'%s%H$K<!$N6&DL%*%W%7%g%s$rM?$($k$3$H(B $B$G!"$"$i$+$8$aM-8z$H$9$k<-=q$r@)8B$9$k$3$H$,=PMh$^$9!#(B

:enable
$BM-8z$H$9$k<-=qL>$N%j%9%H!#(B
:disable
$BL58z$H$9$k<-=qL>$N%j%9%H!#(B

$BNc$($P!"$"$k%(!<%8%'%s%H$,;0$D$N<-=q(B `KOKUGO', `EIWA', `WAEI' $B$r;}$C$F$$$k$H$7$^$7$g$&!#$3$NFb(B `EIWA' $B$@$1$r(B $BM-8z$K$7$?$$$N$G$"$l$P!"<!$N$h$&$K@_Dj$7$^$9!#(B

 
(agent "location" :enable ("EIWA"))

$B$"$k$$$O(B

 
(agent "location" :disable ("KOKUGO" "WAEI"))

$B$3$3$G;XDj$9$Y$-<-=qL>$O!"(BM-x lookup $B$H$7$FI=<($5$l$k<-=q0lMw$N(B $B%P%C%U%!$+$iCN$k$3$H$,=PMh$^$9(B(see section 2.4 $B5/F0$9$k$K$O(B)$B!#:G=i$K%*%W%7%g%s(B $B$J$7$G5/F0$7$F4^$^$l$k<-=q$r3NG'$7!"8e$+$i@_Dj$rJQ99$9$k$H$h$$$G$7$g$&!#(B

$B$"$k$$$O!"L58z$K$O$7$?$/$J$$$,!"LGB?$KMQ$$$J$$$H$$$&<-=q$b$"$k$+$b$7$l$^(B $B$;$s!#>e$HF1MM$K!"<!$N6&DL%*%W%7%g%s$rM?$($k$3$H$G!"<-=q$N=i4|A*Br>uBV$r(B $BJQ$($k$3$H$,=PMh$^$9!#(B

:select
$BA*Br$9$k<-=qL>$N%j%9%H!#(B
:unselect
$BL$A*Br$K$9$k<-=qL>$N%j%9%H!#(B

$BL$A*Br$K$5$l$?<-=q$O!"8e$+$iA*Br$9$k$3$H$GMxMQ2DG=$H$J$j$^$9!#(B (see section 4.4 $BFCDj$N<-=q$rMxMQ$9$k(B)


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.2.4 $BJd=u%Q%C%1!<%8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`~/.lookup'; see section 3.5 $B=i4|2=%U%!%$%k$N@_DjNc(B) $B$G(B $B<!$N$h$&$K@_Dj$7$^$9!#(B

 
;; $B%Q%C%1!<%8!&%G%#%l%/%H%j$N@_Dj(B
(setq lookup-package-directory "/your/package/directory")

;; $B!X<-!&E5!&HW(B97$B!Y$N%Q%C%1!<%8MxMQ(B
(lookup-use-package "ndeb+/cdrom" "jitenban97")

$BJQ?t(B lookup-package-directory $B$K$h$j%Q%C%1!<%8!&%G%#%l%/%H%j$r(B $B@_Dj$7$^$9!#(Blookup-use-package $B$K$h$j%Q%C%1!<%8$NFI$_9~$_$r(B $B9T$J$$$^$9!#Bh0l0z?t$O%(!<%8%'%s%H(BID$B!"BhFs0z?t$O%Q%C%1!<%8L>$G$9!#(B

lookup-use-package $B$OFbItE*$K$O!"(B3.2.2 $B3F<o%*%W%7%g%s$N@_Dj(B $B$G@bL@$7$?(B $B@_DjMQ4X?t(B lookup-set-agent-option $B$H(B lookup-set-dictionary-option $B$rMQ$$$F%*%W%7%g%s@_Dj$r9T$J$C$F$$$k(B $B$@$1$G$9!#=>$C$F0lEY%Q%C%1!<%8$rFI$_9~$s$@8e$G$b!"$3$l$i$N4X?t$rMQ$$$F(B $B99$K@_Dj$r>e=q$-$9$k$3$H$d!"F1$8%(!<%8%'%s%H$KJL$N%Q%C%1!<%8$r=E$M$F(B $BE,MQ$9$k$3$H$b2DG=$G$9!#(B

$B<j;}$A$N<-=q$N%Q%C%1!<%8$,B8:_$7$J$$>l9g!"$=$l$r<+J,$G:n$k$3$H$b=PMh$^$9!#(B (see section 5.4 $BJd=u%Q%C%1!<%8$r:n$k(B)


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.3 $B?7$7$$8!:w%3%^%s%I$r:n$k(B

$B4{B8$N%=!<%9$r;29M$K$7$F$/$@$5$$!#$b$7J,$+$i$J$$$3$H$,$"$l$P!"(B $B%a%$%j%s%0%j%9%H(B ( lookup-ja@ring.gr.jp ) $B$K<ALd$7$F$_$k$H$h$$$+$b$7$l$^$;$s!#(B


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.4 $B$=$NB>$N<g$J@_Dj9`L\(B

3.4.1 $BJ8;z%3!<%I$N@_Dj(B  
3.4.2 $B30;zI=<($N=`Hw(B  
3.4.3 $B%9%Z%k%A%'%C%/$N=`Hw(B  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.4.1 $BJ8;z%3!<%I$N@_Dj(B

UNIX $B$G$O<!$N$h$&$K$9$k!#(B

 
(setq default-coding-system 'euc-jp)

Windows $B$G$O<!$N$h$&$K$9$k!#(B

 
(setq process-coding-system-alist '(("eblook\\.exe\\'" . euc-jp)))


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.4.2 $B30;zI=<($N=`Hw(B

Lookup $B$O(B CD-ROM $B=q@R$J$I$K4^$^$l$k30;z$NI=<($r%5%]!<%H$7$F$$$^$9!#(B (1) $B30;z$rI=<($9$k$K$O!"$=$l$>$l$N8!:w%(!<%8%'%s%H$GE,@Z$J@_Dj$r9T$J$C$?>e$G!"(B Lookup $B$r<!$N$h$&$K@_Dj$7$F2<$5$$!#(B

  1. GNU Emacs $B5Z$S(B Mule $B$N>l9g(B:

    Emacs $B$G%S%C%H%^%C%WI=<($r9T$J$&$?$a$N(B bitmap-mule $B%Q%C%1!<%8$rMQ$$$F(B $B30;z$rI=<($7$^$9!#(Bbitmap-mule $B$O<!$N$H$3$m$+$iF~<j2DG=$G$9!#(B

    bitmap-mule
    ftp://ftp.jaist.ac.jp/pub/GNU/elisp/bitmap-mule/

    $BImB0$N%I%-%e%a%s%H$J$I$r;29M$K%$%s%9%H!<%k$r9T$J$C$F2<$5$$!#$b$7@_Dj$,(B $B$h$/$o$+$i$J$1$l$P!"(BLookup $B$N(B FAQ $B$K$b>pJs$,$"$k$N$G;29M$K$7$F2<$5$$!#(B

    bitmap-mule $B$N=`Hw$,=PMh$?$i!"<!$N$$$:$l$+$NJ}K!$G=`Hw$,40N;$G$9!#(B

    1. Lookup $B$N5/F0A0$K(B bitmap-mule $B$r%m!<%I$9$k!#(B

      $BNc$($P(B `~/.emacs' $B$K(B (require 'bitmap) $B$H=q$$$F$*$$$F2<$5$$!#(B

    2. $B=i4|2=%U%!%$%k$G(B lookup-use-bitmap $B$r(B t $B$K%;%C%H$9$k!#(B

      $B$3$N>l9g!"<B:]$K30;z$rI=<($9$k:]$K(B bitmap-mule $B$,FI$_9~$^$l$^$9!#(B

  2. XEmacs $B$N>l9g(B:

    $BFCJL$J=`Hw$OI,MW$"$j$^$;$s!#(BLookup $B$O(B XEmacs $B$N(B glyph $B$N5!G=$rMxMQ$7$F!"(B $B30;z$r0l<o$N2hA|$H$7$F07$$$^$9!#@_Dj$O<+F0$G9T$J$o$l$^$9!#(B

$B5U$K!"30;z$rI=<($5$;$?$/$J$$>l9g$K$O!"JQ?t(B lookup-enable-gaiji $B$r(B nil $B$K@_Dj$7$F2<$5$$!#$3$l$O%G%U%)%k%H$G(B t $B$H$J$C$F$$$^$9!#(B


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.4.3 $B%9%Z%k%A%'%C%/$N=`Hw(B

$BF|:"$+$i8!:w$r$7$F$$$k$H!"F~NO$N$A$g$C$H$7$?8m$j$/$i$$$O<+F0E*$K=$@5$7$F(B $B8!:w$r9T$J$C$F$/$l$k$HM-$jFq$/;W$$$^$9!#(BLookup $B$K$O!"F~NO$5$l$?8!:w8l$r(B $BJd@5$9$k$?$a$N$$$/$D$+$N5!G=$,Hw$o$C$F$$$^$9!#(B

$BC18l$N8lHx$r<h$j=|$/(B  
$B%9%Z%k%A%'%C%/$r9T$J$&(B  

$BC18l$N8lHx$r<h$j=|$/(B

$B1Q8l$J$I$G!"C18l$NJ#?t7A$d2a5n7A$J$I$KIU$/M>J,$JJ8;zNs$r<h$j=|$-!"867?$r(B $B?dB,$9$k$?$a$N=hM}$r(B stemming $B$H$$$$$^$9!#$3$l$,=PMh$k$H!"J8;zNs$N(B $B=$@5$J$7$K8!:w$r9T$J$($k$N$GJXMx$G$9!#(BLookup $B$G$O!"<-=q%*%W%7%g%s(B stemmer $B$r;XDj$9$k$3$H$G!"(Bstemming $B$r9T$J$&$h$&@_Dj=PMh$^$9!#(B

$B%*%W%7%g%s(B stemmer $B$K$O!"(Bstemming $B$r9T$J$&4X?t$r;XDj$7$^$9!#I8=`(B $B$G$O!"1QC18lMQ$N(B stemming $B4X?t(B stem-english $B$,Hw$($i$l$F$$$^$9!#(B $B<!$N$h$&$K@_Dj$7$F2<$5$$!#(B

 
(lookup-set-dictionary-option "agent:DICT" ':stemmer 'stem-english)

$B$3$l$G;XDj$7$?<-=q$+$i8!:w$r9T$J$&$H$-$K$O!"(Bstemming $B$,9T$J$o$l$k$h$&$K(B $B$J$j$^$9!#6qBNE*$K$O!"<!$N<j=g$G8!:w$5$l$^$9!#(B

  1. $B85$N8!:w8l$G8!:w$9$k!#(B

    $B;O$a$OF~NO$r$=$N$^$^8!:w$7$^$9!#$=$l$G8+IU$+$l$P2?$bLdBj$"$j$^$;$s!#(B

  2. $B@_Dj$5$l$?(B stemming $B4X?t$G867?$r?dB,$9$k!#(B

    stemming $B4X?t$O!"J8;zNs$r<u$1<h$C$F$=$N867?$N8uJd$N%j%9%H$rJV$7$^$9!#(B Lookup $B$O8uJd$N$=$l$>$l$K$D$$$F!"<-=q$+$iC18l$,8+IU$+$k$^$G8!:w$r7+$jJV(B $B$7$^$9!#8!:w8l$,C1=c$JJ#?t7A$d2a5n7A$r$7$F$$$l$P!"0lEY$N$d$jD>$7$G7k2L$K(B $B$?$I$jIU$1$k$O$:$G$9!#(B

  3. $B6&DL$N8lF,$r;}$C$?;w$?C18l$rC5$7=P$9!#(B

    $BNc$($P!"(B`lexicographer' $B$H$$$&8l$O:\$C$F$$$J$$$,!"(B `lexicography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Q$N=i4|2=%U%!%$%k$H$7$F(B lookup-init-file (`~/.lookup') $B$,(B Lookup $B5/F0;~$KFI$_9~$^$l$k$N$G!"$3$l$rMQ$$$k$3$H(B $B$K$7$^$9!#(B

3.5.1 $B=i4|2=%W%m%;%9$N35MW(B  
3.5.2 `~/.emacs' $B$N@_Dj(B  
3.5.3 `~/.lookup' $B$N@_Dj(B  
3.5.4 $B%5%$%HKh$N6&DL@_Dj(B  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.5.1 $B=i4|2=%W%m%;%9$N35MW(B

$B$^$:(B Lookup $B$N<B9T2aDx$K$D$$$FBg$^$+$K@bL@$7$^$9!#(B

  1. Emacs $B$N5/F0(B
  2. `~/.emacs' $B$NFI$_9~$_(B
  3. Lookup $B$N5/F0(B
  4. Lookup $B%W%m%0%i%`!&%U%!%$%k(B(`*.elc')$B$NFI$_9~$_(B
  5. Lookup $B=i4|2=%U%!%$%k(B(`~/.lookup')$B$NFI$_9~$_(B ($BB8:_$9$l$P(B)
  6. lookup-load-hook $B$N<B9T(B
  7. Lookup $B=i4|2=3+;O(B

$B$3$N$h$&$K(B Lookup $B$N%W%m%0%i%`!&%U%!%$%k$O(B `~/.emacs' $B$h$j$b8e$+$i(B $BFI$_9~$^$l$k$?$a!"$3$l$^$G@bL@$7$?%*%W%7%g%s$d%Q%C%1!<%8$N@_DjMQ4X?t$r(B $BMQ$$$k$K$O!"DL>o!"<!$N$$$:$l$+$NJ}K!$rMQ$$$^$9!#(B

  1. `~/.lookup' $B$rMQ$$$k!#(B

    $B$3$l$,0lHV!"IaDL$N$d$jJ}$G$9!#(B`~/.lookup' $B$rMxMQ$9$l$P!"(B $BM>7W$J$3$H$r5$$K$;$:$KA4$F$N@_Dj$r9T$J$($^$9!#(B

  2. lookup-load-hook $B$rMQ$$$k!#(B

    $B%5%$%H$G6&DL$N@_Dj$r9T$J$&$h$&$J>l9g!"(B`~/.lookup' $B$rMQ$$$k$o$1$K$O(B $B$$$-$^$;$s!#$"$k$$$O!"A4$F$r(B `~/.emacs' $B$G9T$&$H$$$&%]%j%7!<$N?M$b(B $B$$$k$+$b$7$l$^$;$s!#$=$N$h$&$JL\E*$N$?$a$K!"(B`~/.lookup' $B$HF1MM$N(B $B%?%$%_%s%0$G=i4|2=$r9T$J$&$?$a$N(B hook lookup-load-hook $B$rMQ$$$k(B $B$3$H$,=PMh$^$9!#<!$N$h$&$K$7$^$9!#(B

     
    ;; load-hook $B$N@_Dj(B
    (add-hook 'lookup-load-hook 'init-lookup)
    
    ;; Lookup $B$N@_DjFbMF(B
    (defun init-lookup ()
      (setq lookup-search-agents '((agent) ...))
      (lookup-set-agent-option "agent" ':key 'value)
      ...
      )
    


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.5.2 `~/.emacs' $B$N@_Dj(B

`~/.lookup' $B$rMQ$$$k$K$7$F$b!"%-!<%P%$%s%I$N@_DjEy!"$$$/$D$+$N$b$N$O(B `~/.emacs' $B$G9T$J$&$3$H$,I,MW$G$9!#0J2<$K$=$NNc$r<($7$^$9!#(B

 
;;;
;;; Lookup
;;;

;; $B%-!<%P%$%s%I$H%*!<%H%m!<%I$N@_Dj(B
(define-key ctl-x-map "l" 'lookup)
(define-key ctl-x-map "y" 'lookup-region)
(define-key ctl-x-map "\C-y" 'lookup-pattern)
(autoload 'lookup "lookup" nil t)
(autoload 'lookup-region "lookup" nil t)
(autoload 'lookup-pattern "lookup" nil t)

;; $B<+:n%3%^%s%I$rMxMQ$9$k>l9g(B
(define-key help-map "\C-e" 'english-search-pattern)
(autoload 'english-search-pattern "lookup" nil t)

;; $B=i4|2=%U%!%$%k$rJQ99$9$k>l9g(B
(setq lookup-init-file "~/.lookup")


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.5.3 `~/.lookup' $B$N@_Dj(B

`~/.lookup' $B$G<-=q$N@_Dj$r9T$J$$$^$9!#$3$l$^$G@bL@$7$?DL$j$G$9!#(B

 
;;; .lookup --- setup for Lookup                -*- emacs-lisp -*-

;; $B8!:w%(!<%8%'%s%H$N@_Dj(B
(setq lookup-search-agents '((ndeb "/cdrom") (ndspell)))

;; $BJd=u%Q%C%1!<%8$NFI$_9~$_(B
(setq lookup-package-directory "~/emacs/lookup/packages")
(lookup-use-package "ndeb+/cdrom" "mydict")

;; $B%*%W%7%g%s$N@_Dj(B
(lookup-set-dictionary-option "ndeb+/cdrom:EIWA" ':title "$B1QOB<-E5(B")

;; $B30;zMxMQ$N@_Dj(B
(setq lookup-use-bitmap t)

;; $B<+:n%3%^%s%I$NDj5A(B
(defvar english-search-module
  (lookup-new-module '((ndeb "/my/english/dictionary"))))

(defun english-search-pattern (pattern)
  (interactive "sLook up: ")
  (lookup-with-module english-search-module
    (lookup-search-pattern pattern)))

;;; .lookup ends here


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.5.4 $B%5%$%HKh$N6&DL@_Dj(B

Lookup $B$N@_Dj$r%5%$%H$G6&M-$9$k$N$G$"$l$P!"(B`site-start.el' $B%U%!%$%k(B $B$K@_Dj$r2C$($^$9!#<!$N$h$&$J46$8$K$9$l$P$$$$$G$7$g$&!#(B

 
;;;
;;; Lookup Site Start
;;;

;; $B%*!<%H%m!<%I$N@_Dj(B
(autoload 'lookup "lookup" nil t)
(autoload 'lookup-region "lookup" nil t)
(autoload 'lookup-pattern "lookup" nil t)

;; load-hook $B$N@_Dj(B
(add-hook 'lookup-load-hook 'site-start-lookup)

(defun site-start-lookup ()
  ;; $B8!:w%(!<%8%'%s%H$N@_Dj(B
  (setq lookup-search-agents '((ndtp "dserver")))

  ;; $BJd=u%Q%C%1!<%8$N@_Dj(B
  (setq lookup-package-directory "/net/share/emacs/lookup/packages")
  (lookup-use-package "ndtp+dserver" "ourdict")
  )


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.6 $B%;%C%H%"%C%WJQ?t0lMw(B

lookup-init-file
Lookup $B$N=i4|2=%U%!%$%kL>!#%G%U%)%k%H$O(B `~/.lookup'$B!#(B $B$3$N%U%!%$%k$O(B `lookup.el' $B$N%m!<%ID>8e$KFI$_9~$^$l$k!#(B

lookup-load-hook
Lookup $B$N%m!<%I40N;D>8e$K<B9T$5$l$k(B hook$B!#(B lookup-init-file $B$NFI$_9~$_D>8e$K<B9T$5$l$k!#(B

lookup-search-agents
$B8!:w%(!<%8%'%s%H$N@_Dj$N%j%9%H!#(B $B%j%9%H$N3FMWAG$O<!$N7A<0$r<h$k(B:

 
(class location [option...])

class $B$K$O!"%(!<%8%'%s%H$N<oN`$r%7%s%\%k$G;XDj$9$k!#(B location $B$K$O!"%(!<%8%'%s%H$N=j:_$rJ8;zNs$G;XDj$9$k!#(B arg $B$O>JN,2DG=$G!"%(!<%8%'%s%H$KBP$9$kDI2C$N0z?t$r;XDj$9$k!#(B options $B$O>JN,2DG=$G!"F1$8$/DI2C$N%*%W%7%g%s$r;XDj$9$k!#(B

 
$BNc(B: (setq lookup-search-agents
          '((ndtp "dserver" :port 2010)
            (ndeb "/cdrom" :enable ("EIWA"))))

lookup-default-agent-options
$B8!:w%(!<%8%'%s%H$K%G%U%)%k%H$GM?$($k%*%W%7%g%s$N%j%9%H!#(B $B3F%*%W%7%g%s$O!"%?%0$H$J$k%7%s%\%k$H!"CM$H$J$kG$0U$N%*%V%8%'%/%H$H$N(B cons $B$K$h$C$FI=$o$9!#(B

lookup-agent-options-alist
$B8!:w%(!<%8%'%s%H$N%*%W%7%g%s$r@_Dj$9$kO"A[%j%9%H!#(B $B3FMWAG$N(B car $B$K$O%(!<%8%'%s%H(BID("class+location")$B$r;XDj$7!"(B cdr $B$K$O%*%W%7%g%s$N%j%9%H$r;XDj$9$k!#(B

lookup-default-dictionary-options
$B<-=q$K%G%U%)%k%H$GM?$($k%*%W%7%g%s$N%j%9%H!#(B $B3F%*%W%7%g%s$O!"%?%0$H$J$k%7%s%\%k$H!"CM$H$J$kG$0U$N%*%V%8%'%/%H$H$N(B cons $B$K$h$C$FI=$o$9!#(B

lookup-dictionary-options-alist
$B<-=q$N%*%W%7%g%s$r@_Dj$9$kO"A[%j%9%H!#(B $B3FMWAG$N(B car $B$K$O<-=q(BID("class+location:name")$B$r;XDj$7!"(B cdr $B$K$O%*%W%7%g%s$N%j%9%H$r;XDj$9$k!#(B

lookup-package-directory
$BJd=u%Q%C%1!<%8$,<}$a$i$l$k%G%#%l%/%H%j!#(B


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.7 $B%;%C%H%"%C%W4X?t0lMw(B

lookup-set-agent-option id tag value
$B8!:w%(!<%8%'%s%H$N%*%W%7%g%s$r%;%C%H$9$k!#(B id $B$O%(!<%8%'%s%H(BID$B!#(Btag $B$O%*%W%7%g%s$N%?%0!#(B value $B$O%;%C%H$9$kCM!#(B

lookup-set-dictionary-option id tag value
$B<-=q$N%*%W%7%g%s$r%;%C%H$9$k!#(B id $B$O<-=q(BID$B!#(Btag $B$O%*%W%7%g%s$N%-!<!#(B value $B$O%;%C%H$9$kCM!#(B $B$3$N4X?t$O(B lookup-dictionary-options-alist $B$NCM$r=q$-49$($k!#(B

lookup-use-package agent-id package-name
$BJd=u%Q%C%1!<%8$r%m!<%I$9$k!#(B agent-id $B$O!"%Q%C%1!<%8$rE,MQ$9$k%(!<%8%'%s%H(BID$B!#(B package-name $B$O!"%Q%C%1!<%8L>!"$"$k$$$O%Q%C%1!<%8$N@dBP%Q%9!#(B $B@dBP%Q%9$G$J$$>l9g!"%Q%C%1!<%8$OJQ?t(B lookup-package-directory $B$,(B $B<($9%G%#%l%/%H%j$KE83+$7$F$*$/I,MW$,$"$k!#(B $B$3$N4X?t$O(B lookup-agent-options-alist $B5Z$S(B lookup-dictionary-options-alist $B$NCM$r=q$-49$($k!#(B


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by XEmacs shared group account on December, 19 2009 using texi2html 1.65.