[ibus-indic-table/f15] Added patch 770713
anish
anishpatil at fedoraproject.org
Mon Jan 2 10:05:09 UTC 2012
commit 2838a6858f943e7edacc699decaf486a80ea24f8
Author: anish <anish.developer at gmail.com>
Date: Mon Jan 2 15:36:31 2012 +0530
Added patch 770713
bug-770713.patch | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 64 insertions(+), 0 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
More information about the scm-commits
mailing list