#localization #opencc #mediawiki #chinese-translation #chinese #cli #traditional-chinese #simplified-chinese

app zhconv-cli

Convert Traditional/Simplified Chinese and regional words of Taiwan/Hong Kong/mainland China/Singapore based on Wikipedia and OpenCC rulesets 轉換中文簡體、繁體及兩岸、新馬地區詞,基於維基百科和OpenCC規則集

7 releases

0.3.0 Jul 4, 2023
0.3.0-beta Jun 27, 2023
0.2.0-beta May 15, 2023
0.1.0 Sep 8, 2022
0.1.0-beta Dec 27, 2021

#1052 in Text processing

Download history 3/week @ 2023-10-31 1/week @ 2023-11-14 15/week @ 2023-11-21 11/week @ 2023-11-28 7/week @ 2023-12-05 7/week @ 2023-12-12 21/week @ 2023-12-26 4/week @ 2024-01-16 14/week @ 2024-01-30 2/week @ 2024-02-06 45/week @ 2024-02-13

62 downloads per month

GPL-2.0-or-later

6MB
24K SLoC

PHP 20K SLoC // 0.0% comments Rust 2K SLoC // 0.1% comments TSX 1K SLoC // 0.1% comments Shell 543 SLoC // 0.1% comments Python 356 SLoC // 0.3% comments JavaScript 26 SLoC // 0.3% comments TypeScript 22 SLoC // 0.2% comments

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)

Dependencies

~7–20MB
~252K SLoC