orca.speechgenerator (version 1965, $Date$)
index
/usr/lib/python2.5/site-packages/orca/speechgenerator.py

Utilities for obtaining speech utterances for objects.  In general,
there probably should be a singleton instance of the SpeechGenerator
class.  For those wishing to override the speech generators, however,
one can create a new instance and replace/extend the speech generators
as they see fit.

 
Modules
       
orca.atspi
orca.debug
math
orca.orca_state
orca.rolenames
orca.settings
orca.util

 
Classes
       
SpeechGenerator

 
class SpeechGenerator
    Takes accessible objects and produces a string to speak for
those objects.  See the getSpeech method, which is the primary
entry point.  Subclasses can feel free to override/extend the
speechGenerators instance field as they see fit.
 
  Methods defined here:
__init__(self, script)
getSpeech(self, obj, already_focused)
Get the speech for an Accessible object.  This will look
first to the specific speech generators and then to the
default speech generator.  This method is the primary method
that external callers of this class should use.
 
Arguments:
- obj: the object
- already_focused: False if object just received focus
 
Returns a list of utterances to be spoken.
getSpeechContext(self, obj, stopAncestor=None)
Get the speech that describes the names and role of
the container hierarchy of the object, stopping at and
not including the stopAncestor.
 
Arguments:
- obj: the object
- stopAncestor: the anscestor to stop at and not include (None
  means include all ancestors)
 
Returns a list of utterances to be spoken.

 
Data
        __copyright__ = 'Copyright (c) 2005-2006 Sun Microsystems Inc.'
__date__ = '$Date$'
__id__ = '$Id$'
__license__ = 'LGPL'
__version__ = '$Revision$'