Dict.CN(海词)客户端 for Linux (20080827)
- gaint_star
- 帖子: 413
- 注册时间: 2008-02-20 0:09
- 来自: 深圳
- 联系:
-
- 帖子: 157
- 注册时间: 2007-01-21 14:04
Re: Dict.CN(海词)客户端 for Linux (20080718)
建议:
- trayicon增加点击隐藏/显示主界面的功能;
- 增加退出程序的默认快捷键 Ctrl+Q;
- 把在线翻译功能也集成进来;
- 每日学口语作为初始显示界面的内容;
- deb包中加入文件的md5sum;
- trayicon增加点击隐藏/显示主界面的功能;
- 增加退出程序的默认快捷键 Ctrl+Q;
- 把在线翻译功能也集成进来;
- 每日学口语作为初始显示界面的内容;
- deb包中加入文件的md5sum;
aariz 写了:20080717: 优化了发音程序。
20080718: 修复了"xxx'xx" 形式的声音播放BUG。
- xiooli
- 帖子: 6956
- 注册时间: 2007-11-19 21:51
- 来自: 成都
- 联系:
kingpin 写了:支持,能鼠标取词就好了!
代码: 全选
#!/bin/bash
str="`xsel`"
while true ; do
a="`xsel`"
if [ "$a" != "$str" ] ; then
str="$a"
[ ${#a} -lt 15 ] && word=`w3m -dump -no-cookie http://dict.cn/mini.php?q="$a" | sed -e '$d' -e 's/</ /g' -e 's/>/ /g'`
gnome-osd-client -f "<message id='word' osd_fake_translucent_bg='off' osd_vposition='top' osd_halignment='right' animations='on' hide_timeout='10000'><span size='15000' foreground='pink'>`echo "$word"`</span></message>"
fi
sleep 1
done
- kofshower
- 帖子: 1343
- 注册时间: 2007-03-13 11:23
- 联系:
gtk底下自带全局剪切板的哩xiooli 写了:kingpin 写了:支持,能鼠标取词就好了!来自solcomo,小改了下。代码: 全选
#!/bin/bash str="`xsel`" while true ; do a="`xsel`" if [ "$a" != "$str" ] ; then str="$a" [ ${#a} -lt 15 ] && word=`w3m -dump -no-cookie http://dict.cn/mini.php?q="$a" | sed -e '$d' -e 's/</ /g' -e 's/>/ /g'` gnome-osd-client -f "<message id='word' osd_fake_translucent_bg='off' osd_vposition='top' osd_halignment='right' animations='on' hide_timeout='10000'><span size='15000' foreground='pink'>`echo "$word"`</span></message>" fi sleep 1 done
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
- xiooli
- 帖子: 6956
- 注册时间: 2007-11-19 21:51
- 来自: 成都
- 联系:
嘛意思?kofshower 写了:gtk底下自带全局剪切板的哩xiooli 写了:kingpin 写了:支持,能鼠标取词就好了!来自solcomo,小改了下。代码: 全选
#!/bin/bash str="`xsel`" while true ; do a="`xsel`" if [ "$a" != "$str" ] ; then str="$a" [ ${#a} -lt 15 ] && word=`w3m -dump -no-cookie http://dict.cn/mini.php?q="$a" | sed -e '$d' -e 's/</ /g' -e 's/>/ /g'` gnome-osd-client -f "<message id='word' osd_fake_translucent_bg='off' osd_vposition='top' osd_halignment='right' animations='on' hide_timeout='10000'><span size='15000' foreground='pink'>`echo "$word"`</span></message>" fi sleep 1 done
- kofshower
- 帖子: 1343
- 注册时间: 2007-03-13 11:23
- 联系:
gtk里面的primary剪切版更好用,这个程序是c写的嘛,不用依赖第三方的xselxiooli 写了:嘛意思?kofshower 写了:gtk底下自带全局剪切板的哩xiooli 写了:kingpin 写了:支持,能鼠标取词就好了!来自solcomo,小改了下。代码: 全选
#!/bin/bash str="`xsel`" while true ; do a="`xsel`" if [ "$a" != "$str" ] ; then str="$a" [ ${#a} -lt 15 ] && word=`w3m -dump -no-cookie http://dict.cn/mini.php?q="$a" | sed -e '$d' -e 's/</ /g' -e 's/>/ /g'` gnome-osd-client -f "<message id='word' osd_fake_translucent_bg='off' osd_vposition='top' osd_halignment='right' animations='on' hide_timeout='10000'><span size='15000' foreground='pink'>`echo "$word"`</span></message>" fi sleep 1 done
x带这个更强大,可以剪切内容转移
我也试图去搞过字典这个,主要是星际的色彩没有高亮,字典没有Collins
后来hack Collins花了我几天的时间我就不干咯,不过现在这个就只是支持Collins
可这又涉及版权,
字典这个设计好设计,关键是没有好的字典授权啊。
加上觉得GDK+不好玩就将就用了。
现在正在看语音引擎,等相关的测试搞完之后在重写。不过可能用的是Mozilla框架了
上次由 kofshower 在 2008-07-19 16:49,总共编辑 1 次。
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
- xiooli
- 帖子: 6956
- 注册时间: 2007-11-19 21:51
- 来自: 成都
- 联系:
- kofshower
- 帖子: 1343
- 注册时间: 2007-03-13 11:23
- 联系:
http://www.yuanma.org/data/2006/0922/article_1575.htm 这儿有xiooli 写了:没搞明白咋用 ,没有这个命令啊。kofshower 写了: gtk里面的primary剪切版更好用,这个程序是c写的嘛,不用依赖第三方的xsel
x带这个更强大,可以剪切内容转移
详细的看官方手册,现在python还有ruby都有相应的gtk+绑定,实现这种操作比shell脚本更好理解
总体来说linux这个方面比windows简单不少
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
- xiooli
- 帖子: 6956
- 注册时间: 2007-11-19 21:51
- 来自: 成都
- 联系:
晕乎哉,这么麻烦,俺是脚本党来的,还是xsel简单哦kofshower 写了:http://www.yuanma.org/data/2006/0922/article_1575.htm 这儿有xiooli 写了:没搞明白咋用 ,没有这个命令啊。kofshower 写了: gtk里面的primary剪切版更好用,这个程序是c写的嘛,不用依赖第三方的xsel
x带这个更强大,可以剪切内容转移
详细的看官方手册,现在python还有ruby都有相应的gtk+绑定,实现这种操作比shell脚本更好理解
总体来说linux这个方面比windows简单不少
- luojie-dune
- 帖子: 22033
- 注册时间: 2007-07-30 18:28
- 系统: Linux
- 来自: 空气中