zhconv-cli

Crates.iozhconv-cli
lib.rszhconv-cli
version0.3.1
sourcesrc
created_at2021-12-27 02:25:14.086092
updated_at2024-03-22 15:44:40.806471
descriptionConvert Traditional/Simplified Chinese and regional words of Taiwan/Hong Kong/mainland China/Singapore based on Wikipedia and OpenCC rulesets 轉換中文簡體、繁體及兩岸、新馬地區詞,基於維基百科和OpenCC規則集
homepage
repositoryhttps://github.com/Gowee/zhconv-rs
max_upload_size
id503532
size31,933
Hung-I Wang (Gowee)

documentation

README

zhconv-cli 中文简繁及地區詞轉換

zhconv-cli converts Chinese text among several scripts or regional variants (e.g. zh-TW <-> zh-CN <-> zh-HK <-> zh-Hans <-> zh-Hant), based on conversion rulesets from Mediawiki/Wikipedia and OpenCC.

For more information, check zhconv-rs.

USAGE:
    zhconv [FLAGS] [OPTIONS] <VARIANT> [--] [FILE]...

FLAGS:
        --wikitext      Treat the input text as wikitext and process inline conversion rules in MediaWiki syntax
        --dump-table    Dump the built-in conversion table, along with additional rules specified if any
    -h, --help          Prints help information
    -V, --version       Prints version information

OPTIONS:
        --rule <rules>...               Additional conversion rules in MediaWiki syntax (excluding -{, }-)
        --rules_file <rule-files>...    File(s) consisting of additional conversion rules in MediaWiki syntax (excluding
                                        -{, }-) seperated by LF

ARGS:
    <VARIANT>    Target variant to convert to (zh, zh-Hant, zh-Hans, zh-TW, zh-HK, zh-MO, zh-CN, zh-SG, zh-MY)
    <FILE>...    File(s) to convert in-place (omit for stdio)
Commit count: 205

cargo fmt