1 Star 3 Fork 0

ccmywish / ecdict

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

ecdict

Gem Version

gem install ecdict

📚 ecdict dictionary (Ruby Powered)

screencast

命令行端的离线词典ecdict,提供中英文双模式查询,支持REPL交互式查询,安装仅需要一个命令,其过程不需要外网。数据源包含340万单词,由项目skywind3000/ECDICT提供。支持 Linux,Windows,macOS.

若您有新的想法,发现了存在的/潜在的问题、可改善的地方(比如对REPL的交互性优化),又或者您想要参与开发以及日常维护,请您在issues 处反馈,并请阅读CONTRIBUTING.md

参考


安装

gem install ecdict

依赖

  • Ruby
  • SQLite3

若Windows上安装gem sqlite3失败,请翻到最下方查看解决方法


使用

ecdict: A courteous cli translator.

usage:

  ecdict word      => 查询单词word
  ecdict -r        => 启动ecdict repl交互式查询,输入exit或Ctrl-C/D退出
  ecdict -c  中文  => 搜索中文单词对应的英文单词/短语
  ecdict -i        => 下载ecdict词典数据并安装
  ecdict -v        => 打印此Gem版本号
  ecdict -h        => 打印此帮助
  ecdict -d        => 清空词典数据

Troubleshoot

Windows下安装 Gem sqlite3 失败

  • 下载安装sqlite源代码 sqlite-amalgamation-xxxx.zip 解压到某文件夹如D:\sqlite-src.
  • 运行 gem install sqlite3 -- --with-sqlite3-lib=D:\sqlite-src

Repository Comments ( 0 )

Sign in to post a comment

About

📚 ecdict dictionary (Ruby Powered) 命令行端的离线词典ecdict,数据源包含340万单词 expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
Ruby
1
https://gitee.com/ccmywish/ecdict.git
git@gitee.com:ccmywish/ecdict.git
ccmywish
ecdict
ecdict
main

Search