From 1c8143e936ce957097d18f23f85e29989f9ff423 Mon Sep 17 00:00:00 2001 From: Jing-Tang Keith Jang Date: Fri, 16 Mar 2001 18:30:15 +0000 Subject: [PATCH] Add a fix when the dictionaries are looked up in console interactive mode. Submitted by: splash.bbs@bbs.ee.ttu.edu.tw --- chinese/pyDict/files/patch-aa | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/chinese/pyDict/files/patch-aa b/chinese/pyDict/files/patch-aa index b2d8ef7bbaad..ae698c8365dd 100644 --- a/chinese/pyDict/files/patch-aa +++ b/chinese/pyDict/files/patch-aa @@ -1,5 +1,5 @@ ---- dict.py.orig Wed Oct 4 14:37:47 2000 -+++ dict.py Wed Oct 4 15:03:58 2000 +--- dict.py.orig Mon Sep 18 07:31:48 2000 ++++ dict.py Sat Mar 17 02:23:23 2001 @@ -252,7 +252,7 @@ def execute(self,word): # English to Chinese # move self.index to top @@ -18,6 +18,15 @@ if input == None: inp = raw_input('word:') else: +@@ -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: @@ -532,7 +532,7 @@ def console_c_dict(input=None):