linux下的命令行词典

来源:互联网 发布:自动生成logo软件 编辑:程序博客网 时间:2024/05/17 08:45

无道词典


无道词典,简洁优雅的有道词典命令行版本。支持离线查询和在线查询英/汉的功能。Python编写。
欢迎大家来我github上发issue或者pull request。
https://github.com/ChestnutHeng/Wudao-dict
英汉(柯林斯):
En_Zh Demo
汉英:
Zh_En Demo

功能特性

  1. 20w英文词库 + 10w汉英词库
  2. 英汉/汉英查询功能
  3. 词组查询功能(直接输入wd in order to)
  4. 在线查询功能(从有道词典获取)

安装说明

Linux

  1. 安装环境: 需要python3和bs4 (在线搜索用)

    pip3 install bs4
  2. 运行

    $ git clone https://github.com/ChestnutHeng/Wudao-dict/$ cd ./wudao-dict/wudao-dict$ sudo sh setup.sh

    看到出现Setup Finished!表明安装成功。如果发生由于移动安装文件不能使用的情况,只需再次运行该脚本即可。

  3. 解压./wudao-dict/wudao-dict/dict/dict.zip./wudao-dict/wudao-dict/dict/下开始使用。

Windows

由于编码问题暂不能使用。

使用说明

运行wd -h查看使用说明。

$ wd -hUsage: wd [OPTION]... [WORD]Youdao is wudao, An powerful dict.-k, --kill                   kill the server process-h, --help                   display this help and exit-s, --short-desc             show description without the sentence-o, --online-search          search word online

查词时可以直接使用wd 词语查汉英词典,或wd word查英汉词典(可以自动检测)。

参数说明

使用方法: wd [OPTION]... [WORD]-k                            杀死词典服务器进程-s                            只打印简短的单词介绍-h                            查看帮助-o                            在线查询
1 0
原创粉丝点击