| Server IP : 39.108.156.168 / Your IP : 216.73.216.104 Web Server : nginx/1.24.0 System : Linux e2.ksyuki.com 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/orca/__pycache__/ |
Upload File : |
�
g
fD
� �0 � d Z dZdZdZdZdZd d�Zd d�Zi Zy)
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 � }|xs 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�#5�J��N�N�9�t�T�l�3�E���8�O� c �N � | j � }|�| |g||<