Package cjklib :: Module build :: Class CharacterComponentLookupBuilder :: Class CharacterComponentGenerator
[hide private]
[frames] | no frames]

Class CharacterComponentGenerator

source code

Generates the component to character mapping.

Instance Methods [hide private]
 
__init__(self, dbConnectInst, characterSet)
Initialises the CharacterComponentGenerator.
source code
set
getComponents(self, char, zVariant, decompositionDict, componentDict)
Gets all character components for the given glyph.
source code
 
generator(self)
Provides the component entries.
source code
Method Details [hide private]

__init__(self, dbConnectInst, characterSet)
(Constructor)

source code 

Initialises the CharacterComponentGenerator.

Parameters:
  • dbConnectInst (instance) - instance of a DatabaseConnector
  • characterSet (set) - set of characters to generate the table for

getComponents(self, char, zVariant, decompositionDict, componentDict)

source code 

Gets all character components for the given glyph.

Parameters:
  • char (str) - Chinese character
  • zVariant (int) - Z-variant of character
Returns: set
all components of the character