| Server IP : 93.86.61.54 / Your IP : 216.73.216.156 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/orca/__pycache__/ |
Upload File : |
o
S�bl
� @ s4 d Z dZdZdZdZdZddd�Zdd d
�Zi ZdS )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 C s( | � � }|pt}|�|| | g�}|d S )ay Given a word, return a string that represents what this word
sounds like. Note: This code does not handle the pronunciation
of character names. If you want a character name to be spoken,
treat it as a punctuation character at LEVEL_NONE in
punctuation_settings.py. See, for example, the left_arrow and
right_arrow characters.
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�entry� r �9/usr/lib/python3/dist-packages/orca/pronunciation_dict.py�getPronunciation s r
c C s0 | � � }|dur| |g||<