Script cjknife
[hide private]
[frames] | no frames]

Script cjknife

cjknife is a tool that makes the functions offered by cjklib available to the command line.

Check what this script offers on the command line with cjknife -h.

The script's output depends on the following:


Copyright: Copyright (C) 2006-2008 Christoph Burgmer.

Classes [hide private]
  CharacterInfo
Provides lookup method services.
Functions [hide private]
dict
getConfigSettings()
Gets the script config from cjklib config file.
str
getPrintableList(stringList, joinString='')
Gets a printable representation for the given list.
list of str
getDecompositionForList(decompositionList)
Gets a fixed width string representation of the given decompositions.
list of str
getDecompositionForEntry(decomposition)
Gets a fixed width string representation of the given decomposition.
 
usage()
Prints the usage for this script.
 
version()
Prints the version of this script.
 
main()
Main method
Variables [hide private]
  __warningregistry__ = {('Not importing directory \'/usr/lib/py...
Function Details [hide private]

getConfigSettings()

 

Gets the script config from cjklib config file.

Returns: dict
dictionary holding the settings

getPrintableList(stringList, joinString='')

 

Gets a printable representation for the given list.

Parameters:
  • stringList (list of list of str) - strings that need to be concatenated for output
  • joinString (str) - string that concatenates the different values
Returns: str
printable representation for the given list

getDecompositionForList(decompositionList)

 

Gets a fixed width string representation of the given decompositions.

Parameters:
  • decompositionList (list) - a list of character decompositions
Returns: list of str
string representation of decomposition

getDecompositionForEntry(decomposition)

 

Gets a fixed width string representation of the given decomposition.

Parameters:
  • decomposition (list) - character decomposition tree
Returns: list of str
string representation of decomposition

Variables Details [hide private]

__warningregistry__

Value:
{('Not importing directory \'/usr/lib/python2.5/site-packages/cjklib\'\
: missing __init__.py',
  <type 'exceptions.ImportWarning'>,
  43): 1}