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

Class CEDICTGRBuilder

source code


Builds the CEDICT-GR dictionary.

Nested Classes [hide private]

Inherited from EDICTFormatBuilder: TableGenerator

Instance Methods [hide private]
str
getArchiveContentName(self, filePath)
Function extracting the name of contained file from the zipped archive using the file name.
source code

Inherited from EDICTFormatBuilder: __init__, build, buildFTS3CreateTableStatement, buildFTS3Tables, getFileHandle, getGenerator, insertFTS3Tables, remove, testFTS3

Inherited from EntryGeneratorBuilder: getEntryDict

Inherited from TableBuilder: buildIndexObjects, buildTableObject, findFile

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

Class Variables [hide private]
  PROVIDES = 'CEDICTGR'
Contains the name of the table provided by this module.
  FILE_NAMES = ['cedictgr.zip', 'cedictgr.b5']
Names of file containing the edict formated dictionary.
  ENCODING = 'big5hkscs'
Encoding of the dictionary file.

Inherited from EDICTFormatBuilder: COLUMNS, COLUMN_TYPES, ENTRY_REGEX, FILTER, FULLTEXT_COLUMNS, IGNORE_LINES, INDEX_KEYS, PRIMARY_KEYS

Inherited from TableBuilder: DEPENDS

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getArchiveContentName(self, filePath)

source code 

Function extracting the name of contained file from the zipped archive using the file name. Reimplement and adapt to own needs.

Parameters:
  • filePath - path of file
Returns: str
name of file in archive
Overrides: EDICTFormatBuilder.getArchiveContentName
(inherited documentation)