[Cle-devel] 一個用awk來查詢pydict字典檔的小程式
cle-devel@linux.org.tw
cle-devel@linux.org.tw
Fri, 22 Feb 2002 16:01:38 +0800
請問一下我要如何加入這個patch,即patch 指令該如何下?
---------------------------------------------------------------------------------------------------------------------
呂俊興
Samuel Lu
Taipei , Taiwan
Tel : 29998261#876
Fax : 29998497
samuel.lu@comtrendcorp.com
On Fri, 22 Feb 2002 05:19:44 +0000 (UTC)
ha shao <hashao@-hashao.-hypermat.-com> wrote:
> In article <mailman.1014270785.32257.cle-devel@linux.org.tw>, 陳勇志
> 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
> _______________________________________________
> Cle-devel mailing list
> Cle-devel@linux.org.tw
> https://www.linux.org.tw/mailman/listinfo/cle-devel