| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/orca/ |
Upload File : |
Ńň
z#ÝJc @ sF d Z d Z d Z d Z d Z d Z d d Z d d Z h Z d S( sR Exposes a dictionary, pronunciation_dict, that maps words to what
they sound like.s $Id$s
$Revision$s $Date$s- Copyright (c) 2006-2008 Sun Microsystems Inc.t LGPLc C sz t | t o | i d } n yH | i d i i d } | d j o
| | d St | d SWn | SXd S( sm Given a word, return a string that represents what this word
sounds like.
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.
s UTF-8i N( t
isinstancet unicodet encodet decodet lowert Nonet pronunciation_dict( t wordt pronunciationst lowerWord( ( s; /usr/lib/python2.6/site-packages/orca/pronunciation_dict.pyt getPronunciation s
c C sS | i d i i d } | d j o | | g | | <n | | g t | <d S( s9 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.
s UTF-8N( R R R R R ( R t replacementStringR t key( ( s; /usr/lib/python2.6/site-packages/orca/pronunciation_dict.pyt setPronunciation; s
N(
t __doc__t __id__t __version__t __date__t
__copyright__t __license__R R R R ( ( ( s; /usr/lib/python2.6/site-packages/orca/pronunciation_dict.pyt <module> s