Add a fix when the dictionaries are looked up in console interactive mode.

Submitted by:	splash.bbs@bbs.ee.ttu.edu.tw
This commit is contained in:
Jing-Tang Keith Jang 2001-03-16 18:30:15 +00:00
parent 4918932f29
commit 1c8143e936
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39929

View file

@ -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):