aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorJing-Tang Keith Jang <keith@FreeBSD.org>2001-03-16 18:30:15 +0000
committerJing-Tang Keith Jang <keith@FreeBSD.org>2001-03-16 18:30:15 +0000
commit1c8143e936ce957097d18f23f85e29989f9ff423 (patch)
treea5a17bc87ef0d98575b9237be2eaff657c414a86 /chinese
parent4918932f295560f50de748f2ececdde6ad7d1cc7 (diff)
downloadports-1c8143e936ce957097d18f23f85e29989f9ff423.tar.gz
ports-1c8143e936ce957097d18f23f85e29989f9ff423.zip
Add a fix when the dictionaries are looked up in console interactive mode.
Submitted by: splash.bbs@bbs.ee.ttu.edu.tw
Notes
Notes: svn path=/head/; revision=39929
Diffstat (limited to 'chinese')
-rw-r--r--chinese/pyDict/files/patch-aa13
1 files 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):