这是一个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等工具。
Metadata
Release files for GouYong 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| GouYong-0.5.3.tar.gz | 23.0 MB | Without provenance | Details |
Release files / GouYong-0.5.3.tar.gz
| Download URL | GouYong-0.5.3.tar.gz |
|---|---|
| Size | 23.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6181d293a9a43d9649a7d1e6657c19c135a9ec28bcc8a5e329fda2ebb158767
|
|
BLAKE2b-256 checksum How to use checksums |
2918a45472a4de7d33786f01aa6b4ca3d1c98f90f601f05b1ad6282f1901e0c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.4.3
|
Security for GouYong 0.5.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.