SZU-R(1)

NAME
szu-r - reformat CJK text for translation

SYNOPSIS
szu-r [options] [file ...]

DESCRIPTION
This tool transforms Chinese, Japanese, or Korean (CJK) text into lines in which words are not broken apart. The utility does this by collapsing all line breaks, and then reformatting the text based on horizontal spacing and punctuation. If no input file is specified, then text is read from the standard input stream (stdin). Output text is written to the standard output (stdout).

Reformatting CJK text is an important step before attempting machine translation on it. This program may be used to preprocess text prior to its translation.

OPTIONS

-h, --help
    print usage information and then exit

-v, --verbose
    include information useful for debugging

EXIT STATUS
The exit status is 0 on normal termination, and 1 on error.

DIAGNOSTICS
Errors will print a message to the standard error stream. To enable stack traces for debugging, enable the “verbose” option.

EXAMPLES
$ szu-r infile > outfile

Read text from one file, reformat it, and write it to another file.

$ cat mytext | szu-r | szu-t mytable

Use the program as a text filter for translation preprocessing.

SEE ALSO
szu-t(1)

BUGS
Please contact the author if any bugs are found, or file a bug report with the project. Incomplete or inaccurate documentation should be treated as a bug.

AUTHOR
yaoguai <http://lapislazulitexts.com/sanzang>