Repository :
http://git.fedorahosted.org/git/?p=ibus-typing-booster.git
On branch : miketmp-debug
---------------------------------------------------------------
commit 5330991c01311850b23eca2d39426ab3e96399c9
Author: Mike FABIAN <mfabian(a)redhat.com>
Date: Thu Feb 20 08:17:03 2014 +0100
MOD5 experiment
---------------------------------------------------------------
ibus-typing-booster/engine/hunspell_table.py | 3 ++-
ibus-typing-booster/hunspell-tables/mr_IN.conf | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/ibus-typing-booster/engine/hunspell_table.py
b/ibus-typing-booster/engine/hunspell_table.py
index d0cf723..3ef28ac 100644
--- a/ibus-typing-booster/engine/hunspell_table.py
+++ b/ibus-typing-booster/engine/hunspell_table.py
@@ -818,7 +818,7 @@ class tabengine (IBus.Engine):
self._editor.insert_string_at_cursor(token)
self._update_ui()
return True
- if key.code >= 32 and (not (key.mask & (IBus.ModifierType.MOD1_MASK |
IBus.ModifierType.CONTROL_MASK))):
+ if key.code >= 32 and (not (key.mask & (IBus.ModifierType.MOD1_MASK |
IBus.ModifierType.CONTROL_MASK | IBus.ModifierType.MOD5_MASK))):
typed_character = IBus.keyval_to_unicode(key.code)
if type(typed_character) != type(u''):
typed_character = typed_character.decode('UTF-8')
@@ -1026,6 +1026,7 @@ class tabengine (IBus.Engine):
typed_character = IBus.keyval_to_unicode(key.code)
if type(typed_character) != type(u''):
typed_character = typed_character.decode('UTF-8')
+ sys.stderr.write("mike: MOD5_MASK=%(bit)s\n" %{'bit':
key.mask & IBus.ModifierType.MOD5_MASK})
self._editor.insert_string_at_cursor(typed_character)
if typed_character and unicodedata.category(typed_character) in
itb_util.categories_to_trigger_immediate_commit:
input_phrase = self._editor.get_transliterated_string()
diff --git a/ibus-typing-booster/hunspell-tables/mr_IN.conf
b/ibus-typing-booster/hunspell-tables/mr_IN.conf
index 9f644dd..3c2b675 100644
--- a/ibus-typing-booster/hunspell-tables/mr_IN.conf
+++ b/ibus-typing-booster/hunspell-tables/mr_IN.conf
@@ -6,7 +6,7 @@ description = This is a Marathi typing booster engine table for Marathi
language
language = mr
author = Anish Patil <apatil(a)redhat.com>
status_prompt = mr
-layout = default
+layout = default[lv3:ralt_switch]
hunspell_dict = mr_IN.dic
hunspell_dict_package = hunspell-mr
ime_name = Marathi - IN (Hunspell)