[orca-list] IBus and Orca



Dear list,
    We have developed a input system name IBus-Sharada-Braille which
use six key combination of braille. Everything is fine except that
orca is not announcing the insertion and deletion of string having
length greater than one. I found that it can be enabled by editing
onTextInsert,onTextDeletion functions in orca/script/default.py. my
sample patch is attached at the end of this mail. This will also
announce the cutting and pasting of text so i think we have to limit
it with certain length. please let me know if there any other
obligation.

Read more about IBus-Sharada-Braille : http://ibus-sharada-braille.blogspot.in/

expecting your response Nalin.x.Linux

diff --git a/scripts/default.py b/scripts/default.py
index e0b17d3..daab534 100644
--- a/scripts/default.py
+++ b/scripts/default.py
@@ -2553,6 +2553,8 @@ class Script(script.Script):
         # experiences.]]]

         self.updateBraille(event.source)
+        msg = event.any_data + " Deleted";
+        self.speakMessage(msg)

         # The any_data member of the event object has the deleted text in
         # it - If the last key pressed was a backspace or delete key,
@@ -2629,6 +2631,11 @@ class Script(script.Script):

         self.updateBraille(event.source)

+        if(len(event.any_data) > 1):
+                      msg = event.any_data;
+                      self.speakMessage(msg)
+
+
         # If the last input event was a keyboard event, check to see if
         # the text for this event matches what the user typed. If it does,
         # then don't speak it.

expecting your response Nalin.x.Linux

--
Free Software Free Society


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]