[Cle-devel] Re: [Cle-devel]
¤@Ó¥Îawk¨Ó¬d¸ßpydict¦r¨
åÀɪº¤pµ{¦¡
ha shao
cle-devel@linux.org.tw
Fri, 22 Feb 2002 05:19:44 +0000 (UTC)
In article <mailman.1014270785.32257.cle-devel@linux.org.tw>, ³¯«i§Ó wrote:
> I've written an utility used to query the pydict dictionary files,
> and this little program is written in awk script.
> It is nice to do the query job in text mode.Just try it and have fun.
>
It's nice but pydict also do console dictionary lookup. Just
do:
pydict -e test
or
pydict -h
Of course my version of pydict have a bug in console English
lookup. Need the patch:
--- /usr/bin/pydict-real Fri Dec 8 19:06:54 2000
+++ pydict-real Fri Feb 22 13:15:47 2002
@@ -503,7 +503,7 @@
console_c_dict()
return
else:
- command = g_command + " '^" + inp + "=.*$' " + dict_path + lower(word[0]) + '.lib'
+ command = g_command + " '^" + inp + "=.*$' " + dict_path + lower(inp[0]) + '.lib'
result_line = os.popen(command,'r').readline()
#if result_lines:
if result_line:
--
Best regard
hashao