#traditional-chinese #convert #chinese

bin+lib s2tw

A simple tool for converting Simple Chinese to Traditional Chinese(TW)

23 stable releases

Uses new Rust 2024

new 1.1.1 Aug 9, 2026
1.0.21 Aug 11, 2024
1.0.19 Nov 13, 2023
1.0.15 Nov 4, 2022
1.0.2 Nov 28, 2018

#7 in #traditional-chinese

MIT license

11KB
164 lines

s2tw

CI

A simple tool for converting Simple Chinese to Traditional Chinese(TW).

Build

The OpenCC library needs to be installed on your system. See opencc-rust for how to install it and how to configure the build.

Help

EXAMPLES:
s2tw                   # Convert each of input lines from Simple Chinese to Traditional Chinese
s2tw chs.txt cht.txt   # Convert chs.txt (in Simple Chinese) to cht.txt (in Traditional Chinese)
s2tw a.chs.txt         # Convert a.chs.txt (in Simple Chinese) to a.cht.txt (in Traditional Chinese)

Usage: s2tw [OPTIONS] [S_PATH] [TW_PATH]

Arguments:
  [S_PATH]   Assign the path of your Simple Chinese document. It should be a file path
  [TW_PATH]  Assign the path of your Traditional Chinese document. It should be a file path

Options:
  -f, --force    Force to output if the output file exists
  -h, --help     Print help
  -V, --version  Print version

License

MIT

Dependencies

~3.5–8MB
~165K SLoC