[ibus-indic-table/f16] Fixed bug #770713
anish
anishpatil at fedoraproject.org
Mon Jan 2 09:51:05 UTC 2012
commit acf23d2c016f48bb8f12304d70de0ffe6daaeca4
Author: anish <anish.developer at gmail.com>
Date: Mon Jan 2 15:20:40 2012 +0530
Fixed bug #770713
bug-770713.patch | 64 +++++++++++++++++++++++++++++++++++++++++++++++++
ibus-indic-table.spec | 7 ++++-
2 files changed, 70 insertions(+), 1 deletions(-)
---
diff --git a/bug-770713.patch b/bug-770713.patch
new file mode 100644
index 0000000..339a558
--- /dev/null
+++ b/bug-770713.patch
@@ -0,0 +1,64 @@
+Only in ibus-indic-table-1.3.1/engine: factory.pyc
+diff -rup ibus-indic-table-1.3.1-old/engine/indic_table.py ibus-indic-table-1.3.1/engine/indic_table.py
+--- ibus-indic-table-1.3.1-old/engine/indic_table.py 2012-01-02 12:26:49.796756848 +0530
++++ ibus-indic-table-1.3.1/engine/indic_table.py 2012-01-02 14:57:32.585963181 +0530
+@@ -917,7 +917,16 @@ class editor(object):
+ pstr += self._ins_keys[ch]
+ else:
+ pstr += ch
+-
++ else:
++ if not self.is_down_press:
++ temp_pstr = ''
++ for ch in istr:
++ if ch in self._ins_keys:
++ temp_pstr += self._ins_keys[ch]
++ else:
++ temp_pstr += ch
++ pstr = temp_pstr
++
+ self.clear()
+ return (True,pstr,istr)
+ else:
+@@ -1595,15 +1604,34 @@ class tabengine (ibus.EngineBase):
+ self.commit_string (sp_res[1]+" ")
+ #self.add_string_len(sp_res[1])
+ alphabates = [ self._editor._deparser(item) for item in self._editor._k_list ]
++
++ caret_alphabates = ''
++ str_alphabates = ''
+ if sp_res[2]:
+- alphabates.extend(sp_res[2])
+- str_alphabates = ''.join(alphabates)
+- caret_alphabates = ''.join(self._editor._caret_chars)
++ if self._editor._is_inscript:
++ if not self._editor.is_down_press:
++ str_alphabates = sp_res[2]
++ else:
++ alphabates.extend(sp_res[2])
++ else:
++ # This is for phonetic
++ alphabates.extend(sp_res[2])
++
++ if self._editor._is_inscript:
++ if not self._editor.is_down_press:
++ pass
++ else:
++ str_alphabates = ''.join(alphabates)
++ caret_alphabates = ''.join(self._editor._caret_chars)
++ else:
++ str_alphabates = ''.join(alphabates)
++ caret_alphabates = ''.join(self._editor._caret_chars)
+ if caret_alphabates:
+ new_str_alphabates = str_alphabates + caret_alphabates
+ self.db.check_phrase (sp_res[1], new_str_alphabates)
+ else:
+ self.db.check_phrase (sp_res[1], str_alphabates)
++ self._editor.is_down_press = False
+ self._editor._k_list = []
+ self._editor._caret_chars = []
+ # self.db.check_phrase (sp_res[1], sp_res[2])
+Only in ibus-indic-table-1.3.1/engine: indic_table.py~
+Only in ibus-indic-table-1.3.1/engine: indic_table.pyc
+Only in ibus-indic-table-1.3.1/engine: tabdict.pyc
+Only in ibus-indic-table-1.3.1/engine: tabsqlitedb.pyc
diff --git a/ibus-indic-table.spec b/ibus-indic-table.spec
index 346cdde..ea9eeb8 100644
--- a/ibus-indic-table.spec
+++ b/ibus-indic-table.spec
@@ -1,6 +1,6 @@
Name: ibus-indic-table
Version: 1.3.1
-Release: 19%{?dist}
+Release: 20%{?dist}
Summary: The Table engine for IBus platform
License: LGPLv2+
Group: System Environment/Libraries
@@ -23,6 +23,7 @@ Patch13: bug-750730.patch
Patch14: bug-750727.patch
Patch15: bug-759356-759354.patch
Patch16: bug-770032-770033.patch
+Patch17: bug-770713.patch
Requires: ibus
BuildRequires: ibus-devel
BuildArch: noarch
@@ -49,6 +50,7 @@ The Indic Table engine for IBus platform.
%patch14 -p1
%patch15 -p1
%patch16 -p1
+%patch17 -p1
%build
%configure --disable-static --disable-additional
@@ -69,6 +71,9 @@ make DESTDIR=${RPM_BUILD_ROOT} NO_INDEX=true install pkgconfigdir=%{_datadir}/pk
%{_datadir}/pkgconfig/%{name}.pc
%changelog
+* Mon Jan 01 2012 Anish Patil <apatil at redhat.com> - 1.3.1-20
+- Fixed bug-770713.patch
+
* Mon Dec 26 2011 Anish Patil <apatil at redhat.com> - 1.3.1-19
- Fixed bug-770032-770033.patch
More information about the scm-commits
mailing list