有道翻译小工具——Ydict
Tofloor
poster avatar
testpassword
deepin
2019-11-26 23:50
Author
本帖最后由 testpassword 于 2019-11-26 15:54 编辑

Ydict
命令行翻译工具,使用有道API,支持中英互译。
  • 运行环境:JDK 11 及以上
用法
  • 直接运行命令,把要翻译的文本当作参数传入即可
  • 如果要翻译带换行符的文本,先运行命令,然后输入文本,再按 Ctrl+D 即可
如果嫌敲命令麻烦,Linux 用户可以在 .bashrc 文件中添加一个别名:
  1. # 假设 jar 文件路径为 /test.jar,要设置的别名为 d
  2. alias d='java -jar /test.jar'
Copy the Code
Windwos 用户可以使用 GUI 版本:https://github.com/a188037445/Translator
截图


下 载 地 址:https://github.com/a188037445/Ydict/releases

注:
这个程序使用的是我自己的key(硬编码在源码里了),如果以后有人发现不能用了,那可能是因为用的人太多了,到时候可以自己更换下key。


Reply Favorite View the author
All Replies
avatar
testpassword
deepin
2019-11-27 03:13
#1
为什么一个回复都没有,是我帖子排版太丑了么?

我从 github 上的 README 直接粘贴过来的。
Reply View the author
avatar
wtz
deepin
2019-11-27 03:51
#2
挺好的呀,可能大多数用户还是关心GUI吧。
Reply View the author
avatar
superendermansm
deepin
2019-11-27 07:07
#3
Rdict有GUI,有道更新之后能用了,这个CLI版本就有些鸡肋
Reply View the author
avatar
jzc
deepin
2019-11-27 07:10
#4
看看我的项目  Linux屏幕取词翻译软件
https://github.com/jiangzc/CuteTranslation
Reply View the author
avatar
testpassword
deepin
2019-11-27 17:08
#5
https://bbs.deepin.org/post/185862
Rdict有GUI,有道更新之后能用了,这个CLI版本就有些鸡肋

还好吧,萝卜青菜,各有所爱
Reply View the author
avatar
testpassword
deepin
2019-11-27 17:09
#6
https://bbs.deepin.org/post/185862
看看我的项目  Linux屏幕取词翻译软件
https://github.com/jiangzc/CuteTranslation

这个挺好。
Reply View the author
avatar
liwl
deepin
2020-01-14 19:20
#7
https://bbs.deepin.org/post/185862
看看我的项目  Linux屏幕取词翻译软件
https://github.com/jiangzc/CuteTranslation

您好,请问您项目的deb在哪里下载呢?github上没有找到deb
Reply View the author
avatar
jzc
deepin
2020-01-14 20:04
#8
https://bbs.deepin.org/post/185862
您好,请问您项目的deb在哪里下载呢?github上没有找到deb

等几天很快就会发布了
Reply View the author
avatar
liwl
deepin
2020-01-14 21:27
#9
https://bbs.deepin.org/post/185862
等几天很快就会发布了

好,加油,别慌!
Reply View the author