Quick start
Gukhanmun reads text containing hanja and writes the same text with hanja replaced by their hangul readings.
Converting a file
Pass a file path as the positional argument:
Output goes to standard output by default. Use -o to write to a file
instead:
To replace a file in-place, pass the same path for both input and output. Gukhanmun writes to a temporary file first and replaces the original atomically, so the original is never left in a partial state:
Reading from standard input
Omit the file argument to read from standard input:
Specifying the input format
Gukhanmun infers the format from the file extension:
Override the detected format with -f:
The Markdown format also accepts variant parameters:
Verbose logging
Add -v to print debug information to standard error: