rpms/scim-python/F-8 scim-python-0.1.10-shuangpin.patch, NONE, 1.1 .cvsignore, 1.6, 1.7 scim-python.spec, 1.10, 1.11

Huang Peng (phuang) fedora-extras-commits at redhat.com
Fri Mar 14 12:27:05 UTC 2008


Author: phuang

Update of /cvs/pkgs/rpms/scim-python/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17775

Modified Files:
	.cvsignore scim-python.spec 
Added Files:
	scim-python-0.1.10-shuangpin.patch 
Log Message:
Fix a ShuangPin problem in python-pinyin

scim-python-0.1.10-shuangpin.patch:

--- NEW FILE scim-python-0.1.10-shuangpin.patch ---
diff -up scim-python-0.1.10/python/engine/PinYin/PYParser.py.shuangpin scim-python-0.1.10/python/engine/PinYin/PYParser.py
--- scim-python-0.1.10/python/engine/PinYin/PYParser.py.shuangpin	2008-03-14 20:09:44.000000000 +0800
+++ scim-python-0.1.10/python/engine/PinYin/PYParser.py	2008-03-14 20:09:59.000000000 +0800
@@ -113,6 +113,8 @@ class ShuangPinParser:
 		if len (string) == 1:
 			try:
 				shengmu = self._shengmu_dict[string[0]]
+				if shengmu == "'":
+					shengmu = ""
 			except:
 				raise Exception ("can not parse '%s'" % string.encode ("utf-8"))
 			
@@ -120,6 +122,8 @@ class ShuangPinParser:
 
 		try:
 			shengmu = self._shengmu_dict[string[0]]
+			if shengmu == "'":
+				shengmu = ""
 			yunmu = self._yunmu_dict[string[1]]
 		except:
 			raise Exception ("can not parse '%s'" % string.encode ("utf-8"))


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/scim-python/F-8/.cvsignore,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- .cvsignore	8 Jan 2008 08:16:12 -0000	1.6
+++ .cvsignore	14 Mar 2008 12:26:29 -0000	1.7
@@ -1 +1,6 @@
-scim-python-0.1.9.tar.bz2
+scim-python-0.1.10.tar.gz
+pinyin-database-0.1.10.5.tar.bz2
+xingma-cangjie5-0.1.10.tar.bz2
+xingma-erbi-qingsong-0.1.10.tar.bz2
+xingma-wubi86-0.1.10.tar.bz2
+xingma-zhengma-0.1.10.tar.bz2


Index: scim-python.spec
===================================================================
RCS file: /cvs/pkgs/rpms/scim-python/F-8/scim-python.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- scim-python.spec	10 Mar 2008 10:37:41 -0000	1.10
+++ scim-python.spec	14 Mar 2008 12:26:30 -0000	1.11
@@ -3,7 +3,7 @@
 %define mod_path scim-0.1
 Name:       scim-python
 Version:    0.1.10
-Release:    1%{?dist}
+Release:    2%{?dist}
 Summary:    Python wrapper for Smart Common Input Method platform
 
 License:    LGPLv2+
@@ -20,6 +20,8 @@
 BuildRequires:  scim-devel, gettext-devel, libtool, python-devel, pygtk2-devel, perl(XML::Parser)
 Requires:   scim, pygtk2
 
+Patch0:     scim-python-0.1.10-shuangpin.patch
+
 %description
 Python wrapper for Smart Common Input Method platform.
 
@@ -97,6 +99,7 @@
 %prep
 %setup -q -a1 -a2 -a3 -a4 -a5
 mv py.db python/engine/PinYin/
+%patch0 -p1 -b .01-shuangpin
 
 %build
 %configure --disable-static --enable-english-writer --enable-pinyin
@@ -209,6 +212,9 @@
 
 
 %changelog
+* Fri Mar 14 2008 Huang Peng <shawn.p.huang at gmail.com> - 0.1.10-2
+- Fix ShuangPin problem in python-pinyin.
+
 * Mon Mar 10 2008 Huang Peng <shawn.p.huang at gmail.com> - 0.1.10-1
 - Update to 0.1.10.
 




More information about the fedora-extras-commits mailing list