Ë
    g
f	ú  ã                   óx  — d Z dZdZdZdZdZddlZ ej                  dd	«       dd
lm	Z	  ej                  dd«       ddlm
Z
 ddlZddlZddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ 	 ddl m!Z" dd„Z%dZ& G d„ d«      Z'y# e#$ r ddl$Z"Y Œw xY w)zASuperclass of classes used to generate presentations for objects.z$Id:$z$Revision:$z$Date:$zLCopyright (c) 2009 Sun Microsystems Inc.Copyright (c) 2015-2016 Igalia, S.L.ÚLGPLé    NÚAtspiz2.0)r   ÚAtkz1.0)r   é   )Úbraille)Údebug)Úmessages)Úobject_properties)Úsettings)Úsettings_manager)ÚAXHypertext)ÚAXObject)ÚAXTable)ÚAXUtilities)ÚAXValuec                 ó¼   — t        j                  «       \  }}}|j                  }	 |j                  }t        j                  || «      }|||fS # t        $ r d}Y Œ(w xY w)Nz	<no args>)ÚsysÚexc_infoÚ__name__ÚargsÚKeyErrorÚ	tracebackÚ	format_tb)Ú
maxTBlevelÚclaÚexcÚtrbkÚexcNameÚexcArgsÚexcTbs          ú0/usr/lib/python3/dist-packages/orca/generator.pyÚ_formatExceptionInfor"   <   sa   € Ü—\‘\“^�N€CˆˆdØ�l‰l€GðØ—(‘(ˆô ×Ñ  jÓ1€EØ�W˜eÐ$Ð$øô ò ØŠðús   ¦A ÁAÁAÚ	_generatec                   óô  — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d	„ ZdSd
„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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(d'„ Z)d(„ Z*d)„ Z+d*„ Z,d+„ Z-d,„ Z.d-„ Z/d.„ Z0d/„ Z1d0„ Z2d1„ Z3d2„ Z4d3„ Z5d4„ Z6d5„ Z7d6„ Z8d7„ Z9d8„ Z:d9„ Z;d:„ Z<d;„ Z=d<„ Z>d=„ Z?d>„ Z@d?„ ZAd@„ ZBdA„ ZCdB„ ZDdC„ ZEdD„ ZFdE„ ZGdF„ ZHdG„ ZIdH„ ZJdI„ ZKdJ„ ZLdK„ ZMdL„ ZNdTdN„ZOdO„ ZPdP„ ZQdQ„ ZRdR„ ZSyM)UÚ	GeneratorzŒTakes accessible objects and generates a presentation for those
    objects.  See the generate method, which is the primary entry
    point.c                 ó  — || _         || _        i | _        i | _        t	        | «      D �cg c]  }|j                  t        «      sŒ|‘Œ c}D �cg c](  }t        | |«      j                  | | j                  «      ‘Œ* c}D �cg c]  }t        |t        j                  «      r|‘Œ  c}D ]F  }|j                  t        t        «      d  }|d   j                  «       |dd  z   }|| j                  |<   ŒH | j!                  «        y c c}w c c}w c c}w )Nr   r   )Ú_modeÚ_scriptÚ_activeProgressBarsÚ_methodsDictÚdirÚ
startswithÚMETHOD_PREFIXÚgetattrÚ__get__Ú	__class__Ú
isinstanceÚcollections_abcÚCallabler   ÚlenÚlowerÚ_verifyFormatting)ÚselfÚscriptÚmodeÚxÚyÚzÚmethodÚnames           r!   Ú__init__zGenerator.__init__T   sþ   € ØˆŒ
ØˆŒØ#%ˆÔ ØˆÔô /2°$«iÖ"W¨¸1¿<¹<ÌÕ;V¢1Ò"WöYØô !  qÓ)×1Ñ1°$¸¿¹ÕGò Yö H�1ä)¨!¬_×-EÑ-EÔFò ò Hò	-ˆFð —?‘?¤3¤}Ó#5Ð#6Ð7ˆDØ˜‘7—=‘=“? T¨!¨" XÑ-ˆDØ&,ˆD×Ñ˜dÒ#ð	-ð 	×ÑÕ ùò #XùòYùò Hs   ªD ÁD Á-DÂ #D
c                 ó   — d|d<   d|d<   y)zCOther things to make available from the formatting string.
        NÚobjÚrole© )r7   ÚglobalsDicts     r!   Ú_addGlobalszGenerator._addGlobalsb   s   € ð "ˆ�EÑØ"ˆ�FÒó    c                 ó¶  — i }| j                   j                  «       D ]  }g ||<   Œ	 | j                  |«       | j                  j                  | j
                     D ]D  }dD ]=  }	 | j                  j                  | j
                     |   |   }|sŒ0	 	 t        ||«       Œ? ŒF y # t        $ ro t        «       }|d   d   }|j                  dd«      }|j                  dd«      }|| j                   vr#t        j                  t        j                  «       g ||<   Y n1t        $ r& t        j                  t        j                  «       Y Œçw xY wŒ»# t        $ r Y Œ÷w xY w)N)ÚfocusedÚ	unfocusedr   r   úname 'Ú ú' is not defined)r*   ÚkeysrE   r(   Ú
formattingr'   ÚevalÚ	NameErrorr"   Úreplacer   ÚprintExceptionÚLEVEL_SEVEREÚ	Exception)r7   rD   ÚkeyÚroleKeyÚ
evalStringÚinfoÚargs          r!   r6   zGenerator._verifyFormattingh   sd  € ð ˆØ×$Ñ$×)Ñ)Ó+ò 	"ˆCØ!ˆK˜Òð	"à×Ñ˜Ô%à—|‘|×.Ñ.¨t¯z©zÑ:ò 	"ˆGØ/ò "�ð"àŸ™×/Ñ/°·
±
Ñ;¸GÑDÀSÑIð ñ
 &ð !Øð"Ü  ¨[Ô9Ø!ñ"ñ	"øô   )ò 2Ü#7Ó#9˜DØ"& q¡'¨!¡*˜CØ"%§+¡+¨h¸Ó";˜CØ"%§+¡+Ð.@À"Ó"E˜CØ"¨$×*;Ñ*;Ñ;Ü %× 4Ñ 4´U×5GÑ5GÔ HØ/1˜K¨Ó,Ü(ò "Ü!×0Ñ0´×1CÑ1CÔDÙ!ð"úð øô !ò Ùðús+   Á$)EÂB#Â#A5EÄ+EÅEÅ	EÅEc                 ó4   — |j                  dd«      }||d<   |S )zÒConvenience method to allow you to temporarily override the role in
        the args dictionary.  This changes the role in args ags
        returns the old role so you can pass it back to _restoreRole.
        rB   N©Úget)r7   ÚnewRoler   ÚoldRoles       r!   Ú_overrideRolezGenerator._overrideRole”   s"   € ð
 —(‘(˜6 4Ó(ˆØˆˆV‰ØˆrF   c                 ó   — |r||d<   y|d= y)zòConvenience method to restore the old role back in the args
        dictionary.  The oldRole should have been obtained from
        _overrideRole.  If oldRole is None, then the 'role' key/value
        pair will be deleted from args.
        rB   NrC   )r7   r^   r   s      r!   Ú_restoreRolezGenerator._restoreRole�   s   € ñ Ø"ˆD�ŠLà�V‘rF   c                 ó   — g S ©NrC   )r7   Úcontentsr   s      r!   ÚgenerateContentszGenerator.generateContents¨   ó   € Øˆ	rF   c                 ó   — g S rc   rC   ©r7   rA   r   s      r!   ÚgenerateContextzGenerator.generateContext«   rf   rF   c                 óâ  ‡ — t        j                  |«      r)d}t        j                  t        j                  |d«       g S t        j
                  «       }g }i }‰ j                  |«       ||d<   	 |j                  dt        j                  |«      «      |d<   	 |d   |d<   ‰ j                  |d<   |j                  d	d«      s|j                  d
d«      rd|d	<   nd|d	<    ‰ j                  j                  j                  d(i |¤Ž}	|j                  dd«      sm|j                  dd«      rV ‰ j                  j                  j                  d(i |¤Ž}
 ‰ j                  j                  j                   d(i |¤Ž}|
› d|	› d|› �}	d|d<   ‰ j                  j#                  «       d|j                  d	«      d|d|j                  d«      dg}t        j                  t        j                  |d«       d‰ j                  j$                  d<   d‰ j                  j$                  d<   d‰ j                  j$                  d<   ˆ fd„}|	sJ ‚	 t        j
                  «       }	 t'        |	|«      }	 t        j
                  «       |z
  d›}t        j                  t        j>                  d!› d&|› �«       ‰ jA                  |«       |j                  d'«      r|r|d   r‰ jC                  |«       |S # t        $ r7}d|d|g}t        j                  t        j                  |d«       |cY d}~S d}~ww xY w# t(        $ �r g }t+        «       }|d   d   }|j-                  dd«      }|j-                  dd«      }|‰ j.                  vr&t        j0                  t        j2                  «       Y �Œ7 ‰ j.                  |   |fi |¤Ž||<   t        j
                  «       |z
  d›}t5        ||   t6        «      rYdj9                  t;        d „ t=        |||   «      «      «      }t        j                  t        j>                  d!› d"|› d#|› d$|› d%�«       Y nw xY w�Œÿ# t        $ r) t        j0                  t        j2                  «       g }Y �Œw xY w))a4  Returns an array of strings (and possibly voice and audio
        specifications) that represent the complete presentation for the
        object.  The presentation to be generated depends highly upon the
        formatting strings in formatting.py.

        args is a dictionary that may contain any of the following:
        - alreadyFocused: if True, we're getting an object
          that previously had focus
        - priorObj: if set, represents the object that had focus before
          this object
        - includeContext: boolean (default=True) which says whether
          the context for an object should be included as a prefix
          and suffix
        - role: a role to override the object's role
        - formatType: the type of formatting, such as
          'focused', 'basicWhereAmI', etc.
        - forceMnemonic: boolean (default=False) which says if we
          should ignore the settings.enableMnemonicSpeaking setting
        - forceTutorial: boolean (default=False) which says if we
          should force a tutorial to be spoken or not
        z4GENERATOR: Cannot generate presentation for dead objTrA   rB   z+GENERATOR: Cannot generate presentation forú:Nr9   Ú
formatTypeÚalreadyFocusedFrH   rI   Ú	recursingÚincludeContextz + zGENERATOR: Startingzgeneration forz(using role:ú)ÚusedDescriptionForNameÚ!usedDescriptionForUnrelatedLabelsÚusedDescriptionForAlertc                 ó(   •— ‰j                  | d«      S )NF)Ú_resultElementToString)r:   r7   s    €r!   Ú	debuginfoz%Generator.generate.<locals>.debuginfoþ   s   ø€ Ø×2Ñ2°1°eÓ<Ð<rF   r   r   rJ   rK   rL   z.4fú c                 ó   — | S rc   rC   ©r:   s    r!   ú<lambda>z$Generator.generate.<locals>.<lambda>  s   € À€ rF   ú                  zGENERATION TIME: z ----> z=[ú]zCOMPLETION TIME: ÚisProgressBarUpdaterC   )"r   Úis_deadr   ÚprintMessageÚ
LEVEL_INFOÚtimerE   r\   Úget_rolerT   ÚprintTokensr'   r(   rN   Ú	getFormatÚ	getPrefixÚ	getSuffixÚupperÚpointOfReferencerO   rP   r"   rQ   r*   rR   rS   r1   ÚlistÚjoinÚfilterÚmapÚ	LEVEL_ALLÚ_debugResultInfoÚ setProgressBarUpdateTimeAndValue)r7   rA   r   ÚmsgÚ	startTimeÚresultrD   ÚerrorÚtokensrN   ÚprefixÚsuffixrv   ÚcurrentTimerX   rY   ÚdurationÚstringResults   `                 r!   ÚgeneratezGenerator.generate®   s2  ø€ ô. ×Ñ˜CÔ ØHˆCÜ×Ñœu×/Ñ/°°dÔ;ØˆIä—I‘I“Kˆ	ØˆØˆØ×Ñ˜Ô%Ø ˆ�EÑð	Ø"&§(¡(¨6´8×3DÑ3DÀSÓ3IÓ"JˆK˜Ñð
F	ð ' vÑ.ˆD�‰Lð  Ÿ:™:ˆD�‰LØ—8‘8˜L¨$Ô/Ø—8‘8Ð,¨eÔ4Ø)2�D˜Ò&à)4�D˜Ñ&à:˜Ÿ™×0Ñ0×:Ñ:ÑB¸TÑBˆJð
 —8‘8˜K¨Ô/Ø—8‘8Ð,¨dÔ3Ø>˜TŸ\™\×4Ñ4×>Ñ>ÑFÀÑF�FØ>˜TŸ\™\×4Ñ4×>Ñ>ÑFÀÑF�FØ$* 8¨3¨z¨l¸#¸f¸XÐ!F�JØ$(��[Ñ!à—j‘j×&Ñ&Ó(Ð*?ÀÇÁÈ,ÓAWØ&¨¨^¸T¿X¹XÀfÓ=MÈsðTˆFä×Ñœe×.Ñ.°¸Ô=ð GLˆD�L‰L×)Ñ)Ð*BÑCØQVˆD�L‰L×)Ñ)Ð*MÑNØGLˆD�L‰L×)Ñ)Ð*CÑDô=ñ Ð�:ØÜ"Ÿi™i›k�ðcÜ! *¨kÓ:�FØô. —i‘i“k IÑ-¨cÐ2ˆÜ×Ñœ5Ÿ?™?¨x¨jÐ8IÈ(ÈÐ,TÔUØ×Ñ˜fÔ%Ø�8‰8Ð)Ô*©v¸&Àº)Ø×1Ñ1°#Ô6àˆøôe ò 	ØCÀSÈ#ÈuÐUˆFÜ×Ñœe×.Ñ.°¸Ô=Ø�Mûð	ûôl !ó cØ�FÜ/Ó1�DØ˜q™' !™*�CØŸ+™+ h°Ó3�CØŸ+™+Ð&8¸"Ó=�CØ $×"3Ñ"3Ñ3Ü×,Ñ,¬U×-?Ñ-?Ô@ÚØ'= t×'8Ñ'8¸Ñ'=¸cÑ'JÀTÑ'J�K Ñ$Ü"&§)¡)£+°Ñ";¸CÐ!@�HÜ! +¨cÑ"2´DÔ9Ø'*§x¡x´±{Ü8;¸IÀ{ÐSVÑGWÓ8Xó1Zó ([˜ä×*Ñ*Ü!ŸO™OØ'˜jÐ(9¸(¸À7È3È%ÈrÐR^ÐQ_Ð_`Ðaôcùðcúñ øô. ò 	Ü× Ñ ¤×!3Ñ!3Ô4Ø‹Fð	úsc   Á/(K ÂF9P< ÉL  ÉP< Ë	LË&,LÌLÌLÌ A3P7ÎP< ÎBP7Ð4P< Ð6P7Ð7P< Ð<.Q.Ñ-Q.c                 óN   — |st        |«      j                  dd«      S dd› d|› d�S )Nú
z\nr{   ú')ÚstrrQ   )r7   ÚelementÚ
includeAlls      r!   ru   z Generator._resultElementToString%  s1   € ÙÜ�w“<×'Ñ'¨¨eÓ4Ð4à�H�:˜Q˜w˜i qÐ)Ð)rF   c                 ó   — t         j                  t         j                  k  ry d› | j                  j	                  «       › d�}|dj                  t        | j                  |«      «      › z  }t        j                  t         j                  |«       y )Nr{   z GENERATOR: Results: rw   )	r   r�   Ú
debugLevelr'   r‡   rŠ   rŒ   ru   r   )r7   r’   rX   s      r!   rŽ   zGenerator._debugResultInfo+  sm   € Ü�?‰?œU×-Ñ-Ò-Øà�˜DŸJ™J×,Ñ,Ó.Ð/Ð/DÐEˆØ�3—8‘8œC × ;Ñ ;¸VÓDÓEÐFÑGˆÜ×Ñœ5Ÿ?™?¨DÕ1rF   c                 ó   — g S )a   Returns the role name for the object in an array of strings, with
        the exception that the Atspi.Role.UNKNOWN role will yield an
        empty array.  Note that a 'role' attribute in args will
        override the accessible role of the obj.
        rC   rh   s      r!   Ú_generateRoleNamezGenerator._generateRoleName9  s	   € ð ˆ	rF   c                 óŠ   — |j                  dt        j                  |«      «      }|t        j                  j
                  k(  ryy)NrB   FT)r\   r   r‚   r   ÚRoleÚLABEL©r7   rA   r   rB   s       r!   Ú_fallBackOnDescriptionForNamez'Generator._fallBackOnDescriptionForNameB  s5   € Ø�x‰x˜¤× 1Ñ 1°#Ó 6Ó7ˆØ”5—:‘:×#Ñ#Ò#ØàrF   c                 ó   — g }d| j                   j                  d<   t        j                  |«      }|j	                  dt        j
                  |«      «      }t        j                  |«      }|r|j                  |«       nº | j                  |fi |¤Žr§t        j                  |«      }|r+|j                  |«       d| j                   j                  d<   ned}|t        j                  j                  k(  r|}nt        j                  |«      r|}|r*t        j                   |d¬«      }	|	r|j                  |	«       |sC|t        j                  j"                  k(  r&t        j$                  |«      r| j'                  |«      S |S )a   Returns an array of strings for use by speech and braille that
        represent the name of the object.  If the object is directly
        displaying any text, that text will be treated as the name.
        Otherwise, the accessible name of the object will be used.  If
        there is no accessible name, then the description of the
        object will be used.  This method will return an empty array
        if nothing can be found.  [[[WDW - I wonder if we should just
        have _generateName, _generateDescription,
        _generateDisplayedText, etc., that don't do any fallback.
        Then, we can allow the formatting to do the fallback (e.g.,
        'displayedText or name or description'). [[[JD to WDW - I
        needed a _generateDescription for whereAmI. :-) See below.
        Frq   rB   TN)Úremove_extension)r(   rˆ   r   Úget_namer\   r‚   Ú
get_parentÚappendr©   Úget_descriptionr   r¦   ÚLINKr   Úis_linkr   Úget_link_basenameÚICONÚis_panelÚ_generateName)
r7   rA   r   r’   r>   rB   ÚparentÚdescriptionÚlinkÚbasenames
             r!   rµ   zGenerator._generateNameI  s8  € ð ˆØBGˆ�‰×%Ñ%Ð&>Ñ?Ü× Ñ  Ó%ˆØ�x‰x˜¤× 1Ñ 1°#Ó 6Ó7ˆÜ×$Ñ$ SÓ)ˆÙØ�M‰M˜$ÕØ/ˆT×/Ñ/°Ñ<°tÒ<Ü"×2Ñ2°3Ó7ˆKÙØ—‘˜kÔ*ØJN�—‘×-Ñ-Ð.FÒGà�Øœ5Ÿ:™:Ÿ?™?Ò*Ø‘DÜ ×(Ñ(¨Ô0Ø!�DÙÜ*×<Ñ<¸TÐTXÔY�HÙØŸ™ hÔ/á˜$¤%§*¡*§/¡/Ò1´k×6JÑ6JÈ6Ô6RØ×%Ñ% fÓ-Ð-àˆrF   c                 óè   — t        j                  |«      }|j                  d«      }|r|t        j                  |«      k7  r|gS |j                  d«      }|r|t        j                  |«      k7  r|gS g S )a‹  Returns an array of strings for use by speech and braille that
        represent the 'placeholder' text. This is typically text that
        serves as a functional label and is found in a text widget until
        that widget is given focus at which point the text is removed,
        the assumption being that the user was able to see the text prior
        to giving the widget focus.
        zplaceholder-textÚplaceholder)r   Úget_attributes_dictr\   r¬   )r7   rA   r   Úattrsr»   s        r!   Ú_generatePlaceholderTextz"Generator._generatePlaceholderTexts  sp   € ô ×,Ñ,¨SÓ1ˆØ—i‘iÐ 2Ó3ˆÙ˜;¬(×*;Ñ*;¸CÓ*@Ò@Ø�=Ð à—i‘i Ó.ˆÙ˜;¬(×*;Ñ*;¸CÓ*@Ò@Ø�=Ð àˆ	rF   c                 óð  — g } | j                   |fi |¤Ž} | j                  |fi |¤Ž}|j                  dt        j                  |«      «      }|sU|sS|t
        j                  j                  k(  r6| j                  j                  j                  |«      }| j                  |«      }|s|S |j                  |«       |s|S t        j                  dd|d   «      j                  «       }t        j                  dd|d   «      j                  «       }	t        |«      j!                  t        |	«      «      r4d|d   d|d   dg}
t#        j$                  t"        j&                  |
d«       |S |j                  |«       |S )	z®Returns the label and the name as an array of strings for speech
        and braille.  The name will only be present if the name is
        different from the label.
        rB   z[\W_]rw   r   zGENERATOR: name 'z' is redundant to label 'r�   T)Ú_generateLabelrµ   r\   r   r‚   r   r¦   Ú
TABLE_CELLr(   Ú	utilitiesÚrealActiveDescendantÚextendÚreÚsubÚsplitÚsetÚissubsetr   rƒ   r€   )r7   rA   r   r’   Úlabelr>   rB   Ú
descendantÚ	nameWordsÚ
labelWordsr”   s              r!   Ú_generateLabelAndNamezGenerator._generateLabelAndName†  sS  € ð
 ˆØ#�×#Ñ# CÑ0¨4Ñ0ˆØ!ˆt×!Ñ! #Ñ.¨Ñ.ˆØ�x‰x˜¤× 1Ñ 1°#Ó 6Ó7ˆÙ™ 4¬5¯:©:×+@Ñ+@Ò#@ØŸ™×/Ñ/×DÑDÀSÓIˆJØ×%Ñ% jÓ1ˆDñ ØˆKà�‰�eÔÙØˆMô —F‘F˜8 S¨$¨q©'Ó2×8Ñ8Ó:ˆ	Ü—V‘V˜H c¨5°©8Ó4×:Ñ:Ó<ˆ
ô ˆy‹>×"Ñ"¤3 z£?Ô3Ø)¨4°©7Ð4OÐQVÐWXÑQYÐ[^Ð_ˆFÜ×Ñœe×.Ñ.°¸Ô=ØˆMà�‰�dÔØˆrF   c                 óV   —  | j                   |fi |¤Ž}|s | j                  |fi |¤Ž}|S )zÔReturns the label as an array of strings for speech and braille.
        If the label cannot be found, the name will be used instead.
        If the name cannot be found, an empty array will be returned.
        )rÀ   rµ   ©r7   rA   r   r’   s       r!   Ú_generateLabelOrNamezGenerator._generateLabelOrName©  s:   € ð
 %�×$Ñ$ SÑ1¨DÑ1ˆÙØ'�T×'Ñ'¨Ñ4¨tÑ4ˆFàˆrF   c                 óÂ   —  | j                   |fi |¤Ž}|rd| j                  j                  d<   |S  | j                  |fi |¤Ž}|rd| j                  j                  d<   |S )NFrr   T)Ú_generateUnrelatedLabelsr(   rˆ   Ú_generateDescriptionrÐ   s       r!   Ú%_generateUnrelatedLabelsOrDescriptionz/Generator._generateUnrelatedLabelsOrDescription´  sj   € Ø.�×.Ñ.¨sÑ;°dÑ;ˆÙØQVˆD�L‰L×)Ñ)Ð*MÑNØˆMà*�×*Ñ*¨3Ñ7°$Ñ7ˆÙØQUˆD�L‰L×)Ñ)Ð*MÑNàˆrF   c                 ó\  — | j                   j                  j                  d«      rg S | j                   j                  j                  d«      rg S | j                   j                  j                  d«      rg S t        j                  |«      xs) | j                   j
                  j                  |«      xs d}|sg S t        j                  |«      }|j                  dt        j                  |«      «      }	 | j                   j                  | j                     |   |j                  d«         j                  «       }d|v }d|v }d
}	| j                   j
                  j                  |«      xs d}
|rQ| j                   j
                  j                  ||«       xr' | j                   j
                  j                  |
|«       }	nS|r*|
r(| j                   j
                  j                  |
|«       }	n'| j                   j
                  j                  ||«       }	|	sg S |gS # t        $ r d	}d	}Y Œçw xY w)zÁReturns an array of strings fo use by speech and braille that
        represent the description of the object, if that description
        is different from that of the name and label.
        rq   rs   rr   rK   rB   rl   ÚlabelAndNameÚlabelOrNameFT)r(   rˆ   r\   r   r¯   rÂ   ÚdisplayedDescriptionr¬   r‚   rN   r'   rÇ   rT   ÚdisplayedLabelÚstringsAreRedundant)r7   rA   r   r·   r>   rB   r”   ÚisLabelAndNameÚisLabelOrNameÚcanUserÊ   s              r!   rÔ   zGenerator._generateDescriptionÀ  sô  € ð �<‰<×(Ñ(×,Ñ,Ð-EÔFØˆIà�<‰<×(Ñ(×,Ñ,Ð-FÔGØˆIà�<‰<×(Ñ(×,Ñ,Ð-PÔQØˆIä×.Ñ.¨sÓ3ò FØ�|‰|×%Ñ%×:Ñ:¸3Ó?òFØCEð 	áØˆIä× Ñ  Ó%ˆØ�x‰x˜¤× 1Ñ 1°#Ó 6Ó7ˆð	"Ø—\‘\×,Ñ,¨T¯Z©ZÑ8¸Ñ>¸t¿x¹xÈÓ?UÑV×\Ñ\Ó^ˆFØ+¨vÐ5ˆNØ)¨VÐ3ˆMð
 ˆØ—‘×&Ñ&×5Ñ5°cÓ:Ò@¸bˆÙØŸ™×/Ñ/×CÑCÀDÈ+ÓVÐVò \Ø!Ÿ\™\×3Ñ3×GÑGÈÈ{Ó[Ð[ñ á™uØŸ™×/Ñ/×CÑCÀEÈ;ÓWÐW‰FàŸ™×/Ñ/×CÑCÀDÈ+ÓVÐVˆFáØˆIàˆ}Ðøô# ò 	"Ø"ˆNØ!ŠMð	"ús   Ã5AH ÈH+È*H+c                 óz   — g }| j                   j                  j                  |«      }|r|j                  |«       |S )a  Returns the label for an object as an array of strings for use by
        speech and braille.  The label is determined by the displayedLabel
        method of the script utility, and an empty array will be returned if
        no label can be found.
        )r(   rÂ   rÚ   r®   )r7   rA   r   r’   rÊ   s        r!   rÀ   zGenerator._generateLabelî  s7   € ð ˆØ—‘×&Ñ&×5Ñ5°cÓ:ˆÙØ�M‰M˜%Ô ØˆrF   c                 ó   — g S )z8Returns an array of strings that represent a status bar.rC   rh   s      r!   Ú_generateStatusBarzGenerator._generateStatusBarú  s	   € ð ˆ	rF   c                 ó   — g S rc   rC   rh   s      r!   Ú_generateTermValueCountz!Generator._generateTermValueCountÿ  rf   rF   c                 ó:   — t        j                  |«      }|r|gS g S )zÃReturns an array of strings for use by speech and braille that
        represent the description of the image on the object, if it
        exists.  Otherwise, an empty array is returned.
        )r   Úget_image_description©r7   rA   r   r·   s       r!   Ú_generateImageDescriptionz#Generator._generateImageDescription  s$   € ô ×4Ñ4°SÓ9ˆÙØ�=Ð Øˆ	rF   c                 ó   — g S rc   rC   rh   s      r!   Ú_generateClickablezGenerator._generateClickable  rf   rF   c                 ó   — g S rc   rC   rh   s      r!   Ú_generateHasLongDesczGenerator._generateHasLongDesc  rf   rF   c                 ó   — g S rc   rC   rh   s      r!   Ú_generateHasDetailszGenerator._generateHasDetails  rf   rF   c                 ó   — g S rc   rC   rh   s      r!   Ú_generateDetailsForzGenerator._generateDetailsFor"  rf   rF   c                 ó   — g S rc   rC   rh   s      r!   Ú_generateAllDetailszGenerator._generateAllDetails%  rf   rF   c                 ó   — g S rc   rC   rh   s      r!   Ú_generateHasPopupzGenerator._generateHasPopup(  rf   rF   c                 óê   — g }|j                  dd«      s| j                  |d<   d|d<   t        j                  |«      s5|j	                   | j
                  j                  j                  di |¤Ž«       |S )a  Returns an array of strings for use by speech and braille that
        represent the grayed/sensitivity/availability state of the
        object, but only if it is insensitive (i.e., grayed out and
        inactive).  Otherwise, and empty array will be returned.
        r9   NÚinsensitiveÚ
stringTyperC   )r\   r'   r   Úis_sensitiver®   r(   rN   Ú	getStringrÐ   s       r!   Ú_generateAvailabilityzGenerator._generateAvailability+  sh   € ð ˆØ�x‰x˜ Ô%ØŸ:™:ˆD�‰LØ*ˆˆ\ÑÜ×'Ñ'¨Ô,Ø�M‰MÐ;˜$Ÿ,™,×1Ñ1×;Ñ;ÑC¸dÑCÔDØˆrF   c                 óÊ  — | j                   j                  j                  |«      }|sg S g }|j                  dd «      s| j                  |d<   d|d<    | j                   j
                  j                  d
i |¤Ž}|dk(  r|d   }n|dk(  r|d   }n|d   }| j                   j                  j                  |«      }|r|j                  |› d	|› �«       |S |j                  |«       |S )Nr9   Úinvalidrö   Úspellingr   Úgrammaré   r   z: rC   )	r(   rÂ   ÚgetErrorr\   r'   rN   rø   ÚgetErrorMessager®   )r7   rA   r   r“   r’   Ú
indicatorsÚ	indicatorÚerrorMessages           r!   Ú_generateInvalidzGenerator._generateInvalid9  sæ   € Ø—‘×&Ñ&×/Ñ/°Ó4ˆÙØˆIàˆØ�x‰x˜ Ô%ØŸ:™:ˆD�‰LØ&ˆˆ\ÑØ6�T—\‘\×,Ñ,×6Ñ6Ñ>¸Ñ>ˆ
à�JÒØ" 1™‰IØ�iÒØ" 1™‰Ià" 1™ˆIà—|‘|×-Ñ-×=Ñ=¸cÓBˆÙØ�M‰M˜Y˜K r¨,¨Ð8Ô9ð ˆð �M‰M˜)Ô$àˆrF   c                 óp  — g }|j                  dd«      s| j                  |d<   d|d<   t        j                  |«      }|s?t        j                  |«      r*t        j                  |«      }t        j                  |«      }|r5|j                   | j                  j                  j                  di |¤Ž«       |S )a*  Returns an array of strings for use by speech and braille that
        represent the required state of the object, but only if it is
        required (i.e., it is in a dialog requesting input and the
        user must give it a value).  Otherwise, and empty array will
        be returned.
        r9   NÚrequiredrö   rC   )r\   r'   r   Úis_requiredÚis_radio_buttonr   r­   r®   r(   rN   rø   )r7   rA   r   r’   Ú
isRequiredr¶   s         r!   Ú_generateRequiredzGenerator._generateRequiredS  s�   € ð ˆØ�x‰x˜ Ô%ØŸ:™:ˆD�‰LØ'ˆˆ\ÑÜ ×,Ñ,¨SÓ1ˆ
Ùœk×9Ñ9¸#Ô>Ü×(Ñ(¨Ó-ˆFÜ$×0Ñ0°Ó8ˆJÙØ�M‰MÐ;˜$Ÿ,™,×1Ñ1×;Ñ;ÑC¸dÑCÔDØˆrF   c                 ó4  — g }|j                  dd«      s| j                  |d<   d|d<   t        j                  |«      s%| j                  j
                  j                  |«      r5|j                   | j                  j                  j                  di |¤Ž«       |S )zÒReturns an array of strings for use by speech and braille that
        represent the read only state of this object, but only if it
        is read only (i.e., it is a text area that cannot be edited).
        r9   NÚreadonlyrö   rC   )
r\   r'   r   Úis_read_onlyr(   rÂ   ÚisReadOnlyTextArear®   rN   rø   rÐ   s       r!   Ú_generateReadOnlyzGenerator._generateReadOnlyf  s€   € ð
 ˆØ�x‰x˜ Ô%ØŸ:™:ˆD�‰LØ'ˆˆ\ÑÜ×#Ñ# CÔ(Ø�l‰l×$Ñ$×7Ñ7¸Ô<Ø�M‰MÐ;˜$Ÿ,™,×1Ñ1×;Ñ;ÑC¸dÑCÔDØˆrF   c                 ó  — g }| j                   j                  j                  |«      r^| j                  t        j
                  j                  |«      }|j                   | j                  |fi |¤Ž«       | j                  ||«       |S )a  Returns an array of strings for use by speech and braille that
        represent the checked state of the object.  This is typically
        for check boxes that are in a table. An empty array will be
        returned if this is not a checkable cell.
        )
r(   rÂ   ÚhasMeaningfulToggleActionr_   r   r¦   Ú	CHECK_BOXrÄ   rš   ra   ©r7   rA   r   r’   r^   s        r!   Ú_generateCellCheckedStatez#Generator._generateCellCheckedStatet  sn   € ð ˆØ�<‰<×!Ñ!×;Ñ;¸CÔ@Ø×(Ñ(¬¯©×)=Ñ)=¸tÓDˆGØ�M‰M˜-˜$Ÿ-™-¨Ñ4¨tÑ4Ô5Ø×Ñ˜g tÔ,àˆrF   c                 óv  — g }|j                  dd«      s| j                  |d<   d|d<    | j                  j                  j                  di |¤Ž}t        j                  |«      r|j                  |d   «       |S t        j                  |«      r|j                  |d   «       |S |j                  |d   «       |S )	á  Returns an array of strings for use by speech and braille that
        represent the checked state of the object.  This is typically
        for check boxes. [[[WDW - should we return an empty array if
        we can guarantee we know this thing is not checkable?]]]
        r9   NÚcheckboxrö   r   rþ   r   rC   )	r\   r'   r(   rN   rø   r   Ú
is_checkedr®   Úis_indeterminate©r7   rA   r   r’   r  s        r!   Ú_generateCheckedStatezGenerator._generateCheckedState‚  s°   € ð ˆØ�x‰x˜ Ô%ØŸ:™:ˆD�‰LØ'ˆˆ\ÑØ6�T—\‘\×,Ñ,×6Ñ6Ñ>¸Ñ>ˆ
Ü×!Ñ! #Ô&Ø�M‰M˜* Q™-Ô(ð
 ˆô	 ×)Ñ)¨#Ô.Ø�M‰M˜* Q™-Ô(ð ˆð �M‰M˜* Q™-Ô(ØˆrF   c                 ó   — g }|j                  dd«      s| j                  |d<   d|d<    | j                  j                  j                  di |¤Ž}t        j                  |«      r|j                  |d   «       |S |j                  |d   «       |S )r  r9   NÚradiobuttonrö   r   r   rC   ©r\   r'   r(   rN   rø   r   r  r®   r  s        r!   Ú_generateRadioStatezGenerator._generateRadioState•  s‰   € ð ˆØ�x‰x˜ Ô%ØŸ:™:ˆD�‰LØ*ˆˆ\ÑØ6�T—\‘\×,Ñ,×6Ñ6Ñ>¸Ñ>ˆ
Ü×!Ñ! #Ô&Ø�M‰M˜* Q™-Ô(ð ˆð �M‰M˜* Q™-Ô(ØˆrF   c                 óè  ‡— t         j                  j                  t         j                  j                  t         j                  j                  t         j                  j
                  t         j                  j                  t         j                  j                  gŠˆfd„}t        j                  t        j                  |«      «      r+t        j                  ||«      }|r| j                  |d¬«      S g S )Nc                 ó2   •— t        j                  | «      ‰v S rc   )r   r‚   )r:   ÚwidgetRoless    €r!   ÚisWidgetz0Generator._generateChildWidget.<locals>.isWidget®  s   ø€ Ü×$Ñ$ QÓ'¨;Ð6Ð6rF   F)ro   )r   r¦   r  Ú	COMBO_BOXÚPUSH_BUTTONÚRADIO_BUTTONÚSLIDERÚTOGGLE_BUTTONr   Úis_list_boxr   r­   Úfind_descendantrš   )r7   rA   r   r#  Úwidgetr"  s        @r!   Ú_generateChildWidgetzGenerator._generateChildWidget¦  s¥   ø€ Ü—z‘z×+Ñ+Ü—z‘z×+Ñ+Ü—z‘z×-Ñ-Ü—z‘z×.Ñ.Ü—z‘z×(Ñ(Ü—z‘z×/Ñ/ð1ˆô	7ô ×"Ñ"¤8×#6Ñ#6°sÓ#;Ô<Ü×-Ñ-¨c°8Ó<ˆFÙØ—}‘} V¸E�}ÓBÐBàˆ	rF   c                 óJ  — g }|j                  dd «      s| j                  |d<   d|d<    | j                  j                  j                  di |¤Ž}t        j                  |«      st        j                  |«      r|j                  |d   «       |S |j                  |d   «       |S )Nr9   Úswitchrö   r   r   rC   ©	r\   r'   r(   rN   rø   r   r  Ú
is_pressedr®   r  s        r!   Ú_generateSwitchStatezGenerator._generateSwitchState¹  s”   € ØˆØ�x‰x˜ Ô%ØŸ:™:ˆD�‰LØ%ˆˆ\ÑØ6�T—\‘\×,Ñ,×6Ñ6Ñ>¸Ñ>ˆ
Ü×!Ñ! #Ô&¬+×*@Ñ*@ÀÔ*EØ�M‰M˜* Q™-Ô(ð ˆð �M‰M˜* Q™-Ô(ØˆrF   c                 óJ  — g }|j                  dd«      s| j                  |d<   d|d<    | j                  j                  j                  di |¤Ž}t        j                  |«      st        j                  |«      r|j                  |d   «       |S |j                  |d   «       |S )r  r9   NÚtogglebuttonrö   r   r   rC   r/  r  s        r!   Ú_generateToggleStatezGenerator._generateToggleStateÅ  s–   € ð ˆØ�x‰x˜ Ô%ØŸ:™:ˆD�‰LØ+ˆˆ\ÑØ6�T—\‘\×,Ñ,×6Ñ6Ñ>¸Ñ>ˆ
Ü×!Ñ! #Ô&¬+×*@Ñ*@ÀÔ*EØ�M‰M˜* Q™-Ô(ð ˆð �M‰M˜* Q™-Ô(ØˆrF   c                 óÐ   — t        j                  |«      st        j                  |«      r | j                  |fi |¤ŽS t        j                  |«      r | j                  |fi |¤ŽS g S rc   )r   Úis_checkableÚis_check_menu_itemr  r  rh   s      r!   Ú _generateCheckedStateIfCheckablez*Generator._generateCheckedStateIfCheckableÖ  s`   € Ü×#Ñ# CÔ(¬K×,JÑ,JÈ3Ô,OØ-�4×-Ñ-¨cÑ:°TÑ:Ð:ä×!Ñ! #Ô&Ø-�4×-Ñ-¨cÑ:°TÑ:Ð:àˆ	rF   c                 óô   — g }|j                  dd«      s| j                  |d<   d|d<    | j                  j                  j                  di |¤Ž}t        j                  |«      r|j                  |d   «       |S )zÉReturns an array of strings for use by speech and braille that
        represent the checked state of the menu item, only if it is
        checked. Otherwise, and empty array will be returned.
        r9   Nr  rö   r   rC   r  r  s        r!   Ú_generateMenuItemCheckedStatez'Generator._generateMenuItemCheckedStateß  sp   € ð
 ˆØ�x‰x˜ Ô%ØŸ:™:ˆD�‰LØ'ˆˆ\ÑØ6�T—\‘\×,Ñ,×6Ñ6Ñ>¸Ñ>ˆ
Ü×!Ñ! #Ô&Ø�M‰M˜* Q™-Ô(ØˆrF   c                 ó   — g }|j                  dd«      s| j                  |d<   d|d<    | j                  j                  j                  di |¤Ž}t        j                  |«      r|j                  |d   «       |S t        j                  |«      r|j                  |d   «       |S t        j                  |«      r|j                  |d   «       |S )zëReturns an array of strings for use by speech and braille that
        represent the expanded/collapsed state of an object, such as a
        tree node. If the object is not expandable, an empty array
        will be returned.
        r9   NÚ	expansionrö   r   r   rC   )
r\   r'   r(   rN   rø   r   Úis_collapsedr®   Úis_expandedÚis_expandabler  s        r!   Ú_generateExpandableStatez"Generator._generateExpandableStateí  s¾   € ð ˆØ�x‰x˜ Ô%ØŸ:™:ˆD�‰LØ(ˆˆ\ÑØ6�T—\‘\×,Ñ,×6Ñ6Ñ>¸Ñ>ˆ
Ü×#Ñ# CÔ(Ø�M‰M˜* Q™-Ô(ð ˆô ×$Ñ$ SÔ)Ø�M‰M˜* Q™-Ô(ð ˆô ×&Ñ& sÔ+Ø�M‰M˜* Q™-Ô(àˆrF   c                 ó  — g }|j                  dd«      s| j                  |d<   d|d<   t        j                  |«      rJt	        j
                  |«      r5|j                   | j                  j                  j                  di |¤Ž«       |S )a  Returns an array of strings (and possibly voice and audio
        specifications) that represent the multiselectable state of
        the object.  This is typically for list boxes. If the object
        is not multiselectable, an empty array will be returned.
        r9   NÚmultiselectrö   rC   )
r\   r'   r   Úis_multiselectabler   Úget_child_countr®   r(   rN   rø   rÐ   s       r!   Ú_generateMultiselectableStatez'Generator._generateMultiselectableState  su   € ð ˆØ�x‰x˜ Ô%ØŸ:™:ˆD�‰LØ*ˆˆ\ÑÜ×)Ñ)¨#Ô.´8×3KÑ3KÈCÔ3PØ�M‰MÐ;˜$Ÿ,™,×1Ñ1×;Ñ;ÑC¸dÑCÔDØˆrF   c                 ó  — |j                  d«      rg S g }|j                  d«      r&t        j                  ||j                  d«      «      }nt        j                  |«      }g }|D ]Z  }| j                  j
                  j                  |«      }|sŒ+|j                  «       sŒ<|j                  |j                  «       «       Œ\ |s|S dj                  |«      }| j                  |t        j                  j                  ¬«      }	|j                  d«      dk(  r<t        j                  t        j                   k(  r6|j                  d«      d	vr#|› d
|	› �}n|j                  d«      dk(  r|› d
|	› �}|j                  |«       |S )zËReturns an array of strings to be used in speech and braille that
        represent the row header for an object that is in a table, if
        it exists.  Otherwise, an empty array is returned.
        Ú
readingRowÚnewOnlyÚpriorObjú. ©rB   r9   Úspeechrl   ©ÚbasicWhereAmIÚdetailedWhereAmIrw   r   )r\   r   Úget_new_row_headersÚget_row_headersr(   rÂ   ÚdisplayedTextÚstripr®   rŠ   ÚgetLocalizedRoleNamer   r¦   Ú
ROW_HEADERr   ÚspeechVerbosityLevelÚVERBOSITY_LEVEL_VERBOSE©
r7   rA   r   r’   Úheadersr”   ÚheaderÚtokenÚtextÚ
roleStrings
             r!   Ú_generateRowHeaderzGenerator._generateRowHeader  sL  € ð �8‰8�LÔ!ØˆIàˆØ�8‰8�IÔÜ×1Ñ1°#°t·x±xÀ
Ó7KÓL‰Gä×-Ñ-¨cÓ2ˆGàˆØò 	-ˆFØ—L‘L×*Ñ*×8Ñ8¸Ó@ˆEÚ˜Ÿ™�Ø—‘˜eŸk™k›mÕ,ð	-ñ
 ØˆMà�y‰y˜Ó ˆØ×/Ñ/°¼%¿*¹*×:OÑ:OÐ/ÓPˆ
Ø�8‰8�FÓ˜xÒ'Ü×,Ñ,´×0PÑ0PÒPØ—8‘8˜LÓ)Ð1VÑVØ˜˜q  Ð-‘Ø�X‰X�fÓ Ò*Ø�V˜1˜Z˜LÐ)ˆDà�‰�dÔØˆrF   c                 óÜ  — g }|j                  d«      r&t        j                  ||j                  d«      «      }nt        j                  |«      }g }|D ]Z  }| j                  j
                  j                  |«      }|sŒ+|j                  «       sŒ<|j                  |j                  «       «       Œ\ |s|S dj                  |«      }| j                  |t        j                  j                  ¬«      }	|j                  d«      dk(  r<t        j                  t        j                   k(  r6|j                  d«      dvr#|› d	|	› �}n|j                  d«      d
k(  r|› d	|	› �}|j                  |«       |S )zãReturns 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.  Otherwise, an empty array
        is returned.
        rH  rI  rJ  rK  r9   rL  rl   rM  rw   r   )r\   r   Úget_new_column_headersÚget_column_headersr(   rÂ   rR  rS  r®   rŠ   rT  r   r¦   ÚCOLUMN_HEADERr   rV  rW  rX  s
             r!   Ú_generateColumnHeaderzGenerator._generateColumnHeader:  s;  € ð ˆØ�8‰8�IÔÜ×4Ñ4°S¸$¿(¹(À:Ó:NÓO‰Gä×0Ñ0°Ó5ˆGàˆØò 	-ˆFØ—L‘L×*Ñ*×8Ñ8¸Ó@ˆEÚ˜Ÿ™�Ø—‘˜eŸk™k›mÕ,ð	-ñ
 ØˆMà�y‰y˜Ó ˆØ×/Ñ/°¼%¿*¹*×:RÑ:RÐ/ÓSˆ
Ø�8‰8�FÓ˜xÒ'Ü×,Ñ,´×0PÑ0PÒPØ—8‘8˜LÓ)Ð1VÑVØ˜˜q  Ð-‘Ø�X‰X�fÓ Ò*Ø�V˜1˜Z˜LÐ)ˆDà�‰�dÔØˆrF   c                 óZ   — | j                   j                  j                  |«      }|sg S |gS rc   )r(   rÂ   ÚgetSortOrderDescriptionræ   s       r!   Ú_generateSortOrderzGenerator._generateSortOrder[  s,   € Ø—l‘l×,Ñ,×DÑDÀSÓIˆÙØˆIàˆ}ÐrF   c           	      ó®  — g }t        j                  |«      dk(  rºg }ddg}t        t        j                  |«      «      D ]1  \  }}| j                  j
                  j                  |«      sŒ,d||<    n |d   r
|d   sddg}n|d   s	|d   rddg}|rC|D ]>  }||   rŒ	|j                   | j                  t        j                  ||«      fi |¤Ž«       Œ@ |S )záReturns an array of strings for use by speech and braille for the
        label of a toggle in a table cell that has a special 2 child
        pattern that we run into.  Otherwise, an empty array is
        returned.
        rþ   FTr   r   ©
r   rD  Ú	enumerateÚiter_childrenr(   rÂ   r  rÄ   rš   Ú	get_child©r7   rA   r   r’   Ú	cellOrderÚ	hasToggleÚiÚchilds           r!   Ú_generateTableCell2ChildLabelz'Generator._generateTableCell2ChildLabelb  sí   € ð ˆô ×#Ñ# CÓ(¨AÒ-ØˆIØ ˜ˆIÜ%¤h×&<Ñ&<¸SÓ&AÓBò ‘��5Ø—<‘<×)Ñ)×CÑCÀEÕJØ#'�I˜a‘LÙðð ˜Š| I¨a¢LØ ˜H‘	Ø˜q’\ i°¢lØ ˜H�	ÙØ"ò Y�AØ$ Q›<ØŸ™ m d§m¡m´H×4FÑ4FÀsÈAÓ4NÑ&WÐRVÑ&WÕXðYð ˆrF   c           	      ó®  — g }t        j                  |«      dk(  rºg }ddg}t        t        j                  |«      «      D ]1  \  }}| j                  j
                  j                  |«      sŒ,d||<    n |d   r
|d   sddg}n|d   s	|d   rddg}|rC|D ]>  }||   sŒ	|j                   | j                  t        j                  ||«      fi |¤Ž«       Œ@ |S )zèReturns an array of strings for use by speech and braille for the
        toggle value of a toggle in a table cell that has a special 2
        child pattern that we run into.  Otherwise, an empty array is
        returned.
        rþ   FTr   r   rh  rl  s           r!   Ú_generateTableCell2ChildTogglez(Generator._generateTableCell2ChildToggle‚  sí   € ð ˆô ×#Ñ# CÓ(¨AÒ-ØˆIØ ˜ˆIÜ%¤h×&<Ñ&<¸SÓ&AÓBò ‘��5Ø—<‘<×)Ñ)×CÑCÀEÕJØ#'�I˜a‘LÙðð ˜Š| I¨a¢LØ ˜H‘	Ø˜q’\ i°¢lØ ˜H�	ÙØ"ò Y�AØ  “|ØŸ™ m d§m¡m´H×4FÑ4FÀsÈAÓ4NÑ&WÐRVÑ&WÕXðYð ˆrF   c                 ó   — |d   dk(  r|j                  dd«      sg S g }| j                  j                  j                  |«      }| j                  j                  j	                  |«      }|sc| j                  j                  j                  |«      r>t        j                  |«      }|r'|j                  t        j                  |d   «      «       |S )zÁIf this table cell has a "toggle" action, and doesn't have any
        label associated with it then also speak the table column
        header.  See Orca bug #455230 for more details.
        r9   rL  rG  Fr   )r\   r(   rÂ   rÃ   rR  r  r   ra  r®   r   r¬   )r7   rA   r   r’   rË   rÊ   rY  s          r!   Ú&_generateColumnHeaderIfToggleAndNoTextz0Generator._generateColumnHeaderIfToggleAndNoText¢  s¨   € ð �‰<˜8Ò#¨D¯H©H°\À5Ô,IØˆIàˆØ—\‘\×+Ñ+×@Ñ@ÀÓEˆ
Ø—‘×&Ñ&×4Ñ4°ZÓ@ˆÙ˜Ÿ™×/Ñ/×IÑIÈ#ÔNÜ×2Ñ2°3Ó7ˆgÙØ—‘œh×/Ñ/°¸±
Ó;Ô<ØˆrF   c                 ó–   — g }| j                  d|«      }|j                   | j                  |fi |¤Ž«       | j                  ||«       |S )a`  Orca 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 for use by speech and braille for a single
        table cell itself.  The string, 'blank', is added for empty
        cells.
        ÚREAL_ROLE_TABLE_CELL)r_   rÄ   rš   ra   r  s        r!   Ú_generateRealTableCellz Generator._generateRealTableCell¶  sM   € ð ˆØ×$Ñ$Ð%;¸TÓBˆØ�‰�m�d—m‘m CÑ0¨4Ñ0Ô1Ø×Ñ˜' 4Ô(ØˆrF   c                 ó¼  — | j                   j                  j                  |«      rg S | j                   j                  j                  |«      rg S t	        j
                  |«      }t	        j                  |«      }|dk  s|dk  r'| j                   j                  j                  |«      sg S |dk(  r|dk(  r | j                  |fi |¤ŽS t        j                  ||«      gS )zaReturns an array of strings for use by speech and braille to present
        the size of a table.r   )r(   rÂ   ÚisLayoutOnlyÚisSpreadSheetTabler   Úget_row_countÚget_column_countÚrowOrColumnCountUnknownr¤   r	   Ú	tableSize)r7   rA   r   ÚrowsÚcolss        r!   Ú_generateTablezGenerator._generateTableÄ  sÇ   € ð �<‰<×!Ñ!×.Ñ.¨sÔ3ØˆIà�<‰<×!Ñ!×4Ñ4°SÔ9ØˆIä×$Ñ$ SÓ)ˆÜ×'Ñ'¨Ó,ˆð �1ŠH˜˜qšØ—<‘<×)Ñ)×AÑAÀ#ÔFØˆIð
 �1Š9˜ šØ)�4×)Ñ)¨#Ñ6°Ñ6Ð6ä×"Ñ" 4¨Ó.Ð/Ð/rF   c                 ó  — |j                  d«      du xs\ |j                  d«      dk(  xsF | j                  dk(  xs5 | j                  j                  j	                  ||j                  d«      «      }|s | j
                  |fi |¤ŽS d|d<   g }| j                  j                  j                  |d¬«      }g d¢}|j                  «       }|D ]  }|j                  |d	«       Œ |D ]„  }	|	|k(  r | j
                  |	fi |¤Ž}
n | j
                  |	fi |¤Ž}
|
rC|rA| j                  dk(  r2|j                  t        j                  t        j                  «      «       |j                  |
«       Œ† |j                   | j                  |fi |¤Ž«       |S )
aÆ  Orca 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 an entire row
        in a table if that's what the user has requested and if the row
        has changed.  Otherwise, it will return an array for just the
        current cell.
        rG  Trl   rO  r   rI  )ÚforceFullRow)ÚstartOffsetÚ	endOffsetÚstringN)r\   r'   r(   rÂ   ÚshouldReadFullRowrx  ÚgetShowingCellsInSameRowÚcopyÚpopr®   r   ÚRegionr
   ÚTABLE_CELL_DELIMITER_BRAILLErÄ   Ú_generatePositionInList)r7   rA   r   Ú
presentAllr’   ÚcellsÚdoNotIncludeÚotherCellArgsrY   ÚcellÚ
cellResults              r!   Ú_generateTableCellRowzGenerator._generateTableCellRowÞ  s�  € ð —X‘X˜lÓ+¨tÐ3ò SØ�x‰x˜Ó%Ð);Ñ;òSà�z‰z˜YÑ&òSð �|‰|×%Ñ%×7Ñ7¸¸T¿X¹XÀjÓ=QÓRð 	ñ
 Ø.�4×.Ñ.¨sÑ;°dÑ;Ð;à!ˆˆ\ÑØˆØ—‘×&Ñ&×?Ñ?ÀÐRVÐ?ÓWˆò >ˆØŸ	™	›ˆØò 	)ˆCØ×Ñ˜c 4Õ(ð	)ð ò 	&ˆDØ�sŠ{Ø8˜T×8Ñ8¸ÑFÀÑF‘
à8˜T×8Ñ8¸ÑOÀÑO�
Ù™f¨¯©°yÒ)@Ø—‘œgŸn™nÔ->×-[Ñ-[Ó\Ô]Ø�M‰M˜*Õ%ð	&ð 	�‰Ð2�d×2Ñ2°3Ñ?¸$Ñ?Ô@ØˆrF   c                 ó   — g S )z>Returns the expanded embedded object characters for an object.rC   rh   s      r!   Ú_generateExpandedEOCszGenerator._generateExpandedEOCs  s   € àˆ	rF   c                 óþ   — |j                  d«      }|j                  d«      }|�|€g S |j                  d| j                  j                  j                  |||«      «      }|r| j                  j                  |vr|gS g S )Nr…  r†  r‡  )r\   r(   rÂ   Ú	substringÚEMBEDDED_OBJECT_CHARACTER)r7   rA   r   ÚstartÚendr™  s         r!   Ú_generateSubstringzGenerator._generateSubstring  sw   € Ø—‘˜Ó'ˆØ�h‰h�{Ó#ˆØˆ=˜C˜KØˆIà—H‘H˜X t§|¡|×'=Ñ'=×'GÑ'GÈÈUÐTWÓ'XÓYˆ	Ù˜Ÿ™×?Ñ?ÀyÑPØ�;Ðàˆ	rF   c                 ó$   — |j                  d«      S )Nr…  r[   rh   s      r!   Ú_generateStartOffsetzGenerator._generateStartOffset  s   € Ø�x‰x˜Ó&Ð&rF   c                 ó$   — |j                  d«      S )Nr†  r[   rh   s      r!   Ú_generateEndOffsetzGenerator._generateEndOffset  s   € Ø�x‰x˜Ó$Ð$rF   c                 ó¬   —  | j                   |fi |¤Ž}|r|S | j                  j                  |«      \  }}}|r| j                  j                  |vr|gS g S )zëReturns an array of strings for use by speech and braille
        that represents the current line of text, if
        this is a text object.  [[[WDW - consider returning an empty
        array if this is not a text object.]]]
        )r�  r(   ÚgetTextLineAtCaretrš  )r7   rA   r   r’   r\  ÚcaretOffsetr…  s          r!   Ú_generateCurrentLineTextz"Generator._generateCurrentLineText"  s^   € ð )�×(Ñ(¨Ñ5°Ñ5ˆÙØˆMà+/¯<©<×+JÑ+JÈ3Ó+OÑ(ˆˆ{˜KÙ�D—L‘L×:Ñ:À$ÑFØ�6ˆMàˆ	rF   c                 óˆ   —  | j                   |fi |¤Ž}|r|S | j                  j                  j                  |«      }|sg S |gS )z†Returns an array of strings for use by speech and braille that
        represents all the text being displayed by the object.
        )r�  r(   rÂ   rR  )r7   rA   r   r’   rR  s        r!   Ú_generateDisplayedTextz Generator._generateDisplayedText2  sM   € ð )�×(Ñ(¨Ñ5°Ñ5ˆÙØˆMàŸ™×.Ñ.×<Ñ<¸SÓAˆÙØˆIàˆÐrF   c                 ó   — g }|j                  dd«      s| j                  |d<   d|d<   | j                  j                  j	                  |«      }|dk\  r;|j                   | j                  j                  j                  di |¤Ž|dz   z  «       |S )z¹Returns an array of strings for use by speech and braille that
        represents the tree node level of the object, or an empty
        array if the object is not a tree node.
        r9   NÚ	nodelevelrö   r   r   rC   )r\   r'   r(   rÂ   Ú	nodeLevelr®   rN   rø   )r7   rA   r   r’   Úlevels        r!   Ú_generateNodeLevelzGenerator._generateNodeLevelF  s‰   € ð
 ˆØ�x‰x˜ Ô%ØŸ:™:ˆD�‰LØ(ˆˆ\ÑØ—‘×&Ñ&×0Ñ0°Ó5ˆØ�AŠ:Ø�M‰MÐ;˜$Ÿ,™,×1Ñ1×;Ñ;ÑC¸dÑCØ" Q™Yñ(ô )àˆrF   c                 óv  — |j                  dt        j                  |«      «      }|t        j                  j
                  k(  r(| j                  j                  j                  |«      }|gS |t        j                  j                  k(  rt        j                  |«      sg S t        j                  |«      }|r|gS g S )aM  Returns an array of strings for use by speech and braille that
        represents the value of the object.  This is typically the
        numerical value, but may also be the text of the 'value'
        attribute if it exists on the object.  [[[WDW - we should
        consider returning an empty array if there is no value.
        rB   )r\   r   r‚   r   r¦   r$  r(   rÂ   ÚgetComboBoxValueÚ	SEPARATORr   Ú
is_focusedr   Úget_current_value_text)r7   rA   r   rB   Úvaluer’   s         r!   Ú_generateValuezGenerator._generateValue[  s•   € ð �x‰x˜¤× 1Ñ 1°#Ó 6Ó7ˆØ”5—:‘:×'Ñ'Ò'Ø—L‘L×*Ñ*×;Ñ;¸CÓ@ˆEØ�7ˆNà”5—:‘:×'Ñ'Ò'´×0FÑ0FÀsÔ0KØˆIä×/Ñ/°Ó4ˆÙØ�8ˆOØˆ	rF   c                 ó€   — g }t        j                  t        j                  |«      «      }|r|j                  |«       |S )z†Returns an array of strings for use by speech and braille that
        represents the name of the application for the object.
        )r   r¬   Úget_applicationr®   )r7   rA   r   r’   r>   s        r!   Ú_generateApplicationNamez"Generator._generateApplicationNamev  s8   € ð ˆÜ× Ñ ¤×!9Ñ!9¸#Ó!>Ó?ˆÙØ�M‰M˜$ÔØˆrF   c                 ód  — |j                  d«      }|j                  d«      }|�|�g S g }|j                  dd«      s| j                  |d<   d|d<   | j                  j                  j	                  |«      }|r8|j                   | j                  j                  j                  di |¤Ž|z  «       |S )zƒReturns an array of strings for use by speech and braille that
        represent the nesting level of an object in a list.
        r…  r†  Nr9   Únestinglevelrö   rC   )r\   r'   r(   rÂ   ÚnestingLevelr®   rN   rø   )r7   rA   r   r›  rœ  r’   r¹  s          r!   Ú_generateNestingLevelzGenerator._generateNestingLevel€  s¬   € ð —‘˜Ó'ˆØ�h‰h�{Ó#ˆØÐ  ØˆIàˆØ�x‰x˜ Ô%ØŸ:™:ˆD�‰LØ+ˆˆ\ÑØ—|‘|×-Ñ-×:Ñ:¸3Ó?ˆÙØ�M‰MÐ;˜$Ÿ,™,×1Ñ1×;Ñ;ÑC¸dÑCØ(ñ)ô *àˆrF   c                 óæ  — t        j                  |«      sg S d}t        j                  |t        j
                  j                  «      }|r|j                  d«      }|r&| j                  j                  j                  |«      gS t        j                  |«      }|rWt        j                  |«      st        j                  |«      r| j                  |«      }|r|S t        j                  |«      }|rŒWg S )zÂReturns an array of strings for use by speech and braille that
        represents the radio button group label for the object, or an
        empty array if the object has no such label.
        Nr   )r   r  r   Úget_relationr   ÚRelationTypeÚLABELLED_BYÚ
get_targetr(   rÂ   rR  Úget_parent_checkedr´   Ú	is_fillerrÎ   )r7   rA   r   ÚradioGroupLabelÚrelationr¶   rÊ   s          r!   Ú_generateRadioButtonGroupz#Generator._generateRadioButtonGroup“  sÐ   € ô
 ×*Ñ*¨3Ô/ØˆIàˆÜ×(Ñ(¨¬e×.@Ñ.@×.LÑ.LÓMˆÙØ&×1Ñ1°!Ó4ˆOÙØ—L‘L×*Ñ*×8Ñ8¸ÓIÐJÐJä×,Ñ,¨SÓ1ˆÙÜ×#Ñ# FÔ+¬{×/DÑ/DÀVÔ/LØ×2Ñ2°6Ó:�ÙØ �LÜ×0Ñ0°Ó8ˆFò ð ˆ	rF   c                 óò  — | j                   j                  j                  |«      }t        j                  |«      rt        j                  |«      s | j                  |fi |¤ŽS t        t        j                  |«      D �cg c]5  }| j                   j                  j                  |«      j                  «       ‘Œ7 c}«      }dj                  t        d„ |«      «      }|s | j                  |fi |¤ŽS |gS c c}w )aN  Objects, such as tables and trees, can represent individual cells
        via a complicated nested hierarchy.  This method returns an
        array of strings for use by speech and braille that represents
        the text actually being painted in the cell, if it can be
        found.  Otherwise, an empty array is returned.
        rw   c                 ó   — | S rc   rC   ry   s    r!   rz   zFGenerator._generateRealActiveDescendantDisplayedText.<locals>.<lambda>¹  s   €  q€ rF   )r(   rÂ   rÃ   r   Úis_table_cellr   rD  r§  rÈ   rj  rR  rS  rŠ   r‹   )r7   rA   r   Úradr:   ÚcontentÚrvs          r!   Ú*_generateRealActiveDescendantDisplayedTextz4Generator._generateRealActiveDescendantDisplayedText«  sÖ   € ð �l‰l×$Ñ$×9Ñ9¸#Ó>ˆä×)Ñ)¨#Ô.´8×3KÑ3KÈCÔ3PØ.�4×.Ñ.¨sÑ;°dÑ;Ð;äÜ×+Ñ+¨CÓ0ö2Øð —|‘|×-Ñ-×;Ñ;¸AÓ>×DÑDÕFò 2ó 3ˆà�X‰X”f™[¨'Ó2Ó3ˆÙØ.�4×.Ñ.¨sÑ;°dÑ;Ð;Øˆtˆùò2s   Á?:C4c                 ó¢   — | j                   j                  j                  |«      }t        j                  |«      |d<    | j
                  |fi |¤ŽS )a  Objects, such as tables and trees, can represent individual cells
        via a complicated nested hierarchy.  This method returns an
        array of strings for use by speech and braille that represents
        the role of the object actually being painted in the cell.
        rB   )r(   rÂ   rÃ   r   r‚   r¤   )r7   rA   r   rÈ  s       r!   Ú%_generateRealActiveDescendantRoleNamez/Generator._generateRealActiveDescendantRoleName¾  sJ   € ð �l‰l×$Ñ$×9Ñ9¸#Ó>ˆÜ×(Ñ(¨Ó-ˆˆV‰Ø%ˆt×%Ñ% cÑ2¨TÑ2Ð2rF   c                 óà   — g }t        j                  |«      }|rTt        j                  |«      r'| j	                  |«      }|r|j                  |«       	 |S t        j                  |«      }|rŒT|S )z”Returns an array of strings for use by speech and braille that
        represents the nearest ancestor of an object which is a named panel.
        )r   rÀ  r   r´   rÎ   rÄ   )r7   rA   r   r’   r¶   rÊ   s         r!   Ú_generateNamedContainingPanelz'Generator._generateNamedContainingPanelÈ  so   € ð ˆÜ×,Ñ,¨SÓ1ˆÙÜ×#Ñ# FÔ+Ø×2Ñ2°6Ó:�ÙØ—M‘M %Ô(Øàˆô ×0Ñ0°Ó8ˆFò ð ˆrF   c                 ó   — g S rc   rC   rh   s      r!   Ú_generatePageSummaryzGenerator._generatePageSummary×  rf   rF   c                 ó   — g S rc   rC   rh   s      r!   rŽ  z!Generator._generatePositionInListÚ  rf   rF   c                 ó   — g S rc   rC   rh   s      r!   Ú_generateProgressBarIndexz#Generator._generateProgressBarIndexÝ  rf   rF   c                 ó   — g S rc   rC   rh   s      r!   Ú_generateProgressBarValuez#Generator._generateProgressBarValueà  rf   rF   c                 óZ   — t        t        j                  «       j                  d«      «      S )NÚprogressBarUpdateInterval)Úintr   Ú
getManagerÚ
getSetting)r7   s    r!   Ú_getProgressBarUpdateIntervalz'Generator._getProgressBarUpdateIntervalã  s#   € ÜÔ#×.Ñ.Ó0×;Ñ;Ð<WÓXÓYÐYrF   c                 ó,  — t        j                  |«      }| j                  || ¬«      \  }}||k(  r,d|d|g}t        j                  t        j
                  |d«       y|dk(  ryt        t        j                  «       |z
  «      }|| j                  «       k\  S )N)Útypez$GENERATOR: Not presenting update forz. Value stillTFéd   )	r   Úget_value_as_percentÚ getProgressBarUpdateTimeAndValuer   rƒ   r€   rÙ  r�   rÜ  )r7   rA   r   ÚpercentÚlastTimeÚ	lastValuer”   Úintervals           r!   Ú_shouldPresentProgressBarUpdatez)Generator._shouldPresentProgressBarUpdateæ  s‘   € Ü×.Ñ.¨sÓ3ˆØ"×CÑCÀCÈdÐCÓSÑˆ�)Ø�iÒØ<¸cÀ?ÐT[Ð\ˆFÜ×Ñœe×.Ñ.°¸Ô=Øà�cŠ>Øä”t—y‘y“{ XÑ-Ó.ˆØ˜4×=Ñ=Ó?Ñ?Ð?rF   c                 óÆ   — t        t        t        j                  | j                  «      «      }|D �ci c]  }|| j                  j                  |«      “Œ  c}| _        y c c}w rc   )r‰   r‹   r   Úis_validr)   r\   )r7   Úbarsr:   s      r!   Ú_cleanUpCachedProgressBarsz$Generator._cleanUpCachedProgressBarsô  sK   € Ü”Fœ8×,Ñ,¨d×.FÑ.FÓGÓHˆØOSÖ#TÈ! A d×&>Ñ&>×&BÑ&BÀ1Ó&EÑ$EÒ#TˆÕ ùÒ#Ts   ²#Ac                 ó  — | j                  «        | j                  j                  «       syt        | j                  j                  «       d„ ¬«      }|d   \  }}t	        | j                  j                  «       «      d   ||fS )N)Nç        Nc                 ó   — | d   S )Nr   rC   ry   s    r!   rz   z;Generator._getMostRecentProgressBarUpdate.<locals>.<lambda>ý  s   € ÈqÐQRÉt€ rF   )rU   éÿÿÿÿ)rê  r)   ÚvaluesÚsortedr‰   rM   )r7   ÚsortedValuesÚprevTimeÚ	prevValues       r!   Ú_getMostRecentProgressBarUpdatez)Generator._getMostRecentProgressBarUpdateø  ss   € Ø×'Ñ'Ô)Ø×'Ñ'×.Ñ.Ô0Ø"ä˜d×6Ñ6×=Ñ=Ó?Á^ÔTˆØ*¨2Ñ.Ñˆ�)Ü�D×,Ñ,×1Ñ1Ó3Ó4°RÑ8¸(ÀIÐMÐMrF   c                 ó  — | j                  «        || j                  vrd| j                  |<   | j                  |«      }t        | j                  j	                  «       «      j                  |«      }|dz   t        | j                  «      fS )N©rì  Nr   )rê  r)   rá  r‰   rï  Úindexr4   )r7   rA   Ú	thisValuer÷  s       r!   ÚgetProgressBarNumberAndCountz&Generator.getProgressBarNumberAndCount  sz   € Ø×'Ñ'Ô)Ø�d×.Ñ.Ñ.Ø,5ˆD×$Ñ$ SÑ)à×9Ñ9¸#Ó>ˆ	Ü�T×-Ñ-×4Ñ4Ó6Ó7×=Ñ=¸iÓHˆØ�q‰yœ#˜d×6Ñ6Ó7Ð7Ð7rF   c                 ór   — || j                   vrd| j                   |<   | j                   j                  |«      S )Nrö  )r)   r\   rh   s      r!   rá  z*Generator.getProgressBarUpdateTimeAndValue
  s7   € Ø�d×.Ñ.Ñ.Ø,5ˆD×$Ñ$ SÑ)à×'Ñ'×+Ñ+¨CÓ0Ð0rF   Nc                 óˆ   — |xs t        j                   «       }|xs t        j                  |«      }||f| j                  |<   y rc   )r�   r   rà  r)   )r7   rA   rã  rä  s       r!   r�   z*Generator.setProgressBarUpdateTimeAndValue  s<   € ØÒ*œtŸy™y›{ˆØÒB¤×!=Ñ!=¸cÓ!Bˆ	Ø(0°)Ð(;ˆ× Ñ  Ò%rF   c                 ó²
  — | j                   j                  j                  |«      �r
| j                   j                  j                  |«      ry| j                   j                  j	                  |«      ry| j                   j                  j                  |«      ry| j                   j                  j                  |«      ry| j                   j                  j                  |«      ry| j                   j                  j                  |«      ry| j                   j                  j                  |«      ry| j                   j                  j                  |«      r<| j                   j                  j                  |«      ryt        j                  |«      ry	| j                   j                  j                  |«      ry
| j                   j                  j                  |«      rt         j"                  j$                  S | j                   j                  j'                  |«      rt         j"                  j(                  S | j                   j                  j+                  |«      rt         j"                  j,                  S | j                   j                  j/                  |«      ry| j                   j                  j1                  |«      ry| j                   j                  j3                  |«      ry| j                   j                  j5                  |«      ry| j                   j                  j7                  |«      ry| j                   j                  j9                  |«      rt         j"                  j:                  S | j                   j                  j=                  |«      rt         j"                  j>                  S | j                   j                  jA                  |«      rt         j"                  jB                  S | j                   j                  jE                  |«      ry| j                   j                  jG                  |«      ry| j                   j                  j                  |«      r@| j                   j                  jI                  |«      ryt         j"                  jJ                  S | j                   j                  jM                  |«      rt         j"                  jN                  S | j                   j                  jQ                  |«      r/tS        jT                  |«      rt         j"                  jV                  S |jY                  dtS        jZ                  |«      «      S )NÚROLE_MATH_SCRIPT_SUBSUPERÚROLE_MATH_SCRIPT_UNDEROVERÚROLE_MATH_MULTISCRIPTÚROLE_MATH_ENCLOSEDÚROLE_MATH_FENCEDÚROLE_MATH_TABLEÚROLE_MATH_TABLE_ROWÚROLE_DPUB_LANDMARKÚROLE_DPUB_SECTIONÚROLE_SWITCHÚROLE_CONTENT_DELETIONÚROLE_CONTENT_ERRORÚROLE_CONTENT_INSERTIONÚROLE_CONTENT_MARKÚROLE_CONTENT_SUGGESTIONÚROLE_ARTICLE_IN_FEEDÚ	ROLE_FEEDÚROLE_REGIONrB   ).r(   rÂ   ÚisMathÚisMathSubOrSuperScriptÚisMathUnderOrOverScriptÚisMathMultiScriptÚisMathEncloseÚisMathFencedÚisMathTableÚisMathTableRowÚisDPubÚ
isLandmarkr   Ú
is_sectionÚisSwitchÚisAnchorr   r¦   ÚSTATICÚisBlockquoteÚBLOCK_QUOTEÚ	isCommentÚCOMMENTÚisContentDeletionÚisContentErrorÚisContentInsertionÚisContentMarkedÚisContentSuggestionÚisDescriptionListÚDESCRIPTION_LISTÚisDescriptionListTermÚDESCRIPTION_TERMÚisDescriptionListDescriptionÚDESCRIPTION_VALUEÚisFeedArticleÚisFeedÚisLandmarkRegionÚLANDMARKÚisFocusableLabelÚ	LIST_ITEMÚ
isDocumentr   Úsupports_imageÚIMAGEr\   r‚   rh   s      r!   Ú_getAlternativeRolezGenerator._getAlternativeRole  sŸ  € Ø�<‰<×!Ñ!×(Ñ(¨Õ-Ø�|‰|×%Ñ%×<Ñ<¸SÔAØ2Ø�|‰|×%Ñ%×=Ñ=¸cÔBØ3Ø�|‰|×%Ñ%×7Ñ7¸Ô<Ø.Ø�|‰|×%Ñ%×3Ñ3°CÔ8Ø+Ø�|‰|×%Ñ%×2Ñ2°3Ô7Ø)Ø�|‰|×%Ñ%×1Ñ1°#Ô6Ø(Ø�|‰|×%Ñ%×4Ñ4°SÔ9Ø,Ø�<‰<×!Ñ!×(Ñ(¨Ô-Ø�|‰|×%Ñ%×0Ñ0°Ô5Ø+Ü×%Ñ% cÔ*Ø*Ø�<‰<×!Ñ!×*Ñ*¨3Ô/Ø Ø�<‰<×!Ñ!×*Ñ*¨3Ô/Ü—:‘:×$Ñ$Ð$Ø�<‰<×!Ñ!×.Ñ.¨sÔ3Ü—:‘:×)Ñ)Ð)Ø�<‰<×!Ñ!×+Ñ+¨CÔ0Ü—:‘:×%Ñ%Ð%Ø�<‰<×!Ñ!×3Ñ3°CÔ8Ø*Ø�<‰<×!Ñ!×0Ñ0°Ô5Ø'Ø�<‰<×!Ñ!×4Ñ4°SÔ9Ø+Ø�<‰<×!Ñ!×1Ñ1°#Ô6Ø&Ø�<‰<×!Ñ!×5Ñ5°cÔ:Ø,Ø�<‰<×!Ñ!×3Ñ3°CÔ8Ü—:‘:×.Ñ.Ð.Ø�<‰<×!Ñ!×7Ñ7¸Ô<Ü—:‘:×.Ñ.Ð.Ø�<‰<×!Ñ!×>Ñ>¸sÔCÜ—:‘:×/Ñ/Ð/Ø�<‰<×!Ñ!×/Ñ/°Ô4Ø)Ø�<‰<×!Ñ!×(Ñ(¨Ô-ØØ�<‰<×!Ñ!×,Ñ,¨SÔ1Ø�|‰|×%Ñ%×6Ñ6°sÔ;Ø$Ü—:‘:×&Ñ&Ð&Ø�<‰<×!Ñ!×2Ñ2°3Ô7Ü—:‘:×'Ñ'Ð'Ø�<‰<×!Ñ!×,Ñ,¨SÔ1´h×6MÑ6MÈcÔ6RÜ—:‘:×#Ñ#Ð#à�x‰x˜¤× 1Ñ 1°#Ó 6Ó7Ð7rF   c                 ó†  — |j                  dt        j                  |«      «      }t        j                  |«      �rdt	        j
                  |«      rt        j                  S t	        j                  |«      rt        j                  S t	        j                  |«      rt        j                  S t	        j                  |«      rt        j                  S t	        j                  |«      rt        j                  S t	        j                   |«      rt        j"                  S t	        j$                  |«      rqt	        j&                  |«      s|j                  dd«      rJt	        j(                  |«      rt        j"                  S t	        j*                  |«      rt        j                  S | j,                  j.                  j1                  |«      rt        j2                  S | j,                  j.                  j5                  |«      rt        j6                  S | j,                  j.                  j9                  |«      rt        j:                  S | j,                  j.                  j=                  |«      rt        j>                  S | j,                  j.                  jA                  |«      rt        jB                  S | j,                  j.                  jE                  |«      �rë| j,                  j.                  jG                  |«      �rð| j,                  j.                  jI                  |«      rt        jJ                  S | j,                  j.                  jM                  |«      rt        jN                  S | j,                  j.                  jQ                  |«      rt        jR                  S | j,                  j.                  jU                  |«      rt        jV                  S | j,                  j.                  jY                  |«      rt        jZ                  S | j,                  j.                  j]                  |«      rt        j^                  S | j,                  j.                  ja                  |«      rt        jb                  S | j,                  j.                  je                  |«      rt        jf                  S | j,                  j.                  ji                  |«      rt        jj                  S | j,                  j.                  jm                  |«      rt        jn                  S | j,                  j.                  jq                  |«      rt        jr                  S | j,                  j.                  ju                  |«      rt        jv                  S | j,                  j.                  jy                  |«      rt        jz                  S | j,                  j.                  j}                  |«      rt        j~                  S | j,                  j.                  j�                  |«      rt        j‚                  S | j,                  j.                  j…                  |«      rt        j†                  S | j,                  j.                  j‰                  |«      rt        jŠ                  S | j,                  j.                  j�                  |«      rt        jŽ                  S | j,                  j.                  j‘                  |«      �råt        j’                  S |dk(  �r©| j,                  j.                  j•                  |«      rt        j–                  S | j,                  j.                  j™                  |«      rt        jš                  S | j,                  j.                  j�                  |«      rt        jž                  S | j,                  j.                  j¡                  |«      rt        j¢                  S | j,                  j.                  j¥                  |«      rt        j¦                  S | j,                  j.                  j©                  |«      rt        jª                  S | j,                  j.                  j­                  |«      rt        j®                  S | j,                  j.                  j±                  |«      �r6t        j²                  S |t´        j¶                  j¸                  k(  rj| j,                  j.                  j»                  |«      rt        j¼                  S | j,                  j.                  j¿                  |«      r¯t        jÀ                  S | j,                  j.                  jÃ                  |«      rt        jÄ                  S | j,                  j.                  jÇ                  |«      rt        jÈ                  S | j,                  j.                  jË                  |«      rt        jÌ                  S | j,                  j.                  jG                  |«      �rÙ| j,                  j.                  jÏ                  |«      ry| j,                  j.                  jÑ                  |«      rt        jÒ                  S | j,                  j.                  jÕ                  |«      rt        jÖ                  S | j,                  j.                  jÙ                  |«      rt        jÚ                  S | j,                  j.                  jÝ                  |«      rt        jÞ                  S | j,                  j.                  já                  |«      rt        jâ                  S | j,                  j.                  jå                  |«      rt        jæ                  S | j,                  j.                  jé                  |«      rt        jê                  S | j,                  j.                  jí                  |«      rZt´        j¶                  jî                  }n?| j,                  j.                  jñ                  |«      rt´        j¶                  jò                  }tõ        |t´        j¶                  «      s	 |j÷                  «       S tµ        jú                  |«      }tý        jþ                  |«      }|tü        j¶                  �j                   k(  r3|t´        j¶                  �j                  k(  rtý        jþ                  d«      }tý        �j                  |«      S # tø        $ r Y yw xY w)NrB   rm   Fr  rK   Ú	statusbar)ƒr\   r   r‚   Úsupports_valuer   Úis_horizontal_sliderr
   ÚROLE_SLIDER_HORIZONTALÚis_vertical_sliderÚROLE_SLIDER_VERTICALÚis_horizontal_scrollbarÚROLE_SCROLL_BAR_HORIZONTALÚis_vertical_scrollbarÚROLE_SCROLL_BAR_VERTICALÚis_horizontal_separatorÚROLE_SPLITTER_HORIZONTALÚis_vertical_separatorÚROLE_SPLITTER_VERTICALÚis_split_paner°  Úis_horizontalÚis_verticalr(   rÂ   r%  r  r-  r  ÚisFigureÚROLE_FIGUREÚisMenuButtonÚROLE_MENU_BUTTONr  r  r  r  ÚisDPubAcknowledgmentsÚROLE_ACKNOWLEDGMENTSÚisDPubAfterwordÚROLE_AFTERWORDÚisDPubAppendixÚROLE_APPENDIXÚisDPubBibliographyÚROLE_BIBLIOGRAPHYÚisDPubChapterÚROLE_CHAPTERÚisDPubConclusionÚROLE_CONCLUSIONÚisDPubCreditsÚROLE_CREDITSÚisDPubEndnotesÚROLE_ENDNOTESÚisDPubEpilogueÚROLE_EPILOGUEÚisDPubErrataÚROLE_ERRATAÚisDPubForewordÚROLE_FOREWORDÚisDPubGlossaryÚROLE_GLOSSARYÚisDPubIndexÚ
ROLE_INDEXÚisDPubIntroductionÚROLE_INTRODUCTIONÚisDPubPagelistÚROLE_PAGELISTÚ
isDPubPartÚ	ROLE_PARTÚisDPubPrefaceÚROLE_PREFACEÚisDPubPrologueÚROLE_PROLOGUEÚ	isDPubTocÚROLE_TOCÚisDPubAbstractÚROLE_ABSTRACTÚisDPubColophonÚROLE_COLOPHONÚisDPubCreditÚROLE_CREDITÚisDPubDedicationÚROLE_DEDICATIONÚisDPubEpigraphÚROLE_EPIGRAPHÚisDPubExampleÚROLE_EXAMPLEÚisDPubPullquoteÚROLE_PULLQUOTEÚ	isDPubQnaÚROLE_QNAr   r¦   r1  ÚisDPubBiblioentryÚROLE_BIBLIOENTRYÚisDPubEndnoteÚROLE_ENDNOTEÚisDPubCoverÚ
ROLE_COVERÚisDPubPagebreakÚROLE_PAGEBREAKÚisDPubSubtitleÚROLE_SUBTITLEÚisLandmarkWithoutTypeÚisLandmarkBannerÚROLE_LANDMARK_BANNERÚisLandmarkComplementaryÚROLE_LANDMARK_COMPLEMENTARYÚisLandmarkContentInfoÚROLE_LANDMARK_CONTENTINFOÚisLandmarkMainÚROLE_LANDMARK_MAINÚisLandmarkNavigationÚROLE_LANDMARK_NAVIGATIONr.  ÚROLE_LANDMARK_REGIONÚisLandmarkSearchÚROLE_LANDMARK_SEARCHÚisLandmarkFormÚFORMr  r   r1   rT  rT   Úrole_get_namer   Úrole_for_nameÚINVALIDÚ
STATUS_BARÚrole_get_localized_name)r7   rA   r   rB   ÚnonlocalizedÚatkRoles         r!   rT  zGenerator.getLocalizedRoleNameQ  s»  € Ø�x‰x˜¤× 1Ñ 1°#Ó 6Ó7ˆä×"Ñ" 3Õ'Ü×/Ñ/°Ô4Ü(×?Ñ?Ð?Ü×-Ñ-¨cÔ2Ü(×=Ñ=Ð=Ü×2Ñ2°3Ô7Ü(×CÑCÐCÜ×0Ñ0°Ô5Ü(×AÑAÐAÜ×2Ñ2°3Ô7Ü(×AÑAÐAÜ×0Ñ0°Ô5Ü(×?Ñ?Ð?Ü×(Ñ(¨Ô-Ü×*Ñ*¨3Ô/°4·8±8Ð<LÈeÔ3Tä×,Ñ,¨SÔ1Ü,×CÑCÐCÜ×*Ñ*¨3Ô/Ü,×EÑEÐEà�<‰<×!Ñ!×5Ñ5°cÔ:Ü$×<Ñ<Ð<à�<‰<×!Ñ!×(Ñ(¨Ô-Ü$×.Ñ.Ð.à�<‰<×!Ñ!×*Ñ*¨3Ô/Ü$×0Ñ0Ð0à�<‰<×!Ñ!×.Ñ.¨sÔ3Ü$×5Ñ5Ð5à�<‰<×!Ñ!×*Ñ*¨3Ô/Ü$×0Ñ0Ð0à�<‰<×!Ñ!×(Ñ(¨Õ-Ø�|‰|×%Ñ%×0Ñ0°Õ5Ø—<‘<×)Ñ)×?Ñ?ÀÔDÜ,×AÑAÐAØ—<‘<×)Ñ)×9Ñ9¸#Ô>Ü,×;Ñ;Ð;Ø—<‘<×)Ñ)×8Ñ8¸Ô=Ü,×:Ñ:Ð:Ø—<‘<×)Ñ)×<Ñ<¸SÔAÜ,×>Ñ>Ð>Ø—<‘<×)Ñ)×7Ñ7¸Ô<Ü,×9Ñ9Ð9Ø—<‘<×)Ñ)×:Ñ:¸3Ô?Ü,×<Ñ<Ð<Ø—<‘<×)Ñ)×7Ñ7¸Ô<Ü,×9Ñ9Ð9Ø—<‘<×)Ñ)×8Ñ8¸Ô=Ü,×:Ñ:Ð:Ø—<‘<×)Ñ)×8Ñ8¸Ô=Ü,×:Ñ:Ð:Ø—<‘<×)Ñ)×6Ñ6°sÔ;Ü,×8Ñ8Ð8Ø—<‘<×)Ñ)×8Ñ8¸Ô=Ü,×:Ñ:Ð:Ø—<‘<×)Ñ)×8Ñ8¸Ô=Ü,×:Ñ:Ð:Ø—<‘<×)Ñ)×5Ñ5°cÔ:Ü,×7Ñ7Ð7Ø—<‘<×)Ñ)×<Ñ<¸SÔAÜ,×>Ñ>Ð>Ø—<‘<×)Ñ)×8Ñ8¸Ô=Ü,×:Ñ:Ð:Ø—<‘<×)Ñ)×4Ñ4°SÔ9Ü,×6Ñ6Ð6Ø—<‘<×)Ñ)×7Ñ7¸Ô<Ü,×9Ñ9Ð9Ø—<‘<×)Ñ)×8Ñ8¸Ô=Ü,×:Ñ:Ð:Ø—<‘<×)Ñ)×3Ñ3°CÕ8Ü,×5Ñ5Ð5ØÐ,Ó,Ø—<‘<×)Ñ)×8Ñ8¸Ô=Ü,×:Ñ:Ð:Ø—<‘<×)Ñ)×8Ñ8¸Ô=Ü,×:Ñ:Ð:Ø—<‘<×)Ñ)×6Ñ6°sÔ;Ü,×8Ñ8Ð8Ø—<‘<×)Ñ)×:Ñ:¸3Ô?Ü,×<Ñ<Ð<Ø—<‘<×)Ñ)×8Ñ8¸Ô=Ü,×:Ñ:Ð:Ø—<‘<×)Ñ)×7Ñ7¸Ô<Ü,×9Ñ9Ð9Ø—<‘<×)Ñ)×9Ñ9¸#Ô>Ü,×;Ñ;Ð;Ø—<‘<×)Ñ)×3Ñ3°CÕ8Ü,×5Ñ5Ð5ØœŸ™×-Ñ-Ò-Ø—<‘<×)Ñ)×;Ñ;¸CÔ@Ü,×=Ñ=Ð=Ø—<‘<×)Ñ)×7Ñ7¸Ô<Ü,×9Ñ9Ð9à—<‘<×)Ñ)×5Ñ5°cÔ:Ü,×7Ñ7Ð7Ø—<‘<×)Ñ)×9Ñ9¸#Ô>Ü,×;Ñ;Ð;Ø—<‘<×)Ñ)×8Ñ8¸Ô=Ü,×:Ñ:Ð:à�<‰<×!Ñ!×,Ñ,¨SÕ1Ø�|‰|×%Ñ%×;Ñ;¸CÔ@ØØ�|‰|×%Ñ%×6Ñ6°sÔ;Ü(×=Ñ=Ð=Ø�|‰|×%Ñ%×=Ñ=¸cÔBÜ(×DÑDÐDØ�|‰|×%Ñ%×;Ñ;¸CÔ@Ü(×BÑBÐBØ�|‰|×%Ñ%×4Ñ4°SÔ9Ü(×;Ñ;Ð;Ø�|‰|×%Ñ%×:Ñ:¸3Ô?Ü(×AÑAÐAØ�|‰|×%Ñ%×6Ñ6°sÔ;Ü(×=Ñ=Ð=Ø�|‰|×%Ñ%×6Ñ6°sÔ;Ü(×=Ñ=Ð=Ø�|‰|×%Ñ%×4Ñ4°SÔ9Ü—z‘z—‘‘Ø�\‰\×#Ñ#×-Ñ-¨cÔ2Ü—:‘:×%Ñ%ˆDä˜$¤§
¡
Ô+ðØ×/Ñ/Ó1Ð1ô ×*Ñ*¨4Ó0ˆÜ×#Ñ# LÓ1ˆØ”c—h‘h×&Ò&Ò&¨4´5·:±:×3HÒ3HÒ+HÜ×'Ñ'¨Ó4ˆGä×*Ò*¨7Ó3Ð3øô ò Ùðús   ðr4 ò4	s ò?s c                 ó  — | j                   j                  j                  |«      r | j                  |fi |¤ŽS |j	                  dt        j                  |«      «      }|t        j                  j                  k(  r | j                  |fi |¤ŽS |t        j                  j                  t        j                  j                  fv r | j                  |fi |¤ŽS |t        j                  j                  t        j                  j                  fv r | j                   |fi |¤ŽS |t        j                  j"                  k(  r | j$                  |fi |¤ŽS |t        j                  j&                  k(  r | j(                  |fi |¤ŽS g S ©NrB   )r(   rÂ   r  r1  r\   r   r‚   r   r¦   Ú	MENU_ITEMr:  r&  ÚRADIO_MENU_ITEMr  r  ÚCHECK_MENU_ITEMr  r(  r4  rÁ   r  r¨   s       r!   ÚgetStateIndicatorzGenerator.getStateIndicatorá  sB  € Ø�<‰<×!Ñ!×*Ñ*¨3Ô/Ø,�4×,Ñ,¨SÑ9°DÑ9Ð9à�x‰x˜¤× 1Ñ 1°#Ó 6Ó7ˆà”5—:‘:×'Ñ'Ò'Ø5�4×5Ñ5°cÑB¸TÑBÐBà”E—J‘J×+Ñ+¬U¯Z©Z×-GÑ-GÐHÑHØ+�4×+Ñ+¨CÑ8°4Ñ8Ð8à”E—J‘J×(Ñ(¬%¯*©*×*DÑ*DÐEÑEØ-�4×-Ñ-¨cÑ:°TÑ:Ð:à”5—:‘:×+Ñ+Ò+Ø,�4×,Ñ,¨SÑ9°DÑ9Ð9à”5—:‘:×(Ñ(Ò(Ø1�4×1Ñ1°#Ñ>¸Ñ>Ð>àˆ	rF   c                 óB  — |j                  dt        j                  |«      «      }|t        j                  j
                  k(  r | j                  |fi |¤ŽS |t        j                  j                  t        j                  j                  fv r | j                  |fi |¤ŽS g S r¤  )
r\   r   r‚   r   r¦   ÚPROGRESS_BARrÖ  Ú
SCROLL_BARr'  Ú_generatePercentager¨   s       r!   ÚgetValuezGenerator.getValueø  s…   € Ø�x‰x˜¤× 1Ñ 1°#Ó 6Ó7ˆà”5—:‘:×*Ñ*Ò*Ø1�4×1Ñ1°#Ñ>¸Ñ>Ð>à”E—J‘J×)Ñ)¬5¯:©:×+<Ñ+<Ð=Ñ=Ø+�4×+Ñ+¨CÑ8°4Ñ8Ð8àˆ	rF   )T)NN)Tr   Ú
__module__Ú__qualname__Ú__doc__r?   rE   r6   r_   ra   re   ri   rš   ru   rŽ   r¤   r©   rµ   r¾   rÎ   rÑ   rÕ   rÔ   rÀ   rá   rã   rç   ré   rë   rí   rï   rñ   ró   rù   r  r
  r  r  r  r  r,  r1  r4  r8  r:  r@  rE  r^  rc  rf  rq  rs  ru  rx  r‚  r•  r—  r�  rŸ  r¡  r¥  r§  r¬  r³  r¶  rº  rÄ  rË  rÍ  rÏ  rÑ  rŽ  rÔ  rÖ  rÜ  ræ  rê  rô  rù  rá  r�   r5  rT  r¨  r­  rC   rF   r!   r%   r%   O   s©  „ ñò!ò#ò*"òXò	òòòuón*ò2òòò(òTò&!òF	ò
ò,ò\
òò
ò	ò"òòòòòòòò4ò&òòò&ò"ò&
òò"òòò(ò*"òHòBòò@ò@ò(ò0ò4&ò\ò
ò'ò%òò ò(ò*ò6òò&ò0ò&3òòòòòòZò@òUòNò8ò1ó<ò
:8òxN4ò`ó.	rF   r%   )é   )(r°  Ú__id__Ú__version__Ú__date__Ú__copyright__Ú__license__ÚgiÚrequire_versionÚgi.repositoryr   r   rÅ   r   r�   r   rK   r   r   r	   r
   r   r   Úax_hypertextr   Ú	ax_objectr   Úax_tabler   Úax_utilitiesr   Úax_valuer   Úcollections.abcÚabcr2   ÚImportErrorÚcollectionsr"   r-   r%   rC   rF   r!   ú<module>rÃ     s´   ðñ* Hà€Ø€Ø€ð7€à€ã 	Ø €× Ñ �7˜EÔ "Ý à €× Ñ �5˜%Ô  Ý ã 	Û 
Û Û å Ý Ý Ý Ý Ý Ý %Ý Ý Ý %Ý ð*Ý-ó%ð" €÷rò røð- ò *Ý)ð*ús   ÂB- Â-	B9Â8B9