+
    Qi  c                  s
   R t ^ RIHt RtRtRtRtRt^ RIH	t	 ^ RI
Ht ^ R	I
Ht ^ R
I
Ht ^ RIHt ^ RIHt ^RIHt ^RIHt ^RIHt ]	'       d   ^ RIt]P2                  ! RR4       ^ RIHt  ! R R]P8                  4      tR# )Script for terminal support.)annotationsz$Id$z
$Revision$z$Date$zCopyright (c) 2016 Igalia, S.L.ZLGPL)TYPE_CHECKING)debug)focus_manager)typing_echo_presenter)default)AXTextBrailleGeneratorSpeechGenerator	UtilitiesNAtspiz2.0)r   c                  s   a  ] tR t^1t$ RtR]R&   R V 3R lltR R ltR R	 ltR
 R lt	R V 3R llt
R V 3R lltRtV ;t# )Scriptr    r   	utilitiesc                    V ^8  d   QhRRRR/# )   appzAtspi.AccessiblereturnZNone Zformat   "A/usr/lib/python3.14/site-packages/orca/scripts/terminal/script.py__annotate__Script.__annotate__6   s     / /, / /    c                	s4   < \         SV `  V4       R V n        R# )FN)super__init__present_if_inactive)selfr   	__class__s   &&r   r   ZScript.__init__6   s    ). r   c                   V ^8  d   QhRR/# )r   r   r	   r   r   r   r   r   r   :   s     & &'7 &r   c                    \        V 4      # )z.Returns the braille generator for this script.r   r      &r   get_braille_generatorZScript.get_braille_generator:   s      %%r   c               r!   )r   r   r   r   r   r   r   r   r   ?   s     % %o %r   c                r"   )z-Returns the speech generator for this script.r
   r#   r$   r   get_speech_generatorZScript.get_speech_generator?   s     t$$r   c               r!   )r   r   r   r   r   r   r   r   r   D   s      y r   c                r"   )z&Returns the utilities for this script.r   r#   r$   r   get_utilitiesZScript.get_utilitiesD   s     r   c               r   r   eventzAtspi.Eventr   Zboolr   r   r   r   r   r   I   s     . .[ .T .r   c                s   < V P                   P                  V4      '       d+   Rp\        P                  ! \        P                  VR4       R# \
        SV `  V4      # )z=Callback for object:text-changed:delete accessibility events.z*TERMINAL: Deletion is believed to be noiseT)r   Ztreat_event_as_noiser   print_message
LEVEL_INFOr   on_text_deleted)r   r)   msgr    s   && r   r,   ZScript.on_text_deletedI   sJ     >>..u55>C 0 0#t<w&u--r   c               r   r(   r   r   r   r   r   r   S   s      k d r   c                s  < \         P                  ! 4       P                  W4       V P                  P	                  V4      '       g8   Rp\
        P                  ! \
        P                  VR4       \        SV `%  V4      # Rp\
        P                  ! \
        P                  VR4       V P                  VP                  4       V P                  P                  V4      p\        V4      ^8X  d   V P                  V4       M8V P                  P!                  VP                  VR7      pV P#                  W44       V P%                  4       P'                  4       '       d+   Rp\
        P                  ! \
        P                  VR4       R# \(        P*                  ! VP                  4      p\,        P.                  ! 4       P1                  VP                  V4       \(        P2                  ! VP                  4       R# )z=Callback for object:text-changed:insert accessibility events.z0TERMINAL: Passing along event to default script.Tz=TERMINAL: Insertion is believed to be due to terminal command)ZobjZstringz=TERMINAL: Flat review presenter is active. Ignoring insertion)r   Zget_presenterZecho_delayed_terminal_pressr   Ztreat_event_as_commandr   r*   r+   r   on_text_insertedZupdate_brailleZsourceZinserted_textZlenZspeak_characterspeech_generatorvoiceZspeak_messageZget_flat_review_presenterZ	is_activer   Zget_caret_offsetr   Zget_managerZset_last_cursor_positionZupdate_cached_selected_text)r   r)   r-   Z
new_stringr0   Zoffsetr    s   &&    r   r.   ZScript.on_text_insertedS   sf    	++-II$V~~44U;;DC 0 0#t<7+E22ME,,c48ELL)^^11%8
z?a  ,))//ELL/TEz1))+5577QC 0 0#t<((6!!#<<U\\6R**5<<8r   )r   )Z__name__Z
__module__Z__qualname__Z__firstlineno____doc__Z__annotations__r   r%   r&   r'   r,   r.   Z__static_attributes__Z__classcell__)r    s   @r   r   r   1   s9    &/ /&
%

. . r   r   )r1   Z
__future__r   Z__id__Z__version__Z__date__Z__copyright__Z__license__Ztypingr   Zorcar   r   r   Zorca.scriptsr   Zorca.ax_textr   Zbraille_generatorr	   r/   r   Zscript_utilitiesr   ZgiZrequire_versionZgi.repositoryr   r   r   r   r   <module>r2      sn   * # #1     &    / - 'w&#@W^^ @r   