Module characterProcessing :: Class SpeechSymbolProcessor
[hide private]
[frames] | no frames]

Class SpeechSymbolProcessor

source code

object --+
         |
        SpeechSymbolProcessor

Handles processing of symbol pronunciation for a locale. Pronunciation information is taken from one or more SpeechSymbols instances.

Instance Methods [hide private]
 
localeSymbols(locale) source code
 
__init__(self, locale)
Constructor.
source code
 
_regexpRepl(self, m) source code
 
processText(self, text, level) source code
bool
updateSymbol(self, newSymbol)
Update information for a symbol if it has changed.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, locale)
(Constructor)

source code 

Constructor.

Parameters:
  • locale (str) - The locale for which symbol pronunciation should be processed.
Overrides: object.__init__

updateSymbol(self, newSymbol)

source code 

Update information for a symbol if it has changed. If there is a change, the changed information will be added to the user's symbol data. These changes do not take effect until the symbol processor is reinitialised.

Parameters:
Returns: bool
Whether there was a change.