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:
-
dictionary setting in the cjklib's config file
-
user locale settings are checked to guess appropriate values for the
character locale and the default input and output readings
Copyright:
Copyright (C) 2006-2008 Christoph Burgmer.
dict
|
|
str
|
getPrintableList(stringList,
joinString='
' )
Gets a printable representation for the given list. |
|
|
list of str
|
|
list of str
|
|
|
usage()
Prints the usage for this script. |
|
|
|
version()
Prints the version of this script. |
|
|
|
|
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
|
__warningregistry__
- Value:
{ ( ' Not importing directory \'/usr/lib/python2.5/site-packages/cjklib\'
: missing __init__.py ' ,
<type 'exceptions.ImportWarning'>,
43) : 1}
|
|