diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-04-24 18:29:35 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-04-24 18:29:35 +0000 |
commit | 4e8c85a7fa218fc538aaf3a4e08ffa9fd6017a3d (patch) | |
tree | c4b80e2b654ac6a89ac9abececae7ba701b15fac /rc.c | |
parent | [w3m-dev 03181] KEYBIND_SRC was not passed to scripts/Makefile (diff) | |
download | w3m-4e8c85a7fa218fc538aaf3a4e08ffa9fd6017a3d.tar.gz w3m-4e8c85a7fa218fc538aaf3a4e08ffa9fd6017a3d.zip |
[w3m-dev-en 00730] Re: Patch for a more flexible dictionary lookup
* NEWS: rc: use_dictcommand, dictcommand
* main.c (execdict): use url_quote_conv() instead of cURLcode()
* proto.h (cURLcode): deleted
* doc-jp/README.dict: updated
From: Fumitoshi UKAI <ukai@debian.or.jp>
[w3m-dev-en 00729] Re: Patch for a more flexible dictionary lookup
* config.h.dist (DICT): define
* configure (use_dict): default y
* fm.h (DICTCMD): deleted
(UseDictCommand): added
(DictCommand): added
* main.c (execdict): rewrite to use DictCommand, loadGeneralFile()
* rc.c (CMT_USE_DICTCOMMAND): added
(CMT_DICTCOMMAND): added
(params1): use_dictcommand, dictcommand added
* doc/README.dict: updated
From: Tushar Samant <scribble@pobox.com>
Diffstat (limited to 'rc.c')
-rw-r--r-- | rc.c | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: rc.c,v 1.41 2002/03/29 16:39:37 ukai Exp $ */ +/* $Id: rc.c,v 1.42 2002/04/24 18:29:35 ukai Exp $ */ /* * Initialization file etc. */ @@ -148,6 +148,10 @@ static char *config_file = NULL; #endif #define CMT_EXT_DIRLIST "ディレクトリリストに外部コマンドを使う" #define CMT_DIRLIST_CMD "ディレクトリリスト用コマンド" +#ifdef USE_DICT +#define CMT_USE_DICTCOMMAND "辞書引きをCGI経由でおこなう" +#define CMT_DICTCOMMAND "辞書引きコマンドのURL" +#endif /* USE_DICT */ #define CMT_IGNORE_NULL_IMG_ALT "空のIMG ALT属性の時にリンク名を表示する" #define CMT_IFILE "各ディレクトリのインデックスファイル" #define CMT_RETRY_HTTP "URLに自動的に http:// を補う" @@ -283,6 +287,10 @@ static char *config_file = NULL; #endif #define CMT_EXT_DIRLIST "Use external program for directory listing" #define CMT_DIRLIST_CMD "Directory listing command" +#ifdef USE_DICT +#define CMT_USE_DICTCOMMAND "Enable dictionary lookup through CGI" +#define CMT_DICTCOMMAND "URL of dictionary lookup command" +#endif /* USE_DICT */ #define CMT_IGNORE_NULL_IMG_ALT "Ignore IMG ALT=\"\" (display link name)" #define CMT_IFILE "Index file for the directory" #define CMT_RETRY_HTTP "Prepend http:// to URL automatically" @@ -456,6 +464,12 @@ struct param_ptr params1[] = { CMT_EXT_DIRLIST, NULL}, {"dirlist_cmd", P_STRING, PI_TEXT, (void *)&DirBufferCommand, CMT_DIRLIST_CMD, NULL}, +#ifdef USE_DICT + {"use_dictcommand", P_INT, PI_ONOFF, (void *)&UseDictCommand, + CMT_USE_DICTCOMMAND, NULL}, + {"dictcommand", P_STRING, PI_TEXT, (void *)&DictCommand, + CMT_DICTCOMMAND, NULL}, +#endif /* USE_DICT */ {"multicol", P_INT, PI_ONOFF, (void *)&multicolList, CMT_MULTICOL, NULL}, {"alt_entity", P_CHARINT, PI_ONOFF, (void *)&UseAltEntity, CMT_ALT_ENTITY, NULL}, |