Home | Trees | Indices | Help |
|
---|
|
Defines an abstract converter between two or more character readings.
The basic method is convert() which converts one input string from one reading to another.
The methods getDefaultOptions() and getOption() provide means to handle conversion specific settings.
The class itself can't be used directly, it has to be subclassed and its methods need to be extended.
|
|||
|
|||
|
|||
str |
|
||
list of str |
|
||
instance |
|
||
instance |
|
||
Inherited from |
|
|||
dict |
|
|
|||
CONVERSION_DIRECTIONS =
List of tuples for specifying supported conversion directions from reading A to reading B. |
|
|||
Inherited from |
|
Creates an instance of the ReadingConverter.
|
Returns the reading converter's default options. The keyword 'dbConnectInst' is not regarded a configuration option of the converter and is thus not included in the dict returned.
|
Returns the value of the reading converter's option.
|
Converts a string in the source reading to the given target reading.
|
Converts a list of entities in the source reading to the given target reading. The default implementation will raise a NotImplementedError.
|
Gets a reading operator instance for conversion from the given reading.
|
Gets a reading operator instance for conversion to the given reading.
|
|
CONVERSION_DIRECTIONSList of tuples for specifying supported conversion directions from reading A to reading B. If both directions are supported, two tuples (A, B) and (B, A) are given.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue May 19 22:38:36 2009 | http://epydoc.sourceforge.net |