|
__init__(self,
locale=None,
readingN=None,
dictionary=None)
Initialises the CharacterInfo object. |
|
|
str
|
guessCharacterLocale(self)
Guesses the best suited character locale using the user's locale
settings. |
|
|
str
|
guessReading(self)
Guesses the best suited reading using the user's locale settings. |
|
|
list of str
|
|
|
|
dict
|
getReadingOptions(self,
string,
readingN)
Guesses the reading options using the given string to support reading
dialects. |
|
|
list of list of str
|
getReadingEntities(self,
string,
readingN=None)
Gets all possible decompositions for the given string. |
|
|
list of str
|
getSearchReading(self,
entities)
Prepares the given reading entities for a database search. |
|
|
list of tuple
|
|
list of list of str
|
getEquivalentCharTable(self,
componentList,
includeEquivalentRadicalForms=True)
Gets a list structure of equivalent chars for the given list of
characters. |
|
|
bool
|
isSemanticVariant(self,
char,
variants)
Checks if the character is a semantic variant form of the given
characters. |
|
|
str
|
convertReading(self,
readingString,
fromReading,
toReading=None)
Converts a string in the source reading to the given target reading. |
|
|
list of str
|
|
list of str
|
|
list of list of str
|
|
list of list of str
|
getSimplified(self,
charString)
Gets the Chinese simplified character representation for the given
character string. |
|
|
list of list of str
|
getTraditional(self,
charString)
Gets the traditional character representation for the given character
string. |
|
|
|
searchDictionaryExact(self,
searchString,
readingN=None,
limit=None)
Searches the dictionary for exact matches to the given string. |
|
|
|
searchDictionaryContaining(self,
searchString,
readingN=None,
position=' c ' ,
limit=None)
Searches the dictionary for matches containing the given string. |
|
|
list of tuple
|
getCharactersForComponents(self,
componentList,
includeEquivalentRadicalForms=True)
Gets all characters that contain the given components. |
|
|
dict
|
|