详细安装及使用opencc

参考:windows使用opencc中文简体和繁体互转

1. 下载zip文件

选择电脑对应的版本
Windows (64-bit): Latest build

2. 解压压缩包至如图所示(随意)

3. 把bin目录添加到环境变量中

3.1 打开配置环境变量界面
3.2 双击path
3.3 点击新建,输入刚才解压后的openCC的bin地址
3.4 无脑确定即可。

4.进入cmd界面使用opencc

C:\Users\lenovo>D:

D:\>cd OpenCC\build\bin

D:\OpenCC\build\bin>opencc --help

此时会跳出说明文档:

Open Chinese Convert (OpenCC) Command Line Tool
Author: Carbo Kuo <byvoid@byvoid.com>
Bug Report: http://github.com/BYVoid/OpenCC/issues

Usage:

   opencc  [--noflush <bool>] [-i <file>] [-o <file>] [-c <file>] [--]
           [--version] [-h]

Options:

   --noflush <bool>
     Disable flush for every line

   -i <file>,  --input <file>
     Read original text from <file>.

   -o <file>,  --output <file>
     Write converted text to <file>.

   -c <file>,  --config <file>
     Configuration file

   --,  --ignore_rest
     Ignores the rest of the labeled arguments following this flag.

   --version
     Displays version information and exits.

   -h,  --help
     Displays usage information and exits.


   Open Chinese Convert (OpenCC) Command Line Tool

以后就可以这样使用opencc命令转化繁体了~

例如:opencc -i 需要转换的文件路径 -o 转换后的文件路径 -c 配置文件路径

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容