xieyunzi / ydict

Yet another command-line youdao dictionary for geeks!

Home Page:https://xiaozhou.net/command-line-tool-ydict-2017-09-11.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

██╗   ██╗██████╗ ██╗ ██████╗████████╗
╚██╗ ██╔╝██╔══██╗██║██╔════╝╚══██╔══╝
 ╚████╔╝ ██║  ██║██║██║        ██║   
  ╚██╔╝  ██║  ██║██║██║        ██║   
   ██║   ██████╔╝██║╚██████╗   ██║   
   ╚═╝   ╚═════╝ ╚═╝ ╚═════╝   ╚═╝   

Release MIT licensed Build Status Go Report Card

Ydict, another command-line youdao dictionary for geeks!

(中文介绍文档)

Features

  • Chinese -> English
  • English -> Chinese
  • Show hints if word is not found
  • Speech
  • Show example sentences

Installation

Homebrew

brew tap timothyye/tap
brew install timothyye/tap/ydict

Using Go

go get github.com/TimothyYe/ydict

Manual Installation

Download it from releases, and extact it to /usr/bin.

Speech

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.

Mac OS

brew install mpg123

Ubuntu

sudo apt-get install mpg123

CentOS

yum install -y mpg123

Usage

  1. Query
ydict <word(s) to query>
  1. Query with speetch (Available for MacOS & Linux)
ydict <word(s) to query> -v
  1. Query and show more example sentences
ydict <word(s) to query> -m

SOCKS5 proxy

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.

Help

Just type "ydict" to get help.

Licence

MIT License

About

Yet another command-line youdao dictionary for geeks!

https://xiaozhou.net/command-line-tool-ydict-2017-09-11.html

License:MIT License


Languages

Language:Go 100.0%