All Projects → TimothyYe → Ydict

TimothyYe / Ydict

Licence: mit
Yet another command-line youdao dictionary for geeks!

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Ydict

Dict
Chinese and English translation tools in the command line(命令行下中英文翻译工具)
Stars: ✭ 243 (-23.58%)
Mutual labels:  dict, translate, youdao
Chrome Extensions Youdaowithwordnode
有道词典chrome划词插件,原版不带生词本,在其源码基础上,添加了添加生词本的功能,生词本用的有道官方API
Stars: ✭ 74 (-76.73%)
Mutual labels:  dict, translate, youdao
kictor
A dictionary based on the console, 一个基于控制台的词典工具
Stars: ✭ 15 (-95.28%)
Mutual labels:  dictionary, translate, youdao
Eazydict
简单易用的命令行词典 📕 📙 📗 📘 📓
Stars: ✭ 92 (-71.07%)
Mutual labels:  dictionary, dict, youdao
Scalpl
A lightweight wrapper to operate on nested dictionaries seamlessly. 👌
Stars: ✭ 153 (-51.89%)
Mutual labels:  dictionary, dict
Copytranslator
Foreign language reading and translation assistant based on copy and translate.
Stars: ✭ 12,787 (+3921.07%)
Mutual labels:  dictionary, translate
Translators
🌏🌍🌎Translators🌎🌍🌏 is a library which aims to bring free, multiple, enjoyable translation to individuals and students in Python. Translators是一个旨在用Python为个人和学生带来免费、多样、愉快翻译的库。
Stars: ✭ 295 (-7.23%)
Mutual labels:  translate, youdao
Wudao Dict
有道词典的命令行版本,支持英汉互查和在线查询。
Stars: ✭ 746 (+134.59%)
Mutual labels:  command-line, dictionary
Isearch
有道词典 命令行查询 柯林斯词典 单词管理 本地保存
Stars: ✭ 201 (-36.79%)
Mutual labels:  dictionary, youdao
AlfredWorkflow YoudaoTranslate
alfred workflow,有道翻译
Stars: ✭ 20 (-93.71%)
Mutual labels:  translate, youdao
weel-translate
🚦 后续更新发布到 Releases 不再提交 AMO 扩展市场
Stars: ✭ 57 (-82.08%)
Mutual labels:  dict, translate
web-translate
支持pdf和web的双击划词翻译脚本,当前使用爱词霸公共api
Stars: ✭ 43 (-86.48%)
Mutual labels:  translate, youdao
Dynamictranslator
Instant translation application for windows in .NET 🎪
Stars: ✭ 131 (-58.81%)
Mutual labels:  dictionary, translate
Saladict Desktop
✨✨桌面划词与翻译工具,聚合了 N 多词典,功能强大,支持 Windows 、 Mac 和 Linux。
Stars: ✭ 187 (-41.19%)
Mutual labels:  dictionary, translate
MrTranslator
📘MrTranslator-A Translation Android APP
Stars: ✭ 16 (-94.97%)
Mutual labels:  translate, youdao
Python Benedict
dict subclass with keylist/keypath support, I/O shortcuts (base64, csv, json, pickle, plist, query-string, toml, xml, yaml) and many utilities. 📘
Stars: ✭ 204 (-35.85%)
Mutual labels:  dictionary, dict
Alfred Parrot
📝 一款可以多种语言翻译的 Alfred Workflow
Stars: ✭ 89 (-72.01%)
Mutual labels:  translate, youdao
Popup Dict
Linux 下的划词翻译小工具
Stars: ✭ 69 (-78.3%)
Mutual labels:  dict, youdao
terminal-translate
a terminal-translate tool
Stars: ✭ 73 (-77.04%)
Mutual labels:  translate, youdao
gdict
A command line dictionary written in golang powered by multi engines.
Stars: ✭ 21 (-93.4%)
Mutual labels:  dictionary, youdao
██╗   ██╗██████╗ ██╗ ██████╗████████╗
╚██╗ ██╔╝██╔══██╗██║██╔════╝╚══██╔══╝
 ╚████╔╝ ██║  ██║██║██║        ██║   
  ╚██╔╝  ██║  ██║██║██║        ██║   
   ██║   ██████╔╝██║╚██████╗   ██║   
   ╚═╝   ╚═════╝ ╚═╝ ╚═════╝   ╚═╝   

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
  • Vim support

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 extract it to /usr/bin.

Integrate with Vim

To query words from Vim, you need another Vim plugin: vim-ydict

Speech

Starting from V0.9, speech feature is available. You need to install mpg123 to enable this feature.

Windows x64

Speech Adaptation by ycrao under Windows OS.

  • Just copy bass.dll and mpg123.exe (can also with ydict.exe) file to Windows system path (such as C:\Windows\ or C:\Windows\System32 ) .
  • Or copy bass.dll and mpg123.exe (can also with ydict.exe) file to somewhere in the same directory, and setting that directory in PATH System Environment Variables .

Mac OS

brew install mpg123

Ubuntu

sudo apt-get install mpg123

CentOS

yum install -y mpg123

Usage

ydict [flags]

Flags:
  -c, --cache       Query with local cache, and save the query word(s) into the cache.
  -d, --delete      Remove word(s) from the cache.
  -h, --help        help for ydict
  -l, --list        List all the words from the local cache.
  -m, --more        Query with more example sentences.
  -p, --play int    Scan and display all the words in local cache.
  -q, --quiet       Query with quiet mode, don't show spinner.
  -r, --reset       Clear all the words from the local cache.
  -s, --sentence    Translation of sentences.
  -v, --voice int   Query with voice speech, the default voice play count is 0.
  1. Query
ydict <word(s) to query>
  1. Query with speech
ydict -v 1 <word(s) to query>
  1. Query and show more example sentences
ydict -m <word(s) to query>
  1. Query and add this word into local cache, next time when you query the same word, it will be feched from the local cache and be much more faster.
ydict -c <word(s) to query>
  1. Query sentence
ydict -s "你觉得咋样?"

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.

New words notebook

Starting from ydict V2.0, new words notebook is supported. You can use is to add/delete your new words and play it.

  • Add a new word to the notebook
ydict -c hello
  • Remove a word from the notebook
ydict -d hello
  • List all the words from the notebook
ydict -l
  • Display a random word from the notebook for every 10 seconds
ydict -p 10

Help

Just type "ydict" to get help.

Licence

MIT License

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].