head	1.3;
access;
symbols
	RELEASE_4_8_0:1.2
	RELEASE_5_0_0:1.2
	RELEASE_4_7_0:1.2
	RELEASE_4_6_2:1.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2
	RELEASE_5_0_DP1:1.2
	RELEASE_4_5_0:1.2
	RELEASE_4_4_0:1.2
	RELEASE_4_3_0:1.2
	RELEASE_4_2_0:1.1;
locks; strict;
comment	@# @;


1.3
date	2003.05.10.09.47.23;	author vanilla;	state dead;
branches;
next	1.2;

1.2
date	2001.03.16.18.30.15;	author keith;	state Exp;
branches;
next	1.1;

1.1
date	2000.10.15.00.20.24;	author sada;	state Exp;
branches;
next	;


desc
@@


1.3
log
@o update to 0.2.6.3
o remove files/patch-aa
o make prefix clean
o change MASTER_SITES
o add author's WWW

PR:		ports/51950
Submitted by:	Statue <statue@@freebsd.sinica.edu.tw>
@
text
@--- 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
 		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:
@@@@ -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):
 	#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
@


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

Submitted by:	splash.bbs@@bbs.ee.ttu.edu.tw
@
text
@@


1.1
log
@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>
@
text
@d1 2
a2 2
--- dict.py.orig	Wed Oct  4 14:37:47 2000
+++ dict.py	Wed Oct  4 15:03:58 2000
d21 9
@

