A translation software on linux
Project description
这是一个Linux词典应用程序,目标够用就好!
欢迎大家一起改进开发,让够用越来越够用,用起来越来越舒服。
(在线翻译资源来自互联网,版权属于相关网站)
图例:
在线:
离线:
安装和使用
只支持python3及以上
pip install GouYong
启动
命令行运行GouYong
翻译
鼠标选中后按连按左ctrl两次
查询翻译
鼠标选中后按连按右ctrl两次,将从cht.sh查询并翻译
Features:
- 结合ButtonRelease和owner-change实现了X window下的最优取词机制,避免了像stardict一样不能再次取同一个词,和像openyoudao一样影响复制且影响其他程序对剪贴板的使用。
- 托盘可以暂停取词,还可以切换离线,在线模式。
- 自动调整弹出窗口的位置,鼠标远离窗口一定范围时窗口自动关闭。
- 更改划词翻译触发机制为连按左ctrl两次。
- 支持段落翻译。
- 增加连按右ctrl两次通过cht.sh查询并翻译。
- 增加翻译引擎选择,目前支持谷歌搜狗有道。
- 增加travis自动上传到pypi。
- 由python2改为python3。
TODO:
- 支持谷歌搜狗翻译;
- 支持段落翻译;
- 通过cht.sh查询;
- 顺畅自如的选词弹窗翻译;
- 简洁的操作,酷炫的UI;
- 离线词典;
- OCR图像取词翻译;
- 性能优化;
- 打包,软件源部署.
依赖:
- python-gi 3.12
- python-xlib
- gir1.2-appindicator3-0.1
- gir1.2-webkit-3.0
- python-marisa-trie
进度:
- 选词翻译基本达成。2014年 08月 25日 星期一 14:58:23 CST
- 顺畅选词弹窗网络翻译达成。2014年 08月 31日 星期日 17:29:26 CST
- 离线词典使用StarDict词库达成。2014年 09月 03日 星期三 17:10:44 CST
- 初步优化性能。2014年 09月 07日 星期日 18:30:23 CST
- 简单打包。2014年 09月 07日 星期日 18:30:41 CST
- 生成deb包。2014年 09月 10日 星期三 02:54:05 CST
- 优化选词机制,可以直接再次选取同一词,不会清空selection影响其他程序。2014年 09月 11日 星期四 19:32:42 CST
打包:
使用fpm,stdeb, setuptools_git等工具。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
GouYong-0.5.3.tar.gz
(23.0 MB
view hashes)