rpms/scim-python/devel scim-python-0.1.10-shuangpin.patch, NONE, 1.1 scim-python.spec, 1.13, 1.14
Huang Peng (phuang)
fedora-extras-commits at redhat.com
Fri Mar 14 12:37:32 UTC 2008
Author: phuang
Update of /cvs/pkgs/rpms/scim-python/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18010
Modified Files:
scim-python.spec
Added Files:
scim-python-0.1.10-shuangpin.patch
Log Message:
Fix a ShuangPin problem
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: scim-python.spec
===================================================================
RCS file: /cvs/pkgs/rpms/scim-python/devel/scim-python.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- scim-python.spec 10 Mar 2008 06:18:48 -0000 1.13
+++ scim-python.spec 14 Mar 2008 12:36:57 -0000 1.14
@@ -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