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

Class UnihanBMPBuilder

source code


Builds the Unihan database from the Unihan file provided by Unicode for characters from the Basic Multilingual Plane (BMP) with code values between U+0000 and U+FFFF.

MySQL < 6 doesn't support true UTF-8, and uses a Version with max 3 bytes: http://dev.mysql.com/doc/refman/6.0/en/charset-unicode.html

Nested Classes [hide private]
  BMPEntryGenerator

Inherited from UnihanBuilder: EntryGenerator

Instance Methods [hide private]
 
__init__(self, dataPath, dbConnectInst, quiet=False)
Constructs the TableBuilder.
source code
 
getGenerator(self)
Returns the entry generator.
source code

Inherited from UnihanBuilder: build, getUnihanGenerator

Inherited from EntryGeneratorBuilder: getEntryDict, remove

Inherited from TableBuilder: buildIndexObjects, buildTableObject, findFile

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

Class Variables [hide private]

Inherited from UnihanBuilder: CHARACTER_COLUMN, COLUMN_TYPES, PROVIDES, unihanGenerator

Inherited from EntryGeneratorBuilder: COLUMNS, INDEX_KEYS, PRIMARY_KEYS

Inherited from TableBuilder: DEPENDS

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, dataPath, dbConnectInst, quiet=False)
(Constructor)

source code 

Constructs the TableBuilder.

Parameters:
  • dataPath - optional list of paths to the data file(s)
  • dbConnectInst - instance of a DatabaseConnector. If not given all sql code will be printed to stdout.
  • quiet - if true no status information will be printed to stderr
Overrides: object.__init__
(inherited documentation)

getGenerator(self)

source code 

Returns the entry generator. Needs to be implemented by child classes.

Overrides: EntryGeneratorBuilder.getGenerator
(inherited documentation)