403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/orca/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/orca/speech_generator.pyo
z#Jc@s!dZdZdZdZdZdZddkZddkZddkZddk	Z	ddk
Z
ddkZddkZddk
Z
ddkZddklZdd	klZdd
klZdddYZegZd
ddYZegZdZdeifdYZdS(s6Utilities for obtaining speech utterances for objects.s$Id:$s$Revision:$s$Date:$s-Copyright (c) 2005-2009 Sun Microsystems Inc.tLGPLiN(t_(tngettext(tC_tPausecBseZdZdZRS(sJA dummy class to indicate we want to insert a pause into an
    utterance.cCsdS(N((tself((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt__init__-s(t__name__t
__module__t__doc__R(((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyR*st	LineBreakcBseZdZdZRS(sYA dummy class to indicate we want to break an utterance into
    separate calls to speak.cCsdS(N((R((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyR5s(RRR	R(((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyR
2st	_generatetSpeechGeneratorcBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZdZdZdZdZdZdZdZdZdddgdZdZdZdZdZd Zd!Z d"Z!d#Z"d$Z#d%Z$d&Z%d'Z&d(Z'd)Z(d*Z)d+Z*d,Z+d-Z,d.Z-d/Z.d0Z/d1Z0d2Z1d3Z2d4Z3d5Z4d6Z5d7Z6d8Z7d9Z8d;d:Z:RS(<sTakes accessible objects and produces a string to speak for
    those objects.  See the generateSpeech method, which is the primary
    entry point.  Subclasses can feel free to override/extend the
    speechGenerators instance field as they see fit.cCstii||ddS(Ntspeech(t	generatort	GeneratorR(Rtscript((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyRKscCs1tii|||i|d<|i|d<dS(sCOther things to make available from the formatting string.
        tvoicetplayN(RRt_addGlobalsRR(RtglobalsDict((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyRNs
cCsTytiti|}Wn0t|toti|}qMd}nX|gS(sReturns an array containing a sound.Sound instance.
        The key can a value to be used to look up a filename in the
        settings.py:sounds dictionary (e.g., a pyatspi.ROLE_* value)
        or just the name of an audio file to use.
        N(tsoundtSoundtsettingstsoundst
isinstancet
basestringtNone(Rtkeyt	soundBite((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyRUs
cKs|i||S(N(tgenerate(Rtobjtargs((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pytgenerateSpeechdscKsOg}|id|i}|tijo|i|i||n|S(swA convenience method to prevent the pyatspi.ROLE_PARAGRAPH role
        from being spoken. In the case of a pyatspi.ROLE_PARAGRAPH
        role, an empty array will be returned. In all other cases, the
        role name will be returned as an array of strings (and
        possibly voice and audio specifications).  Note that a 'role'
        attribute in args will override the accessible role of the
        obj. [[[WDW - I wonder if this should be moved to
        _generateRoleName.  Or, maybe make a 'do not speak roles' attribute
        of a speech generator that we can update and the user can
        override.]]]
        trole(tgettgetRoletpyatspitROLE_PARAGRAPHtextendt_generateRoleName(RRR tresultR"((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateTextRolems
cKsOg}|id|i}|tijo|iti||n|S(s7Returns the role name for the object in an array of strings (and
        possibly voice and audio specifications), with the exception
        that the pyatspi.ROLE_UNKNOWN role will yield an empty array.
        Note that a 'role' attribute in args will override the
        accessible role of the obj.
        R"(R#R$R%tROLE_UNKNOWNtappendt	rolenamestgetSpeechForRoleName(RRR R)R"((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyR(s
cKs|i||S(syReturns the role name for the object in an array of strings (and
        possibly voice and audio specifications), with the exception
        that the pyatspi.ROLE_UNKNOWN role will yield an empty array.
        Note that a 'role' attribute in args will override the
        accessible role of the obj.  This is provided mostly as a
        method for scripts to call.
        (R((RRR ((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pytgetRoleNamescKsL|ii|}g}x-|D]%}|i||}|i|qW|S(sReturns, as an array of strings (and possibly voice
        specifications), all the labels which are underneath the obj's
        hierarchy and which are not in a label for or labelled by
        relation.
        (t_scripttfindUnrelatedLabelst
_generateNameR'(RRR tlabelsR)tlabeltname((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateUnrelatedLabelsscKsE|i||}|p(y|i|iiWqAqAXn|S(sReturns an array of strings (and possibly voice and audio
        specifications) used especially for handling embedded objects.
        This either is the label or name of the object or the name of
        the application for the object.
        (t_generateLabelOrNameR,tgetApplicationR5(RRR R)((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateEmbeddedscKsLg}|iitio)|i|iiiddddn|S(s
Returns an array of strings (and possibly voice and audio
        specifications) that represent the multiselectable state of
        the object.  This is typically for check boxes. If the object
        is not multiselectable, an empty array will be returned.
        tmodeR
t
stringTypetmultiselect(tgetStatetcontainsR%tSTATE_MULTISELECTABLER,R0t
formattingt	getString(RRR R)((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateMultiselectableStatesc	Ks{g}|ii|}|pI|i|i||i|i||i|ii|nti|}|ddjoD|did}|it	dh|dd6|d	d6nt	d
|d}|ii|}|p|ii
|}n|o|d|7}n|i||io8|dit
ijo|i|i|dn|S(
sReturns an array of strings (and possibly voice and audio
        specifications) that represent the protocol of the URI of
        the link associated with obj.
        itftptftpstfileit/s%(uri)s link to %(file)sturiis%s linkt (RCRDsfile(R0tgetURIR't_generateLabelR(R,tgetDisplayedTextturlparsetsplitRtgetLinkBasenamet
childCountR$R%t
ROLE_IMAGE(	RRR R)tlink_urit
link_uri_infotfileNamet
linkOutputttext((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateLinkInfos,
$c
KsUg}|ii|}|oti|}n|S|ii}|oti|}|d|djoC|d|djo|itdqM|itdqQ|did}|did}	t|djoN|	djoA|d|	djo,|d|	djo|itdqQ|itdn|S(	sReturns an array of strings (and possibly voice and audio
        specifications) that describe the site (same or different)
        pointed to by the URI of the link associated with obj.
        iis	same pages	same sitet.iisdifferent site(R0RIRLtgetDocumentFrameURIR,RRMtlen(
RRR R)RQRRtdoc_uritdoc_uri_infot
linkdomaint	docdomain((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateSiteDescriptions( cKs6g}d}|ii|}|p|Sy=ti|}y|id}Wntj
onXWnttitfj
onX|ot	|}|djo!|i
tdd||q2|djo%|i
tdt
|dq2|djo%|i
td	t
|d
q2n|S(sReturns an array of strings (and possibly voice and audio
        specifications) that represent the size (Content-length) of
        the file pointed to by the URI of the link associated with
        obj.
        tsContent-lengthi's%d bytes%d bytesi@Bs%.2f kilobytesgMbP?s%.2f megabytesgư>(R0RIturllib2turlopentinfotKeyErrort
ValueErrortURLErrortOSErrortintR,RRtfloat(RRR R)t
sizeStringRGtxtsize((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateFileSize/s,	
!
%
)cKsJg}y|i}Wnn'Xti|d<|i|i|||S(sReturns an array of strings (and possibly voice and audio
        specifications) that represent the image on the the object, if
        it exists.  Otherwise, an empty array is returned.
        R"(t
queryImageR%RPR'R(RRR R)timage((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateImageXs
c
Ksg}|oy|idd}y
|i}Wn
d}nX|itijp#|io&|iitijo
y|i}Wn
d}nX|oQ|itijp|itijo%|ii	|}|i
|}nd}y|ii}WnqX|ii	|}|i
|}	|	djo@||	jo3|	|jp|i|jo|i||}qqn|S(sReturns an array of strings (and possibly voice and audio
        specifications) that represent the row header for an object
        that is in a table, if it exists and if it is different from
        the previous row header.  Otherwise, an empty array is
        returned.  The previous row header is determined by looking at
        the row header for the 'priorObj' attribute of the args
        dictionary.  The 'priorObj' is typically set by Orca to be the
        previous object with focus.
        tpriorObjiiN(R#RtparentR$R%tROLE_TABLE_CELLt
ROLE_TABLEt
queryTableR0tgetCellIndext
getRowAtIndext_generateRowHeader(
RRR R)RptpriorParentttabletindextoldRowtnewRow((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateNewRowHeaderms>


#



c
Ksg}|o|idtoy|idd}y
|i}Wn
d}nX|itijp#|io&|iitijo
y|i}Wn
d}nX|oQ|itijp|itijo%|i	i
|}|i|}nd}y|ii}WnqX|i	i
|}|i|}	|	djo@||	jo3|	|jp|i|jo|i||}qqn|S(sReturns an array of strings (and possibly voice and audio
        specifications) that represent the column header for an object
        that is in a table, if it exists and if it is different from
        the previous column header.  Otherwise, an empty array is
        returned.  The previous column header is determined by looking
        at the column header for the 'priorObj' attribute of the args
        dictionary.  The 'priorObj' is typically set by Orca to be the
        previous object with focus.
        t
readingRowRpiiN(
R#tFalseRRqR$R%RrRsRtR0RutgetColumnAtIndext_generateColumnHeader(
RRR R)RpRxRyRztoldColtnewCol((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateNewColumnHeaders>


#



cKsg}|id|}|i|i|||i|||o5tio+|idto|it	dn|S(shOrca has a feature to automatically read an entire row of a table
        as the user arrows up/down the roles.  This leads to complexity in
        the code.  This method is used to return an array of strings
        (and possibly voice and audio specifications) for a single table
        cell itself.  The string, 'blank', is added for empty cells.
        tREAL_ROLE_TABLE_CELLR~tblank(
t
_overrideRoleR'Rt_restoreRoleRtspeakBlankLinesR#RR,R(RRR R)toldRole((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateRealTableCellscKs-g}t}d\}}}|o9|i}|i}|io|ii}q[n|tijo*|tijp|tijo
t	}n|o't
iot
iidjo
t}n|ti
jo|tijo
t	}n|o5|o.|itio|itddn|S(sjReturns an array of strings (and possibly voice and audio
        specifications) if this is an icon within an layered pane or a
        table cell within a table or a tree table and the item is
        focused but not selected.  Otherwise, an empty array is
        returned.  [[[WDW - I wonder if this string should be moved to
        settings.py.]]]
        tLefttRightt	tablecellsnot selectedN(NNN(RR(RRR$R=RqR%RrtROLE_TREE_TABLERstTruet
orca_statetlastNonModifierKeyEventtevent_stringt	ROLE_ICONtROLE_LAYERED_PANER>tSTATE_SELECTEDR,R(RRR R)tcheckIfSelectedtobjRolet
parentRoletstate((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateUnselectedCells.

	


cKsg}d}|iitijo
|i}n|i}y|i}Wn6|idto|iiidd}qn"X|ii	|}|i
|}|djo|itd|dn|S(sReturns an array of strings (and possibly voice and audio
        specifications) reflecting the column number of a cell.
        itguessCoordinatest
lastColumnis	column %di(
RqR$R%RrRtR#RR0tpointOfReferenceRuRR,R(RRR R)tcolRqRyRz((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateColumn
s
	 
cKsg}d}|iitijo
|i}n|i}y|i}Wn6|idto|iiidd}qn"X|ii	|}|i
|}|djo|itd|dn|S(sReturns an array of strings (and possibly voice and audio
        specifications) reflecting the row number of a cell.
        iRtlastRowisrow %di(
RqR$R%RrRtR#RR0RRuRvR,R(RRR R)trowRqRyRz((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateRow$s
	 
c	Ksg}|iitijo
|i}n|i}y|i}Wn
d}nX|ii|}|i|}|i	|}|i
tdh|dd6|id6|i
tdh|dd6|i
d6|S(sReturns an array of strings (and possibly voice and audio
        specifications) reflecting the position of the cell in terms
        of its column number, the total number of columns, its row,
        and the total number of rows.
        scolumn %(index)d of %(total)diRzttotalsrow %(index)d of %(total)dN(RqR$R%RrRtRR0RuRRvR,RtnColumnstnRows(	RRR R)RqRyRzRR((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateColumnAndRow;s$
	
c	Ksg}titijo|itijo
|}n%|ii|tigtig}y|i	i
}WnqX|ii|}|i|}|i
|}|d|ijo+|d|ijo|itdqn|S(sReturns an array of strings (and possibly voice and audio
        specifications) indicating that this cell is the last cell
        in the table.
        isEnd of table(RtspeechVerbosityLeveltVERBOSITY_LEVEL_VERBOSER$R%RrR0tgetAncestort
ROLE_FRAMERqRtRuRvRRRR,R(	RRR R)tcellRyRzRR((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateEndOfTableIndicatorYs"
	(cKs`g}d}|ii|}|o
|i}n|p|ii|}n|i||S(sSReturns an array of strings (and possibly voice and audio
        specifications) used especially for handling terminal objects.
        This either is the name of the frame the terminal is in or the
        displayed label of the terminal.  [[[WDW - it might be nice
        to return an empty array if this is not a terminal.]]]
        N(RR0tgetFrameR5tgetDisplayedLabelR,(RRR R)ttitletframe((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateTerminal{s

tstyletweightt	underlinecCsd}|i}|ii|}|i|}	|	do?|ii|	d}
x&|
iD]}|
|||<qaWn|o]x|D]}ti|}||jo||}
ti|
}|
o|djo5t|
djo|d7}|td7}qq|djo)|
djo|d7}||7}qq|d	jo)|
d
jo|d7}||7}qq|d7}||d|7}qqqW|ii	||djo|d7}|td7}qn|S(syHelper function that returns a string containing the
        given attributes from keys for the given character.
        R_iRiRHtboldRtnoneRtnormaltlink(
tgetDefaultAttributesR0tattributeStringToDictionaryt
getAttributestkeysttext_attribute_namestgetTextAttributeNameRgRtgetLinkIndex(RRRUt
textOffsett	lineIndexRt	attribStrtdefaultAttributestattributesDictionarytcharAttributestcharDictRtlocalizedKeyt	attributetlocalizedValue((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_getCharacterAttributessF	












cCsy|iidSWnnX|i}|i}d}t}|i}|ii|\}}|p|o%t}|ii|\}}	}
n|i	|it
i\}}	}
t|oZ|i
d}|ii|jo|ii||	|
}n|ii|}|}nN|i	|t
i}
|
ddjo'|	|jotiotd}n||	|
|g|iid<|iidS(sReturns [textContents, startOffset, endOffset, selected] as
        follows:

        A. if no text on the current line is selected, the current line
        B. if text is selected, the selected text
        C. if the current line is blank/empty, 'blank'

        Also sets up a 'textInformation' attribute in
        self._script.generatorCache to prevent computing this
        information repeatedly while processing a single event.
        ttextInformationR_sUTF-8is
R(R0tgeneratorCachet	queryTexttcaretOffsetRtgetNSelectionsthasTextSelectionsRtgetAllSelectedTexttgetTextAtOffsetR%tTEXT_BOUNDARY_LINE_STARTRYtdecodetEMBEDDED_OBJECT_CHARACTERt
expandEOCstadjustForRepeatstTEXT_BOUNDARY_CHARRRR(RRttextObjRttextContentstselectedtnSelectionstcurrenttothertstartOffsett	endOffsettlinetunicodeTexttchar((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_getTextInformations:
	

	
cKs[y|i}Wntj
ogSX|i|\}}}}|djogS|gS(sReturns an array of strings (and possibly voice and audio
        specifications) containing the text content.  This requires
        _generateTextInformation to have been called prior to this method.
        R_(RtNotImplementedErrorR(RRR RURRRR((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateTextContents
c
Ks:y|i}Wntj
ogSX|i|\}}}}d}d}	|}
xtdt|D]}}|i|||
|}|o:||	jo-|o|d7}n||7}|d7}n|}	|||7}|
d7}
qjW|i|||ddg}|o#|o|d7}n||7}n|gS(s;Returns an array of strings (and possibly voice and audio
        specifications) containing the text content, obtained from the
        'textInformation' value, with character attribute information
        mixed in.  This requires _generateTextInformation to have been
        called prior to this method.
        R_is ; RHisparagraph-styleN(RRRRtrangeRYR(
RRR RURRRRtnewLinetlastAttribsRtitattribs((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt"_generateTextContentWithAttributes&s:
	c	KsLg}|i|\}}}}|o tdd}|i|n|S(sReturns an array of strings (and possibly voice and audio
        specifications) that says if any of the text for the entire
        object is selected. [[[WDW - I wonder if this string should be
        moved to settings.py.]]]
        RUR(RRR,(	RRR R)RRRRRU((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateAnyTextSelectionPsc	Ksg}y|i}WnnrX|i}|djoX|idti\}}}|djo)|t|jotddg}qn|S(sReturns an array of strings (and possibly voice and audio
        specifications) that says if all the text for the entire
        object is selected. [[[WDW - I wonder if this string should be
        moved to settings.py.]]]
        iiRUR(RRRR%RRYR(	RRR R)RtnoOfSelectionststringRR((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateAllTextSelectioncs
 cKsqg}|ii|idd}|ii|}||jo*|djo|i|i||n|S(sReturns an array of strings (and possibly voice and audio
        specifications) that represents the tree node level of the
        object, or an empty array if the object is not a tree node or
        if the node level is not different from the 'priorObj'
        'priorObj' attribute of the args dictionary.  The 'priorObj'
        is typically set by Orca to be the previous object with
        focus.
        RpiN(R0tgetNodeLevelR#RR't_generateNodeLevel(RRR R)toldLeveltnewLevel((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateNewNodeLevels	cKshg}y|i}Wntj
on:X|i|i|id}td|}|i||S(sReturns an array of strings (and possibly voice and audio
        specifications) that represents the percentage value of the
        object.  This is typically for progress bars. [[[WDW - we
        should consider returning an empty array if there is no value.
        gY@s
%d percent(t
queryValueRtcurrentValuetmaximumValuetminimumValueRR,(RRR R)tvaluetpercentValuet
percentage((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generatePercentages
cKs,g}|idd}|o	|itijod}t}|i}x|D]}|o)|itijo|i	d}n|oa|iti
joKxHtd|iD]-}	|i	|	}
|
|jot
}PqqWqTqTW|o$|o|i|ii|q(n|S(sReturns an array of strings (and possibly voice and audio
        specifications) that represents the radio button group label
        of the object, or an empty array if the object has no such
        label or if the radio button group is not different from the
        'priorObj' 'priorObj' attribute of the args dictionary.  The
        'priorObj' is typically set by Orca to be the previous object
        with focus.
        RpiN(R#RR$R%tROLE_RADIO_BUTTONRtgetRelationSettgetRelationTypetRELATION_LABELLED_BYt	getTargettRELATION_MEMBER_OFRtgetNTargetsRR,R0RK(RRR R)RptradioGroupLabeltinSameGroupt	relationstrelationRttarget((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateNewRadioButtonGroups0
	
	

!cKsVg}|ii|}t|}|o'tdd||}|i|n|S(s5Returns an array of strings (and possibly voice and audio
        specifications) that represents the number of children the
        object has.  [[[WDW - can we always return an empty array if
        this doesn't apply?]]] [[[WDW - I wonder if this string should
        be moved to settings.py.]]]
        s%d items%d items(R0t
getChildNodesRYRR,(RRR R)t
childNodestchildrent
itemString((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateNumberOfChildrenscKsig}t}x8|D]0}|i}|itiot}PqqW|p|itdn|S(shReturns an array of strings (and possibly voice and audio
        specifications) that says if this object has no showing
        children (e.g., it's an empty table or list).  object has.
        [[[WDW - can we always return an empty array if this doesn't
        apply?]]] [[[WDW - I wonder if this string should be moved to
        settings.py.]]]
        s0 items(RR=R>R%t
STATE_SHOWINGRR,R(RRR R)thasItemstchildR((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateNoShowingChildrens	cKs+g}|ip|itdn|S(shReturns an array of strings (and possibly voice and audio
        specifications) that says if this object has no children at
        all (e.g., it's an empty table or list).  object has.  [[[WDW
        - can we always return an empty array if this doesn't
        apply?]]] [[[WDW - I wonder if this string should be moved to
        settings.py.]]]
        s0 items(ROR,R(RRR R)((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateNoChildrens
cKs.g}|id|itijo
|i}n|i}g}d}d}xo|D]g}|i}	|	itio|d7}|i	|n|	iti
o|id}qWqWWtdd|h|d6|d6}
|i	|
|i	|i
iidd	d
dh|d6|d6|S(sReturns an array of strings (and possibly voice and audio
        specifications) indicating how many items are selected in this
        and the position of the current item. This object will be an icon
        panel or a layered pane.
        R"iis$%(index)d of %(total)d item selecteds%%(index)d of %(total)d items selectedRzRR:R
R;t	iconindex(R#R$R%RRqROR=R>RR,t
STATE_FOCUSEDtgetIndexInParentRR0R@RA(RRR R)ROt
selectedItemsttotalSelectedItemstcurrentItemRRtcountString((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateSelectedItemCounts6"
	



cKs}g}|id|itijo
|i}nxA|D]9}|iitio|i|i	|q<q<W|S(sReturns an array of strings (and possibly voice and audio
        specifications) containing the names of all the selected items.
        This object will be an icon panel or a layered pane.
        R"(
R#R$R%RRqR=R>RR't_generateLabelAndName(RRR R)R((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateSelectedItems8s"
cKsJg}|ii|}|djo!|itdd||n|S(sReturns an array of strings (and possibly voice and audio
        specifications) that says how many unfocused alerts and
        dialogs are associated with the application for this object.
        [[[WDW - I wonder if this string should be moved to
        settings.py.]]]
        is%d unfocused dialogs%d unfocused dialogs(R0tgetUnfocusedAlertAndDialogCountR,R(RRR R)talertAndDialogCount((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateUnfocusedDialogCountHs
c	Ksg}|idd}|idt}|ii||}||jo|i}|o9|itijo#|itijo
|i}nx;|o/|i|jo||joPn|ii	|p|ii
|}|o;|p|o,dti|jo|ii|}n|ot
|ioz|ititigjo|i|i|n|i||itijo|i|i|qqn|i}qWn|ip|S(sEReturns an array of strings (and possibly voice and audio
        specifications) that represent the text of the ancestors for
        the object.  This is typically used to present the context for
        an object (e.g., the names of the window, the panels, etc.,
        that the object is contained in).  If the 'priorObj' attribute
        of the args dictionary is set, only the differences in
        ancestry between the 'priorObj' and the current obj will be
        computed.  The 'priorObj' is typically set by Orca to be the
        previous object with focus.
        RptrequireTexttTextN(R#RRR0tfindCommonAncestorRqR$R%RrtisLayoutOnlyRtlistInterfacesRKRYtstriptROLE_FILLERR'R(R,treverse(	RRR R)RpR#tcommonAncestorRqRU((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateAncestors_s<
	


"cKs3g}|iddo|i||}n|S(swReturns an array of strings (and possibly voice and audio
        specifications) that represent the text of the ancestors for
        the object.  This is typically used to present the context for
        an object (e.g., the names of the window, the panels, etc.,
        that the object is contained in).  If the 'priorObj' attribute
        of the args dictionary is set, only the differences in
        ancestry between the 'priorObj' and the current obj will be
        computed.  Otherwise, no ancestry will be computed.  The
        'priorObj' is typically set by Orca to be the previous object
        with focus.
        RpN(R#RR,(RRR R)((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateNewAncestorsscKs|id|itijo'|idddjotdgS|iitijo
|i}n|i|iS(sReturns an array of strings (and possibly voice and audio
        specifications) containing the role name of the parent of obj.
        R"t
formatTypet
basicWhereAmItdetailedWhereAmIs
Icon panelN(R/R0(	R#R$R%RRRRqRrR((RRR ((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateParentRoleNames"

cKseg}|ii|tigtig}|o0|i|i||i|i|n|S(sReturns an array of strings (and possibly voice and audio
        specifications) containing the name and role of the toolbar
        which contains obj.
        (R0RR%t
ROLE_TOOL_BARRR'RR((RRR R)tancestor((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateToolbars	c
Ksg}d}d}|i}xy|D]q}|itijoU|i}xFtd|D]1}|i|}	|	|jo||}Pq]q]Wq%q%W|djo;|i|ii	i
ddddh|d6|d6n|S(	sReturns an array of strings (and possibly voice and audio
        specifications) that represent the relative position of an
        object in a group.
        iiR:R
R;t
groupindexRzR(RRR%RRRRR,R0R@RA(
RRR R)tpositionRRR	RR
((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generatePositionInGroups*



cKsg}d}d}d}|i|}|id|i}|tijo|d}n|tititititi	gjo
|i
}n|tijou|i
}	x_|iD]Q}
|
i
tijo5|
id}y|i
iWnnX|}	PqqW|	}n
|i
}|ii|}t|}xFtd|D]5}
|i||
}||jo|
d}PqQqQW|px|D]}|i|}|i}|p%|ddjp|itioqn|d7}|d7}||jo
|}qqWntip|idtoH|djo;|i|iiid	d
ddh|d
6|d6n|S(sReturns an array of strings (and possibly voice and audio
        specifications) that represent the relative position of an
        object in a list.
        iiR"iR_tEmptyt	separatort	forceListR:R
R;R5RzR(R_R8R9(R2R#R$R%tROLE_COMBO_BOXt
ROLE_PAGE_TABt	ROLE_MENUtROLE_MENU_ITEMtROLE_CHECK_MENU_ITEMtROLE_RADIO_MENU_ITEMRqtROLE_LIST_ITEMRRtRELATION_NODE_CHILD_OFRRtR0RRYRR=R>t
STATE_VISIBLERtenablePositionSpeakingRR,R@RA(RRR R)R6RzRR5R"RqR	R
R
Rt	childNameRtnextR((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generatePositionInListst	
	
	
	
	

	





cKsug}|ii|}|oR|iitio9|i|}|o|itd|dqqn|S(sReturns an array of strings (and possibly voice and audio
        specifications) that represent the default button in a dialog.
        This method should initially be called with a top-level window.
        sDefault button is %si(	R0tfindDefaultButtonR=R>R%tSTATE_SENSITIVER2R,R(RRR R)tbuttonR5((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateDefaultButton&s #cKs|i||S(sReturns an array of strings (and possibly voice and audio
        specifications) that represent the default button of the window
        containing the object.
        (RK(RRR ((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pytgenerateDefaultButton7scKsug}|ii|}|oR|i|}|o|i|qqx(|D]}|i|i|qMWn|S(sReturns an array of strings (and possibly voice and audio
        specifications) that represent the status bar of a window.
        This method should initially be called with a top-level window.
        (R0t
findStatusBarR2R'(RRR R)t	statusBarR5R((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateStatusBar>scKs|i||S(sReturns an array of strings (and possibly voice and audio
        specifications) that represent the status bar of the window
        containing the object.
        (RO(RRR ((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pytgenerateStatusBarNscKsg}|ii|\}}|o|i|i|n|o|i|i|n|ii|}|djo!|itdd||n|S(sReturns an array of strings (and possibly voice and audio
        specifications) that represent the title of the window, obj.
        containing the object, along with information associated with
        any unfocused dialog boxes.
        is%d unfocused dialogs%d unfocused dialogs(R0tfindFrameAndDialogR,RR R(RRR R)RtdialogR!((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt
generateTitleUs
cKs=g}|ii|\}}}|o|i|n|S(sReturns an array of strings (and possibly voice and audio
        specifications) that represent the accelerator for the object,
        or an empty array if no accelerator can be found.
        (R0t
getKeyBindingR,(RRR R)tmnemonictshortcuttaccelerator((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateAcceleratorrs
cKsg}tip|idtoa|ii|\}}}|o|d}n|o|o
|}n|o
|g}qn|S(sReturns an array of strings (and possibly voice and audio
        specifications) that represent the mnemonic for the object, or
        an empty array if no mnemonic can be found.
        t
forceMnemonici(RtenableMnemonicSpeakingR#RR0RT(RRR R)RURVRW((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateMnemonic}s
cKsg}|idt}|idt}|i|iii||||id|itijob|idddjoI|ii	|\}}|o&|i|iii|||qn|S(sReturns an array of strings (and possibly voice and audio
        specifications) that represent the tutorial for the object.
        The tutorial will only be generated if the user has requested
        tutorials, and will then be generated according to the
        tutorial generator.  A tutorial can be forced by setting the
        'forceTutorial' attribute of the args dictionary to True.
        talreadyFocusedt
forceTutorialR"R.t	unfocusedR/(
R#RR'R0ttutorialGeneratortgetTutorialR$R%RRQ(RRR R)R\R]RRR((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateTutorials 
"cKstS(N(tPAUSE(RRR ((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generatePausescKstS(N(t
LINE_BREAK(RRR ((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt_generateLineBreakscCs2yti|}Wntiti}nX|gS(sReturns an array containing a voice.  The key is a value
        to be used to look up the voice in the settings.py:voices
        dictionary.
        (Rtvoicest
DEFAULT_VOICE(RRR((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyRs
N(;RRR	RRRR!R*R(R/R6R9RBRVR^RlRoR}RRRRRRRRRRRRRRRRRRRRRRR"R,R-R1R4R7RGRKRLRORPRSRXR[RaRcReRR(((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyRCsp							
	
	
			3	/	)		.	.		1				"	9	B		*					$				*			+					R										(((R	t__id__t__version__t__date__t
__copyright__t__license__RLR`RRR%R-RRRt	orca_i18nRRRRRbR
Rdt
METHOD_PREFIXRR(((s9/usr/lib/python2.6/site-packages/orca/speech_generator.pyt<module>s,	

Youez - 2016 - github.com/yon3zu
LinuXploit