██╗ ██╗██████╗ ██╗ ██████╗████████╗
╚██╗ ██╔╝██╔══██╗██║██╔════╝╚══██╔══╝
╚████╔╝ ██║ ██║██║██║ ██║
╚██╔╝ ██║ ██║██║██║ ██║
██║ ██████╔╝██║╚██████╗ ██║
╚═╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝
Ydict, another command-line youdao dictionary for geeks!
(中文介绍文档)
- Chinese -> English
- English -> Chinese
- Show hints if word is not found
- Speech
- Show example sentences
- Vim support
brew tap timothyye/tap
brew install timothyye/tap/ydict
go get github.com/TimothyYe/ydict
Download it from releases, and extact it to /usr/bin.
To query words from Vim, you need another Vim plugin: vim-ydict
Starting from V0.9, speech feature is available. You need to install mpg123 to enable this feature.
NOTICE: Currently, speech feature is only available for MacOS/Linux.
brew install mpg123
sudo apt-get install mpg123
yum install -y mpg123
- Query
ydict <word(s) to query>
- Query with speech (Available for MacOS & Linux)
ydict <word(s) to query> -v
- Query and show more example sentences
ydict <word(s) to query> -m
Starting from V0.5, you can use SOCKS5 proxy. At the same directory of ydict, just create a .env
file:
SOCKS5=127.0.0.1:7070
Now all the queries will go through the specified SOCKS5 proxy.
Just type "ydict" to get help.