Dict.CN(海词)客户端 for Linux (20080827)

仅仅用于软件推荐,不适合发求软件或软件使用问题方面的贴子
kingpin
帖子: 263
注册时间: 2007-11-03 16:37

#16

帖子 kingpin » 2008-07-16 17:13

支持,能鼠标取词就好了!
aariz
帖子: 94
注册时间: 2008-07-15 0:15
联系:

#17

帖子 aariz » 2008-07-17 18:17

更新:优化了发音程序。
kingpin
帖子: 263
注册时间: 2007-11-03 16:37

#18

帖子 kingpin » 2008-07-17 20:14

马上升级,支持!

简单实用,真是好东西。
头像
gaint_star
帖子: 413
注册时间: 2008-02-20 0:09
来自: 深圳
联系:

#19

帖子 gaint_star » 2008-07-18 22:08

例句要是也能够发音这样才是真正的Dict.cn哦

再加上鼠标取词,呵呵就完美了吧
生活就像对待Linux一样,要敢于折腾也要学会折腾。
──────────────────────────────────
@picobird
zwhuang
帖子: 157
注册时间: 2007-01-21 14:04

Re: Dict.CN(海词)客户端 for Linux (20080718)

#20

帖子 zwhuang » 2008-07-19 10:07

建议:
- trayicon增加点击隐藏/显示主界面的功能;
- 增加退出程序的默认快捷键 Ctrl+Q;
- 把在线翻译功能也集成进来;
- 每日学口语作为初始显示界面的内容;
- deb包中加入文件的md5sum;
aariz 写了:20080717: 优化了发音程序。
20080718: 修复了"xxx'xx" 形式的声音播放BUG。
头像
nanan0313
帖子: 139
注册时间: 2007-06-08 2:14

#21

帖子 nanan0313 » 2008-07-19 10:29

好像要连接网络,这几天上不了网,装了也用不了。
头像
xiooli
帖子: 6956
注册时间: 2007-11-19 21:51
来自: 成都
联系:

#22

帖子 xiooli » 2008-07-19 10:52

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 
来自solcomo,小改了下。
附件
Screenshot.png
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#23

帖子 kofshower » 2008-07-19 12:20

xiooli 写了:
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 
来自solcomo,小改了下。
gtk底下自带全局剪切板的哩
"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/
头像
xiooli
帖子: 6956
注册时间: 2007-11-19 21:51
来自: 成都
联系:

#24

帖子 xiooli » 2008-07-19 16:30

kofshower 写了:
xiooli 写了:
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 
来自solcomo,小改了下。
gtk底下自带全局剪切板的哩
嘛意思?
aariz
帖子: 94
注册时间: 2008-07-15 0:15
联系:

#25

帖子 aariz » 2008-07-19 16:32

选中一段文本,鼠标移动输入框上点击鼠标中键,就能粘贴了。
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#26

帖子 kofshower » 2008-07-19 16:36

xiooli 写了:
kofshower 写了:
xiooli 写了:
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 
来自solcomo,小改了下。
gtk底下自带全局剪切板的哩
嘛意思?
gtk里面的primary剪切版更好用,这个程序是c写的嘛,不用依赖第三方的xsel
x带这个更强大,可以剪切内容转移
我也试图去搞过字典这个,主要是星际的色彩没有高亮,字典没有Collins
后来hack Collins花了我几天的时间我就不干咯,不过现在这个就只是支持Collins
可这又涉及版权,
字典这个设计好设计,关键是没有好的字典授权啊。
加上觉得GDK+不好玩就将就用了。
现在正在看语音引擎,等相关的测试搞完之后在重写。不过可能用的是Mozilla框架了
附件
Screenshot-1.png
上次由 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/
头像
xiooli
帖子: 6956
注册时间: 2007-11-19 21:51
来自: 成都
联系:

#27

帖子 xiooli » 2008-07-19 16:47

kofshower 写了: gtk里面的primary剪切版更好用,这个程序是c写的嘛,不用依赖第三方的xsel
x带这个更强大,可以剪切内容转移
没搞明白咋用 :shock: ,没有这个命令啊。
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#28

帖子 kofshower » 2008-07-19 16:51

xiooli 写了:
kofshower 写了: gtk里面的primary剪切版更好用,这个程序是c写的嘛,不用依赖第三方的xsel
x带这个更强大,可以剪切内容转移
没搞明白咋用 :shock: ,没有这个命令啊。
http://www.yuanma.org/data/2006/0922/article_1575.htm 这儿有
详细的看官方手册,现在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/
头像
xiooli
帖子: 6956
注册时间: 2007-11-19 21:51
来自: 成都
联系:

#29

帖子 xiooli » 2008-07-19 17:32

kofshower 写了:
xiooli 写了:
kofshower 写了: gtk里面的primary剪切版更好用,这个程序是c写的嘛,不用依赖第三方的xsel
x带这个更强大,可以剪切内容转移
没搞明白咋用 :shock: ,没有这个命令啊。
http://www.yuanma.org/data/2006/0922/article_1575.htm 这儿有
详细的看官方手册,现在python还有ruby都有相应的gtk+绑定,实现这种操作比shell脚本更好理解
总体来说linux这个方面比windows简单不少
晕乎哉,这么麻烦,俺是脚本党来的,还是xsel简单哦 :shock:
头像
luojie-dune
帖子: 22033
注册时间: 2007-07-30 18:28
系统: Linux
来自: 空气中

#30

帖子 luojie-dune » 2008-07-19 17:50

强烈建议:像ubuntu自带的辞典一样,支持镶入gnome面板。
『这个世界都是我的 ,我爱你们』

ENTP ⥂ INTP ⥄ INFP ⇦ INTJ

在此发布的文章使用 Creative Commons Attribution-ShareAlike 4.0 协议
回复