moneyslow.com

Linux下的翻译转码命令工具

shell命令实现翻译功能

shell命令实现翻译功能

ascii2uni转码
echo '\u73af\u5883\uff0c\u800c' | ascii2uni -a U -q

cconv 繁体简体:
b.txt 是繁体 输出a.txt 为简体
cconv -f UTF8-HK -t UTF8-CN b.txt -o a.txt

Translate Shell
https://linux.cn/article-9107-1.html
https://www.clloz.com/programming/assorted/2019/11/19/translate-shell-usage/

nodejs解决方案,牛逼!
https://www.zhihu.com/question/47239748
https://github.com/John-Theo/google-translate-server
https://www.npmjs.com/package/google-translate-cn-api

Exit mobile version