All Projects → ChestnutHeng → Wudao Dict

ChestnutHeng / Wudao Dict

有道词典的命令行版本,支持英汉互查和在线查询。

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Wudao Dict

Ydict
Yet another command-line youdao dictionary for geeks!
Stars: ✭ 318 (-57.37%)
Mutual labels:  command-line, dictionary
Define
A command-line dictionary (thesaurus) app, with access to multiple sources, written in Go.
Stars: ✭ 298 (-60.05%)
Mutual labels:  command-line, dictionary
Clap
Create your command-line parser, with all of the bells and whistles, declaratively or procedurally.
Stars: ✭ 7,174 (+861.66%)
Mutual labels:  command-line
Svgexport
SVG to PNG/JPEG command-line tool and Node.js module
Stars: ✭ 731 (-2.01%)
Mutual labels:  command-line
Conf
Simple config handling for your app or module
Stars: ✭ 707 (-5.23%)
Mutual labels:  command-line
Yolo Tf2
yolo(all versions) implementation in keras and tensorflow 2.4
Stars: ✭ 695 (-6.84%)
Mutual labels:  command-line
Hexyl
A command-line hex viewer
Stars: ✭ 6,349 (+751.07%)
Mutual labels:  command-line
Swiftcli
A powerful framework for developing CLIs in Swift
Stars: ✭ 673 (-9.79%)
Mutual labels:  command-line
Imgp
📸 High-performance cli batch image resizer and rotator
Stars: ✭ 744 (-0.27%)
Mutual labels:  command-line
Odh
A chrome extension to show online dictionary content.
Stars: ✭ 695 (-6.84%)
Mutual labels:  dictionary
Learn gnuawk
Example based guide to mastering GNU awk
Stars: ✭ 727 (-2.55%)
Mutual labels:  command-line
Bat
A cat(1) clone with wings.
Stars: ✭ 30,833 (+4033.11%)
Mutual labels:  command-line
Cheat.sh
the only cheat sheet you need
Stars: ✭ 27,798 (+3626.27%)
Mutual labels:  command-line
Portray
Your Project with Great Documentation.
Stars: ✭ 726 (-2.68%)
Mutual labels:  command-line
Clipp
easy to use, powerful & expressive command line argument parsing for modern C++ / single header / usage & doc generation
Stars: ✭ 687 (-7.91%)
Mutual labels:  command-line
Suplemon
🍋 Console (CLI) text editor with multi cursor support. Suplemon replicates Sublime Text like functionality in the terminal. Try it out, give feedback, fork it!
Stars: ✭ 734 (-1.61%)
Mutual labels:  command-line
Diskus
A minimal, fast alternative to 'du -sh'
Stars: ✭ 674 (-9.65%)
Mutual labels:  command-line
Powershell
PowerShell for every system!
Stars: ✭ 31,244 (+4088.2%)
Mutual labels:  command-line
Terjira
Terjira is a very interactive and easy to use CLI tool for Jira.
Stars: ✭ 713 (-4.42%)
Mutual labels:  command-line
Sade
Smooth (CLI) Operator 🎶
Stars: ✭ 746 (+0%)
Mutual labels:  command-line

无道词典

pyplat


无道词典,是一个简洁优雅的有道词典命令行版本。支持英汉互查的功能,包含释义、词组、例句等有助于学习的内容。

无道词典致力于做最好的命令行词典,随着我们优化排版、显示,增加生词本和补全功能,提供了良好的用户体验,并在不断改进中。

英汉:

En_Zh Demo

汉英:

Zh_En Demo

功能特性

  1. 基础词典(20w英汉查询 + 10w汉英查询 + 网络词库)
  2. 词组查询功能(例如直接输入wd in order to)
  3. 自动补全功能(按Tab自动补全单词,包含1w个最热的词)
  4. 生词本(自动把历史记录存为生词本,wd -h查看生词本文件位置)
  5. 交互模式(wd -i进入,可以连续查词)

安装说明

遇到任何问题,或者有任何改善建议请联系作者。

邮箱: [email protected]

issue: 创建新的 issue

Linux 环境

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

    Debian/Ubuntu

    sudo apt-get install python3
    sudo apt-get install python3-pip
    sudo pip3 install bs4
    sudo pip3 install lxml
    

    OpenSUSE

    sudo zypper install python3-pip
    sudo pip3 install bs4
    sudo pip3 install lxml
    

    CentOS

    sudo yum install python34
    sudo yum install python34-pip
    sudo pip3 install bs4
    sudo pip3 install lxml
    

    MacOS

    brew install python3
    sudo easy_install pip
    sudo pip install bs4
    sudo pip install lxml
    brew install bash-completion
    
  2. 运行

    git clone https://github.com/chestnutheng/wudao-dict
    cd ./wudao-dict/wudao-dict
    sudo bash setup.sh #或者sudo ./setup.sh
    

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

无法clone的,可以下载 https://github.com/ChestnutHeng/Wudao-dict/archive/master.zip ,然后解压安装使用。

Note: 注意python的版本,只支持python3

使用说明

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

$ wd -h
Usage: wd [OPTION]... [WORD]
Youdao is wudao, a powerful dict.
-k, --kill             kill the server process       (退出服务进程)
-h, --help             display this help and exit    (查看帮助)
-s, --short            do or dont show sentences     (简明/完整模式)
-i, --inter            interaction mode              (交互模式)
-n, --note             save/not save to notebook     (保存/不保存到生词本)
-v, --version          version info                  (版本信息)
生词本文件: ... some path .../notebook.txt
查询次数: ... some path .../usr_word.json

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

小贴士

  1. ./wd_monofile 是本词典的在线查询的单文件版本, 可以复制到/usr/bin下直接使用.(需要安装bs4)
  2. 如果您不想看到例句, 请使用wd -s关闭。可以再次运行该命令打开。
  3. 有的用户反馈字体颜色看不清的问题, 你可以找到./wudao-dict/wudao-dict/src/CommandDraw.py, 可以看到释义,读音等采用的颜色, 直接修改即可.
  4. 查询词组直接键入类似wd take off即可.

Release Notes

Ver 1.0 (Oct 10, 2016)

  • 提供了基础的英汉互查的功能
  • 提供了在线查询的功能,并且查过后会缓存

Ver 1.1 (Dec 1, 2016)

  • 提供了可以单独运行的单文件版本wd_monofile

Ver 1.2 (Nov 22, 2017)

  • 在线查询修复了不显示被查词的bug

Ver 2.0 (Dec 3, 2018)

  • 修复了文件夹过大的问题,由263M缩小到80M左右。 issue #1: 文件夹大小
  • 添加了更多的常用词和单复数形式
  • 取消了网络搜索功能,没有在本地找到时会自动进行网络搜索
  • 添加了bash终端的tab补全的支持,对常用的1w词进行tab补全 issue #15: 模糊查询的支持
  • 添加了生词本功能,自动把查过的词和释义添加到生词本文件中
  • 优化了排版,同一单词不再截断换行了 #该功能因为转移字符的问题搁置 issue #16:避免在单词内换行

Ver 2.1 (Nov 27, 2019, lastest)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].