Crates.io | zhconv-cli |
lib.rs | zhconv-cli |
version | 0.3.1 |
source | src |
created_at | 2021-12-27 02:25:14.086092 |
updated_at | 2024-03-22 15:44:40.806471 |
description | Convert Traditional/Simplified Chinese and regional words of Taiwan/Hong Kong/mainland China/Singapore based on Wikipedia and OpenCC rulesets 轉換中文簡體、繁體及兩岸、新馬地區詞,基於維基百科和OpenCC規則集 |
homepage | |
repository | https://github.com/Gowee/zhconv-rs |
max_upload_size | |
id | 503532 |
size | 31,933 |
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)