Hello, I'm trying to get ndtpd and lookup to allow me to Japanese electronic book (EB) dictionaries. ndtpd seems to be working fine. I can connect to my CD-ROM drive via telnet and list out the contents of the CD without problems. But when I type 'M-x lookup' in xemacs, I get the following error message: Unknown host "ndtpd" I've simply pasted into my .emacs file the elisp code suggested in the lookup documentation: (setq lookup-search-agents '((ndtp "ndtpd") (ndspell))) (custom-set-variables '(line-number-mode t) '(font-lock-mode t nil (font-lock))) (custom-set-faces) Actually, the documentation indicates that "ndtpd" above should be all upper case, but that doesn't work either. I suspect the problem lies there, but I'm not sure what else to specify besides ndtpd. Has anyone tried this successfully? If so, can you tell me what I'm doing wrong? In case it helps, the contents of my ndtpd.conf file are below. Thank you for any pointers. Drew Poulin ###################################################################### # Configuration file for NDTPD and ebHTTPD. # (Copy this file to `ndtpd.conf', and edit it.) ###################################################################### ### Port number `ndtpd' binds. ### (default: ndtp) # ndtp-port ndtp ### Port number `ebhttpd' binds. ### (default: http) # http-port http ### Owner of the server process. ### (default: none) user ndtpuser ### Group of the server process. ### (default: none) group ndtpgrp ### How many clients can be connected to the server at the same time. ### (default: 1) # max-clients 1 ### Which hosts can or cannot connect to the server. ### (default: none) hosts 127.0.0.1 hosts ::1 hosts !? hosts toshi.transcomjapan.com ### Timeout seconds until the server disconnects an idle connection. ### (default: 900) # timeout 900 ### Path to a working directory. ### Please create the directory and make it be writable for the server ### processes before executing the server. ### (default: /usr/local/var/ndtpd) work-path /usr/local/var/ndtpd ### How many hit entries the server tries to find at a search. ### (default: 50) # max-hits 50 ### The maximum size of text the server may send as a response to ### a client. ### (default: 32768) # max-text-size 32768 ### Syslog facility ### (default: daemon) syslog-facility local0 ### ### Book entry ### begin book ### Name of the book. ### (required) name meddic ### Title of the book. ### (required) title meddic ### Path to a top directory of the book. ### (required) path /mnt/cdrom ### Path to a top directory of the appdendix data of the book. ### (default: none) appendix-path /usr/local/share/eb/appendix/meddic ### How many clients can access the book at the same time. ### (default: 1) max-clients 1 ### Which hosts can or cannot access to the book. ### (default: none) hosts 127.0.0.1 hosts ::1 hosts !? hosts toshi.transcomjapan.com ### Aliases. ### (default: none) alias-eiwa ebmed alias-waei ebmedj alias-kojien guidance end ### Add a book group directive (lines between `begin book' and `end'), ### if you want to read another CD-ROM book. A book group directive ### is required for each book.
Drew Poulin <poulin@transcomjapan.com> writes:
I'm trying to get ndtpd and lookup to allow me to Japanese electronic book (EB) dictionaries. ndtpd seems to be working fine. I can connect to my CD-ROM drive via telnet and list out the contents of the CD without problems. But when I type 'M-x lookup' in xemacs, I get the following error message:
Unknown host "ndtpd"
I've simply pasted into my .emacs file the elisp code suggested in the lookup documentation:
(setq lookup-search-agents '((ndtp "ndtpd") (ndspell)))
(custom-set-variables '(line-number-mode t) '(font-lock-mode t nil (font-lock))) (custom-set-faces)
Actually, the documentation indicates that "ndtpd" above should be all upper case, but that doesn't work either. I suspect the problem lies there, but I'm not sure what else to specify besides ndtpd.
Has anyone tried this successfully? If so, can you tell me what I'm doing wrong?
I have not yet tried ndtpd, but the lookup documentation seems to say that you need to add the host name of the NDTP server where you wrote "ndtpd". Probably your machine running the NDTP server isn't called "ndtpd". If you are running the NDTP server on the same machine as XEmacs, try (setq lookup-search-agents '((ndtp "localhost"))) This seems to be the relevant paragraph from the lookup documentation: info> File: lookup.info, Node: ndtp setup, Next: ndtp dictionary, Prev: ndtp prepare, info> Up: ndtp info> info> ndtp の設定 info> ----------- info> info> ndtp は、次のように設定します。 info> info> (ndtp SERVER) info> info> SERVER には NDTP サーバのホスト名を指定します。 info> info> 次のエージェント・オプションが利用できます。 info> info> `:service' info> NDTP のサービス名。 info> `:port' info> NDTP のポート番号。サービス名とポート番号の両方を省略した場合は、サー info> ビス名として "ndtp" が利用されます。 info> `:account' info> サーバへのアカウント。これはログに残るという以上の意味はない。デフォ info> ルトは "<user>@<host>")。 info> `:coding' info> サーバに対する process-coding-system。デフォルトは `euc-jp'。 info> info> 例えば次のようになります。 info> info> (setq lookup-search-agents info> '((ndtp "dserver" :port 2010 :account "kei@bamboo"))) -- Mike Fabian <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。
participants (2)
-
Drew Poulin
-
Mike Fabian