linux下的简易有道字典
来源:互联网 发布:js如何设置translatey 编辑:程序博客网 时间:2024/05/16 12:19
好东西, 自己也想实现,可惜水平。。。。。
原文地址:linux下的简易有道字典作者:Ree影子
说实话在win下有的有道字典的确很不错,特别是看一些英文资料的时候(咱英语不行),就特别有帮助。
不过现在在linux下,就在想有没有linux下的有道字典呢,在网上查了一下,失望而归。。。
但是找到了有人有python写的一个简易的linux版有道字典,还是不错了。
可以在http://sourceforge.net/projects/yodao-free/files/python-dict/下载。
下载后解压得到的是一个叫dict.py的脚本。
在命令行中输入 python dict.py单词 就能查找单词了。
如 python dict.py English得到的结果就是:
Translations from Dict.cn
adj. 英国的,英国人的
n. 英语
Translations from WordNet
an Indo-European language belonging to the West Germanic branch;the official language of Britain and the United States and most ofthe commonwealth countries
the people of England
the discipline that studies the English language andliterature
(sports) the spin given to a ball by striking it on one side orreleasing it with a sharp twist
of or relating to or characteristic of England or its culture orpeople
Translations from yodao:
English: 英语
CollegeEnglish: 大学英语
接着,用shell打造一下。
sudo cp dict.py /usr/bin
sudo vim dict youdao
然后打入脚本程序:
#! /bin/bash
echo -n "input word>>"
while read -u0 in
do
python dict.py ${in}
echo -n "input word>>"
done
于是,你就是可以随时在命令行下使用这个有道字典了。
ree@ree-laptop:~/bin$ youdao
input:chinese
chinese
Translations from Dict.cn
adj. 中国的
n. 汉语,中国人
Translations from WordNet
any of the Sino-Tibetan languages spoken in China; regarded asdialects of a single language (even though they are mutuallyunintelligible) because they share an ideographic writingsystem
a native or inhabitant of Communist China or of NationalistChina
of or pertaining to China or its peoples or cultures
of or relating to or characteristic of the island republic onTaiwan or its residents or their language
Translations from yodao:
Chinese: 汉语
Chinesegooseberry: 猕猴桃
input:
完。。。
早上小记。。
不过现在在linux下,就在想有没有linux下的有道字典呢,在网上查了一下,失望而归。。。
但是找到了有人有python写的一个简易的linux版有道字典,还是不错了。
可以在http://sourceforge.net/projects/yodao-free/files/python-dict/下载。
下载后解压得到的是一个叫dict.py的脚本。
在命令行中输入
如
Translations from Dict.cn
adj. 英国的,英国人的
n. 英语
Translations from WordNet
an Indo-European language belonging to the West Germanic branch;the official language of Britain and the United States and most ofthe commonwealth countries
the people of England
the discipline that studies the English language andliterature
(sports) the spin given to a ball by striking it on one side orreleasing it with a sharp twist
of or relating to or characteristic of England or its culture orpeople
Translations from yodao:
English:
CollegeEnglish:
接着,用shell打造一下。
sudo cp dict.py /usr/bin
sudo vim dict youdao
然后打入脚本程序:
#! /bin/bash
echo -n "input word>>"
while read -u0 in
done
于是,你就是可以随时在命令行下使用这个有道字典了。
ree@ree-laptop:~/bin$ youdao
input:chinese
chinese
Translations from Dict.cn
adj. 中国的
n. 汉语,中国人
Translations from WordNet
any of the Sino-Tibetan languages spoken in China; regarded asdialects of a single language (even though they are mutuallyunintelligible) because they share an ideographic writingsystem
a native or inhabitant of Communist China or of NationalistChina
of or pertaining to China or its peoples or cultures
of or relating to or characteristic of the island republic onTaiwan or its residents or their language
Translations from yodao:
Chinese:
Chinesegooseberry:
input:
完。。。
早上小记。。
- linux下的简易有道字典
- linux下的简易有道字典
- linux下的简易有道字典
- ubuntu下的字典,使用有道词典
- ubuntu下有道字典
- LInux下的有道词典
- Ubuntu下配置有道字典
- linux下方便的使用有道词典
- linux下安装有道
- linux 下有道 安装
- PyQT开发的简易有道词典
- linux下的简易进度条
- Linux下的简易进度条
- linux下的简易进度条
- Linux下安装有道词典
- linux下安装有道词典
- Linux下的英语软件——有道词典
- 有道词典简易客户端
- poj3370 poj2356 鸽巢定理
- acm网络选拔赛原则和晋级规则
- 关于全局变量的若干细节(转…
- 搜索
- 30-JavaScript-事件-同一事件多个处理程序-window的事件-关闭右键菜单
- linux下的简易有道字典
- hdu3247自动机+TSP
- IOS , plist 配置项说明
- poj3621 0/1分数规划
- 有意思
- hdu 1394
- 感恩福州赛区
- poj1679 次小生成树
- priority_queue 优先队列