Home | Trees | Index | Help |
|
---|
Package pyTTS :: Module Pronounce :: Class Translator |
|
object
--+ |dict
--+ | Translator
Method Summary | |
---|---|
Initializes an instance. | |
Builds a pronunciation correction for the provided match object. | |
Compiles the regular expression. | |
Replace words in a text segment with pronunciation corrections. | |
Inherited from dict :
__cmp__ ,
__contains__ ,
__delitem__ ,
__eq__ ,
__ge__ ,
__getattribute__ ,
__getitem__ ,
__gt__ ,
__hash__ ,
__iter__ ,
__le__ ,
__len__ ,
__lt__ ,
__ne__ ,
__new__ ,
__repr__ ,
__setitem__ ,
clear ,
copy ,
get ,
has_key ,
items ,
iteritems ,
iterkeys ,
itervalues ,
keys ,
pop ,
popitem ,
setdefault ,
update ,
values
Inherited from object :
__delattr__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__str__
Inherited from type :
fromkeys
|
Instance Variable Summary | |
---|---|
re object | regex : Regular expression used to replace words |
Method Details |
---|
__init__(self,
d)
Initializes an instance.
|
__call__(self,
match)
Builds a pronunciation correction for the provided match object.
|
makeRegex(self)Compiles the regular expression. |
Translate(self, text)Replace words in a text segment with pronunciation corrections.
|
Instance Variable Details |
---|
regexRegular expression used to replace words
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Feb 18 13:59:28 2005 | http://epydoc.sf.net |