够用翻译v0.2 优化了一些,并且可以ppa直接安装了
Tofloor
poster avatar
jiffies
deepin
2014-09-08 04:02
Author


更新v0.2:
1.优化了选词机制。
2.内存优化。
3.加入了ppa源

安装&运行:
1.加入lz的ppa源:
  1. sudo add-apt-repository ppa:lcqtdwj/python-marisa-trie
Copy the Code
2.更新源:
  1. sudo apt-get update
Copy the Code
3.安装够用:
  1. sudo apt-get install gouyong
Copy the Code
如果提示依赖不满足,请执行
  1. sudo apt-get -f install
Copy the Code
安装依赖,然后再次安装。

4.在启动器搜索够用,打开会在系统托盘出现够用图标。然后就可以划次翻译了,在线翻译可能会比较慢,请第一次多等一会。

(注:条件原因,Lz只测试了ubuntu14.04,其他版本如果不能启动,请在终端输入:GouYong,把开始的几行复制给我,帮助够用改进,谢谢啦。)


前段时间重装系统,发现Linux桌面多了好多有趣的软件。麒麟和深度带来很多新的东西 :em38 。受openyoudao启发,写了一个翻译小软件,如其名,希望够用就好。


现有的功能:
1.在线查询,使用有道词典,直接用的有道的结果(因为界面真的清爽好看>0<)
online.png
2.离线查询,使用开源的stardict词库,一开始自带了3个,需要其他词库也可以加,只要拷贝到dict就可以了。
offline.png
3.程序启动后在系统托盘处可以更换词典和切换使用在线离线查询,还有暂停查询。


项目地址:https://github.com/jiffies/GouYong
Reply Favorite View the author
All Replies
1 / 2
To page
ArthurDeepin
deepin
2014-09-08 04:10
#1
强力支持一下
Reply View the author
jiffies
deepin
2014-09-08 04:20
#2
强力支持一下
感谢,有时间希望能用用试试,提提意见亲~
Reply View the author
yeser
deepin
2014-09-08 06:54
#3
已置顶
Reply View the author
xliang9550
deepin
2014-09-09 03:01
#4
得到有道的授权许可了吗?
Reply View the author
jiffies
deepin
2014-09-09 06:01
#5
得到有道的授权许可了吗?
额,只是写来用一下,非盈利。。。没想那么多
Reply View the author
盘灶车站
deepin
2014-09-09 20:10
#6
龚琳娜:求大神打个包打个包打个包打个包打个包打个包打个包——————————
Reply View the author
ArthurDeepin
deepin
2014-09-09 21:29
#7
被推到微博上去了……
那个,我查了一下,如果是使用了有道的翻译API的话,需要在有道的数据旁展示有道标志,这个标志在有道API的网站上提供下载。另外还有一些不疼不痒的条例,在网站上可以查看,还是注意一下吧。
也许是使用的其他的东西实现的,我不是很了解。
Reply View the author
jiffies
deepin
2014-09-10 01:02
#8
被推到微博上去了……
那个,我查了一下,如果是使用了有道的翻译API的话,需要在有道的数据旁展示有道标志,这个标志在有道API的网站上提供下载。另外还有一些不疼不痒的条例,在网站上可以查看,还是注意一下吧。
也许是使用的其他的东西实现的,我不是很了解。

额,惶恐,离好用还有很大距离,我先把方便大家安装的包打好,再慢慢改进。希望能成为Linux桌面下方便够用的小软件。感谢!
Reply View the author
xliang9550
deepin
2014-09-10 16:10
#9
楼主还是先和有道那边沟通一下吧,万一摊上版权纠纷就麻烦了……
Reply View the author
ArthurDeepin
deepin
2014-09-12 05:18
#10
使用了一下,比深度翻译反应要快,反映一个问题,如图部分希望固定一下,不要晃。
Reply View the author
jiffies
deepin
2014-09-13 07:40
#11
使用了一下,比深度翻译反应要快,反映一个问题,如图部分希望固定一下,不要晃。
额,其实这是有道的实现。(html+css).Lz一开始只是想写一个好看一点的翻译软件。搜到openyoudao,发现有道很清爽好看,但是openyoudao由于代码问题很难改进了。所以Lz就自己动手写了一个。但是有人说版权是问题,其实我初衷只是想自己用。
Reply View the author
ArthurDeepin
deepin
2014-09-13 07:48
#12
[quote]使用了一下,比深度翻译反应要快,反映一个问题,如图部分希望固定一下,不要晃。
额,其实这是有道的实现。(html+css).Lz一开始只是想写一个好看一点的翻译软件。搜到openyoudao,发现有道很清爽好看,但是openyoudao由于代码问题很难改进了。所以Lz就自己动手写了一个。但是有人说版权是问题,其实我初衷只是想自己用。[/quote]
good,加油,做你想做的~
Reply View the author
jiffies
deepin
2014-09-13 07:54
#13
[quote][quote]使用了一下,比深度翻译反应要快,反映一个问题,如图部分希望固定一下,不要晃。
额,其实这是有道的实现。(html+css).Lz一开始只是想写一个好看一点的翻译软件。搜到openyoudao,发现有道很清爽好看,但是openyoudao由于代码问题很难改进了。所以Lz就自己动手写了一个。但是有人说版权是问题,其实我初衷只是想自己用。[/quote]
good,加油,做你想做的~[/quote]

谢谢啦,我慢慢做成能让我平常自己用的,能用的比较舒服,这样应该也能满足一些朋友了。对了,今天更新了,你把以前的卸载,用源装吧。优化了不少。
Reply View the author
ksliubaoming
deepin
2014-09-13 16:02
#14
已经用上了,界面清新,要是有朗读功能就完美了,谢谢
Reply View the author
jiffies
deepin
2014-09-13 18:10
#15
已经用上了,界面清新,要是有朗读功能就完美了,谢谢

在线查询来自有道,是可以发音的。离线暂时没有,以后应该会加上。谢谢试用
Reply View the author
yeser
deepin
2014-09-14 07:38
#16
是选定大段文字然后直接右键就会翻译了么?
Reply View the author
erpapa
deepin
2014-09-15 04:45
#17
系统ubuntu12.04
以下是错误代码:
@k56:~$ GouYong
cache folder exists.
Traceback (most recent call last):
  File "/usr/local/bin/GouYong", line 9, in
    load_entry_point('GouYong==0.2', 'gui_scripts', 'GouYong')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 337, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2279, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/GouYong-0.2-py2.7.egg/GouYong/src/window.py", line 9, in
    from dict_manager import DictManager
  File "/usr/local/lib/python2.7/dist-packages/GouYong-0.2-py2.7.egg/GouYong/src/dict_manager.py", line 9, in
    from pystardict import Dictionary
  File "/usr/local/lib/python2.7/dist-packages/GouYong-0.2-py2.7.egg/GouYong/src/../lib/pystardict.py", line 26, in
    import marisa_trie
ImportError: No module named marisa_trie
Reply View the author
jiffies
deepin
2014-09-15 05:28
#18
系统ubuntu12.04
以下是错误代码:
@k56:~$ GouYong
cache folder exists.
Traceback (most recent call last):
  File "/usr/local/bin/GouYong", line 9, in
    load_entry_point('GouYong==0.2', 'gui_scripts', 'GouYong')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 337, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2279, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/local/lib/python2.7/dist-packages/GouYong-0.2-py2.7.egg/GouYong/src/window.py", line 9, in
    from dict_manager import DictManager
  File "/usr/local/lib/python2.7/dist-packages/GouYong-0.2-py2.7.egg/GouYong/src/dict_manager.py", line 9, in
    from pystardict import Dictionary
  File "/usr/local/lib/python2.7/dist-packages/GouYong-0.2-py2.7.egg/GouYong/src/../lib/pystardict.py", line 26, in
    import marisa_trie
ImportError: No module named marisa_trie

不知道你是不是用源安装的?
应该会自动依赖python-marisa-trie这个包的。不过一般12.04的python-gi都不满足>=3.12,你自己升级的么?
Reply View the author
jiffies
deepin
2014-09-15 05:37
#19
是选定大段文字然后直接右键就会翻译了么?
不是 是单词翻译
Reply View the author
erpapa
deepin
2014-09-15 05:42
#20
DeepinScrot-3649.png添加你说的源以后还是提示未发现软件包,在你的Git下载手动安装的,点图标没反应,依赖全都满足呀0.0
Reply View the author
1 / 2
To page