
    g
fD
                     0    d Z dZdZdZdZdZd	dZd	dZi Zy)
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                         }|xs t        }|j                  || | g      }|d   S )aQ  Given 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getPronunciationr      s7      

I5#5JNN9tTl3E8O    c                 N    | j                         }|| |g||<   y| |gt        |<   y)a9  Given 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)r   r   )r   replacementStringr	   keys       r   setPronunciationr   3   s6     **,C! $&79s$(*;"=3r   )N)	__doc____id____version____date____copyright____license__r   r   r    r   r   <module>r      s7   ( ?,>*  r   