%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/orca/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/orca/__pycache__/script_utilities.cpython-312.pyc |
� g f�7 � � � d Z dZdZdZdZdZddlZddlZddlZddl Z ddl mZ ej d d � ddl mZ ddl mZ dd l mZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl!m"Z" ddl#m$Z$ dd l%m&Z& dd!l'm(Z( dd"l)m*Z* dd#l+m,Z, dd$l-m.Z. dd%l/m0Z0 G d&� d'� Z1y)(z�Commonly-required utility methods needed by -- and potentially customized by -- application and toolkit scripts. They have been pulled out from the scripts because certain scripts had gotten way too large as a result of including these methods.z$Id$z $Revision$z$Date$z#Copyright (c) 2010 Joanmarie Diggs.�LGPL� N)�SequenceMatcher�Atspiz2.0)r )�Gdk��Gtk� )� colornames)�debug)� focus_manager)�keynames)�keybindings)�input_event)�mathsymbols)�messages)� orca_state)�object_properties)�pronunciation_dict)�script_manager)�settings)�settings_manager)�text_attribute_names)�AXComponent)�AXHypertext)�AXObject)�AXSelection)�AXTable)�AXText)�AXUtilities)�AXValuec �t � e Zd Z ej � ZdZdZg d�Zg d�Ze j Z e j de� Z e j ddj e� � d�e� Z e j ddj e� � d�e� Z e j d e� Zd ZdZdZd ZdZdZd� Zd� Zd� Zd� Zd� Zd� Zd� Z�d�d�Zd� Z d� Z!�d�d�Z"d� Z#d� Z$d� Z%d� Z&d � Z'�d�d!�Z(�d�d"�Z)d#� Z*d$� Z+d%� Z,d&� Z-d'� Z.d(� Z/d)� Z0d*� Z1d+� Z2d,� Z3d-� Z4d.� Z5d/� Z6d0� Z7d1� Z8d2� Z9d3� Z:d4� Z;d5� Z<d6� Z=d7� Z>d8� Z?d9� Z@d:� ZAd;� ZBd<� ZCd=� ZDd>� ZEd?� ZFd@� ZGdA� ZHdB� ZIdC� ZJdD� ZKdE� ZLdF� ZMdG� ZNdH� ZOdI� ZPdJ� ZQdK� ZRdL� ZSdM� ZTdN� ZUdO� ZVdP� ZWdQ� ZXdR� ZYdS� ZZdT� Z[dU� Z\dV� Z]dW� Z^dX� Z_dY� Z`dZ� Zad[� Zbd\� Zcd]� Zdd^� Zed_� Zfd`� Zgda� Zhdb� Zidc� Zjdd� Zkde� Zldf� Zmdg� Zndh� Zodi� Zpdj� Zqdk� Zrdl� Zs�d�dm�Ztdn� Zudo� Zvdp� Zwdq� Zxdr� Zyds� Zzdt� Z{du� Z|dv� Z}dw� Z~dx� Zdy� Z�dz� 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�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�d��Z��d�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�d��Z��d�d��Z��d�d��Z�d�� Z�d�� Z�d�� Z��d�d��Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�e�d�� � Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z� �d�d��Z�d�� Z�d�� Z�d�� Z�d�� Zǐd�d��Z�d�� Z�d Z�dÄ Z�dĄ Z�dń Z͐d�dƄZ�e�dDŽ � Z�dȄ Z�dɄ Z�dʄ Z�d˄ Z�d̄ Z�d̈́ Z�d΄ Z�dτ Z�dЄ Zؐd�dфZِd�d҄Z�e�dӄ � Zېd�dԄZܐd�dՄZ�dք Z�dׄ Z�d Z�dل Z�dڄ Z�d�dۄZ�d܄ Z�d݄ Z�dބ Z�d߄ Z�d� Z�d� Z�d� Z�d�d�Z�d� Z�d� Z�d� Z�d� Z�d�d�Z�d� Z�d� Z�d� Z�d�d�Z�d� Z�d� Z�d� Z�d� Z�d� Z�e�d� � Z�e�d� � Z�d� Z�d�� Z�d�� Z�d�� Z�e�d�� � �Z e��d�d��� �Zd�� �Zd�� �Zd�� �Zd�� �Ze�d�� � �Ze�d�� � �Ze��d � � �Ze��d� � �Z �d� �Z e��d� � �Ze��d� � �Z�d��d��Z �d��d��Z�d��d��Z�d��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��d��Z�d��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(� �Z0�d)� �Z1�d*� �Z2�d+� �Z3�d,� �Z4�d-� �Z5�d.� �Z6�d/� �Z7�d0� �Z8�d1� �Z9�d2� �Z:�d��d3��Z;�d��d4��Z<�d5� �Z=�d6� �Z>�d7� �Z?�d��d8��Z@�d9� �ZA�d:� �ZB�d��d;��ZC�d<� �ZD�d=� �ZE�d>� �ZF�d?� �ZG�d@� �ZH�d��dA��ZI�dB� �ZJ�dC� �ZKe��dD� � �ZL�dE� �ZM�dF� �ZN�dG� �ZO�dH� �ZP�dI� �ZQ�d��dJ��ZR�dK� �ZS�dL� �ZT�dM� �ZU�dN� �ZV�dO� �ZW�dP� �ZX�dQ� �ZY�dR� �ZZ�dS� �Z[�dT� �Z\�dU� �Z]�dV� �Z^�dW� �Z_�dX� �Z`�dY� �Za�dZ� �Zb�d[� �Zc�d\� �Zd�d]� �Ze�d^� �Zf�d_� �Zg�d`� �Zh�da� �Zi�db� �Zj�dc� �Zk�dd� �Zl�de� �Zm�df� �Zn�dg� �Zo�dh� �Zp�d��di��Zq�dj� �Zr�dk� �Zs�dl� �Zt�dm� �Zu�dn� �Zv�do� �Zw�dp� �Zx�dq� �Zy�dr� �Zz�ds� �Z{�dt� �Z|�du� �Z}�d��dv��Z~�dw� �Z�dx� �Z��dy� �Z��dz� �Z��d{� �Z��d|� �Z��d}� �Z��d~� �Z��d� �Z��d�� �Z��d��d���Z��d�� �Z��d�� �Z��d��d���Z��d��d���Z�y(� � Utilitiesu u ) u ⁰� ¹� ²� ³u ⁴u ⁵u ⁶u ⁷u ⁸u ⁹) u ₀u ₁u ₂u ₃u ₄u ₅u ₆u ₇u ₈u ₉z(\W+)�[� z]+z[^\w\s]�displayedDescription�displayedLabel� displayedText� keyBinding�nestingLevel� nodeLevelc �. � || _ d| _ i | _ y)z�Creates an instance of the Utilities class. Arguments: - script: the script with which this instance is associated. N)�_script�_clipboardHandlerId�_selectedMenuBarMenu)�self�scripts �7/usr/lib/python3/dist-packages/orca/script_utilities.py�__init__zUtilities.__init__d s � � ���#'�� �$&��!� c �t � t j |� sg S t j |� }|�g S d� }t j |t j j |� }dt |� d|dg}t j t j |d� |r|S t j |d�� \ }}| j |� }t |dz t j |d�� � D ]� } t j"