Provides lookup method services.
|
__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
|
|
|
LANGUAGE_CHAR_LOCALE_MAPPING = { ' ja ' : ' J ' , ' ko ' : ' K ' , ' vi ' : ' V ...
Mapping table for locale to default character locale.
|
|
CHAR_LOCALE_NAME = { ' C ' : ' Chinese simplified ' , ' J ' : ' Japanese ' ...
Character locale names.
|
|
CHAR_LOCALE_DEFAULT_READING = { ' ja ' : ' Kana ' , ' ko ' : ' Hangul ' , ' ...
Character locale's default character reading.
|
|
DICTIONARY_INFO = { ' CEDICT ' : { ' defaultLocale ' : ' C ' , ' options ' : ...
Dictionaries with type (EDICT, CEDICT), reading and reading options.
|
|
READING_DEFAULT_DICTIONARY = { ' Pinyin ' : ' CEDICT ' }
Dictionary to use by default for a given reading.
|
|
VARIANT_TYPE_NAMES = { ' C ' : ' Compatible variant ' , ' M ' : ' Semanti ...
List of character variants and their names.
|