%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/orca/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/orca/__pycache__/acss.cpython-312.pyc

�

g
ff��6�dZdZdZdZdZdZdZGd�de�Zy	)
z�ACSS --- Aural CSS.

Class ACSS defines a simple wrapper for holding ACSS voice
definitions.  Speech engines implement the code for converting
ACSS definitions into engine-specific markup codes.

z$Id$zT. V. Ramanz
$Revision$z$Date$z#Copyright (c) 2005-2008 Google Inc.�LGPLc���eZdZdZdZdZdZdZdZdZ	dZ
d	Zed
ededed
ed
e	d
e
d
ediZdd�Z
d�Zd�Zd�Zd�Zd�Zd�Z�fd�Z�xZS)�ACSSz%Holds ACSS representation of a voice.�family�rate�gainz
average-pitchzpitch-range�stress�richness�punctuationsN�2�
��allc��tj|�|xsi}|rg|D]a}|dk(s|tjvs�|tjk(r,i||<||j�D]}||||||<��Z||||<�cyd|d<y)z%Create and initialize ACSS structure.�establishedFN)�dict�__init__r�settings�FAMILY�keys)�self�props�k�js    �+/usr/lib/python3/dist-packages/orca/acss.pyrz
ACSS.__init__>s����
�
�d��������
+���
�%��d�m�m�);��D�K�K�'�"$��Q��!&�q�����5�A�).�q��!��D��G�A�J�5�#(��(��Q��
+�#(�D���c��t|t�sy|jtj�|jtj�k7ry|jtj�|jtj�k7ry|jtj
�|jtj
�k7ryy)NFT)�
isinstancer�getr�RATE�
AVERAGE_PITCH)r�others  r�__eq__zACSS.__eq__Ss����%��&���8�8�D�K�K� �E�I�I�d�k�k�$:�:���8�8�D�I�I��%�)�)�D�I�I�"6�6���8�8�D�&�&�'�5�9�9�T�5G�5G�+H�H��rc�2�tj|||�y)z"Update name when we change values.N)r�__setitem__)r�key�values   rr$zACSS.__setitem__^s������s�E�*rc�0�tj||�y)zUpdate name if we delete a key.N)r�__delitem__)rr%s  rr(zACSS.__delitem__bs������s�#rc��d}t|j��}|r%|j�|D]}||�d||�d�z
}�|dd}|S)Nzacss-�-�:���)�listr�sort)r�_name�namesrs    r�namez	ACSS.namefs]�����T�Y�Y�[�!����J�J�L��
+���A�3�a��Q��y��*�*��
+��c�r�
���rc�d�|jtji�}|jd�S)N�locale�rrr�rrs  r�	getLocalezACSS.getLocaleps%�����$�+�+�r�*���z�z�(�#�#rc�d�|jtji�}|jd�S)N�dialectr4r5s  r�
getDialectzACSS.getDialectts%�����$�+�+�r�*���z�z�)�$�$rc����|jtj�}t|t�r0|jd��|jtj�t�|�|�S)Nr1)rrrrr�pop�super�update)r�newDictr�	__class__s   �rr=zACSS.updatexsL������T�[�[�)���f�d�#��
�
�6�(:�(B��K�K����$��w�~�g�&�&r)N)�__name__�
__module__�__qualname__�__doc__rr�GAINr �PITCH_RANGE�STRESS�RICHNESS�PUNCTUATIONSrrr"r$r(r1r6r9r=�
__classcell__)r?s@rrr$s����/��F��D��D�#�M�!�K��F��H�"�L�
	����������������	�H�(�*	�+�$��$�%�'�'rrN)	rC�__id__�
__author__�__version__�__date__�
__copyright__�__license__rr�rr�<module>rQs8��*�
��
�
�����5�
���Y'�4�Y'r

Zerion Mini Shell 1.0