diff options
author | sada <sada@FreeBSD.org> | 2000-10-15 08:20:24 +0800 |
---|---|---|
committer | sada <sada@FreeBSD.org> | 2000-10-15 08:20:24 +0800 |
commit | 475b6a399abbac51e370ed95e5ff552d3355cfd3 (patch) | |
tree | 09b36a2d212947c48c96f8b48824574a7c8d3de0 /chinese/pyDict/files | |
parent | 198c67ec5d218cd87d7843e6597128cde7c4e862 (diff) | |
download | freebsd-ports-gnome-475b6a399abbac51e370ed95e5ff552d3355cfd3.tar.gz freebsd-ports-gnome-475b6a399abbac51e370ed95e5ff552d3355cfd3.tar.zst freebsd-ports-gnome-475b6a399abbac51e370ed95e5ff552d3355cfd3.zip |
New port: chinese/pyDict.
From pkg-descr:
pyDict is a Chinese(Big5) <-> English dictionary, written in Python.
It can be used as a console app or X11 window(with -x option). The
data is prepared by TurboLinux in simplified Chinese, then converted
to traditional Chinese by CLE(Chinese Linux Extension) team.
PR: ports/14643
Submitted by: Jing-Tang Keith Jang <keith@freebsd.sinica.edu.tw>
Diffstat (limited to 'chinese/pyDict/files')
-rw-r--r-- | chinese/pyDict/files/gtkrc.zh_TW.big5.sample | 6 | ||||
-rw-r--r-- | chinese/pyDict/files/patch-aa | 38 |
2 files changed, 44 insertions, 0 deletions
diff --git a/chinese/pyDict/files/gtkrc.zh_TW.big5.sample b/chinese/pyDict/files/gtkrc.zh_TW.big5.sample new file mode 100644 index 000000000000..205a26cb8b7f --- /dev/null +++ b/chinese/pyDict/files/gtkrc.zh_TW.big5.sample @@ -0,0 +1,6 @@ +style "default" { + fontset = "-adobe-helvetica-medium-r-normal--14-100-100-100-p-76-iso8859-1,\ + -*-medium-r-normal--14-*-*-*-*-*-big5-0" +} +class "GtkWidget" style "default" + diff --git a/chinese/pyDict/files/patch-aa b/chinese/pyDict/files/patch-aa new file mode 100644 index 000000000000..b2d8ef7bbaad --- /dev/null +++ b/chinese/pyDict/files/patch-aa @@ -0,0 +1,38 @@ +--- dict.py.orig Wed Oct 4 14:37:47 2000 ++++ dict.py Wed Oct 4 15:03:58 2000 +@@ -252,7 +252,7 @@ + def execute(self,word): # English to Chinese + # move self.index to top + self.index = 0 +- command = g_command + ' --after-context=20 "^' + word + '.*=.*$" ' + dict_path + lower(word[0]) + '.lib' + '|awk "NR < 19 "' ++ command = g_command + ' -A 20 "^' + word + '.*=.*$" ' + dict_path + lower(word[0]) + '.lib' + '|awk "NR < 19 "' + result_lines = os.popen(command,'r').readlines() + #if result_lines: + if result_lines: +@@ -488,7 +488,7 @@ + + def console_e_dict(input=None): + #set up g_command +- g_command = '/bin/grep --ignore-case' ++ g_command = '/usr/bin/grep --ignore-case' + if input == None: + inp = raw_input('word:') + else: +@@ -532,7 +532,7 @@ + + def console_c_dict(input=None): + #set up g_command +- g_command = '/bin/grep ' ++ g_command = '/usr/bin/grep ' + if input == None: + inp = raw_input('word:') + else: +@@ -603,7 +603,7 @@ + print 'type -e to English-Chinese mode' + + # set up grep command +- g_command = '/bin/grep --ignore-case' ++ g_command = '/usr/bin/grep --ignore-case' + dict_path = '/usr/X11R6/lib/X11/pyDict/' + + # check if there is an DISPLAY environment variable |