https://github.com/mark24code/zh-converter
python3 cli zh-converter
https://github.com/mark24code/zh-converter
Last synced: 6 months ago
JSON representation
python3 cli zh-converter
- Host: GitHub
- URL: https://github.com/mark24code/zh-converter
- Owner: Mark24Code
- Created: 2020-05-21T11:09:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-21T11:13:04.000Z (over 5 years ago)
- Last Synced: 2025-03-17T15:14:49.053Z (11 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 中文简体繁体互译
# 安装
Linux/Mac OS
`./install.sh` 安装依赖
Windows
`pip3 install requirements.txt`
# 执行
`python3 zh-converter.py -h` 获取帮助
`-t` type 翻译的目标类型,默认是cn
```
cn 大陆简体
tw 台灣正體
hk 香港繁體
sg 马新简体(无词汇表,需要手工指定)
hans 简体
hant 繁體
```
`python3 zh-converter.py -t cn -w <单词>` 查单词
`python3 zh-converter.py -t tw -f <文件>` 翻译文件,本地目录生成 translated.txt