Re: [orca-list] Accessible Chess - Orca and XBoard



I am a bit unclear about what we need to do. 
I think I do correctly understand that the xboard code has been updated since your last post, so that does 
need to be rebuilt/will do.
As for as the orca patch: you seem to say that we need to change something in orca besides apply the patch to 
scripts/default.py, but maybe I am not 
getting that right. 
Is all we need to do is patch default.py?
Thanks/looking very forward to this.

-- 
     B.H.
   Registerd Linux User 521886


  Nalin.x.Linux wrote:
Fri, Jul 10, 2015 at 10:38:32AM +0530

   Dear orca developers,
         I am working on XBoard Gtk to make it accessible. The version that
   use TTS to announce the information is being tested by my visually
   impaired friends.  As you know, using TTS is not a good method, so I just
   created a solution by setting accessible description, so that screen
   reader can say it. Unfortunately this demands a minor change in orca
   screen reader code also(scripts/default.py). The patch is attached with
   this mail. Maybe we have to provide a check box option in orca to
   enable this. 
   Quick way to compile accessible XBoard :
   sudo apt-get install fairymax texinfo libgtk-3-dev build-essential
   git clone git://[1]git.savannah.gnu.org/xboard.git
   git checkout gtk3
   autoreconf --install
   ./configure --prefix=/usr
   make
   sudo make install   
   Please let me this amendment is feasible or not. Expecting an early reply
   Nalin. 

References

   Visible links
   1. http://git.savannah.gnu.org/xboard.git

diff --git a/default.py b/default.py
index e0b17d3..63f4131 100644
--- a/default.py
+++ b/default.py
@@ -531,6 +531,8 @@ class Script(script.Script):
             self.onMouseButton
         listeners["object:property-change:accessible-name"] = \
             self.onNameChanged
+        listeners["object:property-change:accessible-description"] = \
+            self.onDescriptionChanged
         listeners["object:text-caret-moved"]                = \
             self.onCaretMoved
         listeners["object:text-changed:delete"]             = \
@@ -2299,6 +2301,12 @@ class Script(script.Script):
         utterances.append(messages.TEXT_SELECTED)
         speech.speak(utterances)
 
+    def onDescriptionChanged(self, event):
+        """Callback for object:property-change:accessible-description events."""
+        obj = event.source
+        if self.utilities.isSameObject(obj, orca_state.locusOfFocus):
+                    speech.speak(obj.description)
+
     def onNameChanged(self, event):
         """Callback for object:property-change:accessible-name events."""
 

_______________________________________________
orca-list mailing list
orca-list gnome org
https://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca.
The manual is at http://library.gnome.org/users/gnome-access-guide/nightly/ats-2.html
The FAQ is at http://live.gnome.org/Orca/FrequentlyAskedQuestions
Log bugs and feature requests at http://bugzilla.gnome.org
Find out how to help at http://live.gnome.org/Orca/HowCanIHelp

Attachment: signature.asc
Description: PGP signature



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