cjknife — Command Line Interface

cjknife exposes most functions of the library to the command line.


Show character information:

$ cjknife -i 周
Information for character 周 (traditional locale, Unicode domain)
Unicode codepoint: 0x5468 (21608, character form)
Radical index: 30, radical form: ⼝
Stroke count: 8
Phonetic data (CantoneseYale): jāu
Phonetic data (GR): jou
Phonetic data (Hangul): 주
Phonetic data (Jyutping): zau1
Phonetic data (MandarinBraille): ⠌⠷⠁
Phonetic data (MandarinIPA): tʂou˥˥
Phonetic data (Pinyin): zhōu
Phonetic data (ShanghaineseIPA): ʦɤ˥˧
Phonetic data (WadeGiles): chou1
Semantic variants: 週
Glyph 0(*), stroke count: 8
Stroke order: ㇓㇆㇐㇑㇐㇑㇕㇐ (SP-HZG H-S-H S-HZ-H)

Search the EDICT dictionary:

$ cjknife -w EDICT -x "knowledge"
ナレッジ /(n) knowledge/
ノリッジ /(n) knowledge/
ノレッジ /(n) knowledge/
学 がく /(n) learning/scholarship/erudition/knowledge/(P)/
学殖 がくしょく /(n) scholarship/learning/knowledge/
学力 がくりょく /(n) scholarship/knowledge/literary ability/(P)/
心得 こころえ /(n) knowledge/information/(P)/
人智 じんち /(n) human intellect/knowledge/
人知 じんち /(n) human intellect/knowledge/
知見 ちけん /(n,vs) expertise/experience/knowledge/
智識 ちしき /(n) knowledge/
知識 ちしき /(n) knowledge/information/(P)/
知得 ちとく /(n,vs) comprehension/knowledge/
弁え わきまえ /(n) sense/discretion/knowledge/
辨え わきまえ /(oK) (n) sense/discretion/knowledge/

See also

Examples on the project’s wiki.


-i CHAR, --information=CHAR
print information about the given char
-a READING, --by-reading=READING
prints a list of characters for the given reading
-r CHARSTR, --get-reading=CHARSTR
prints the reading for a given character string (for characters with multiple readings these are grouped in square brackets; shows the character itself if no reading information available)
-f CHARSTR, --convert-form=CHARSTR
converts the given characters from/to Chinese simplified/traditional form (if ambiguous multiple characters are grouped in brackets)
performs commands -r and -f in one step
-k RADICALIDX, --by-radicalidx=RADICALIDX
get all characters for a radical given by its index
-p CHARSTR, --by-components=CHARSTR
get all characters that include all the chars contained in the given list as component
-m READING, --convert-reading=READING
converts the given reading from the input reading to the output reading (compatibility needed)
-s SOURCE, --source-reading=SOURCE
set given reading as input reading
-t TARGET, --target-reading=TARGET
set given reading as output reading
-l LOCALE, --locale=LOCALE
set locale, i.e. one character out of TCJKV
-d DOMAIN, --domain=DOMAIN
set character domain, e.g. ‘GB2312’
-L, --list-options
list available options for parameters
-V, --version
print version number and exit
-h, --help
display this help and exit
database url
searches the dictionary (wildcards ‘_’ and ‘%’)
-w DICTIONARY, --set-dictionary=DICTIONARY
set dictionary

Table Of Contents

Previous topic

Command line tools

Next topic

installcjkdict — Install dictionaries

This Page