Score
0
Watch 2 Star 6 Fork 1

ccmywish / ecdictRubyMIT

Create your Gitee Account
Explore and code with more than 5 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 dictionary (Ruby Powered)

命令行端的离线词典ecdict,数据源包含340万单词,由项目skywind3000/ECDICT提供

本项目在Linux上开发,支持Windows,macOS.

提供两个命令ecreplecdict,前者用于交互式查询,后者用于单个单词查询


演示

screencast

安装

仓库仅有 50MB

依赖

  • Ruby
  • SQLite3

插入数据库时间大概为2-4分钟


自动安装

macOS和Linux用户

bash -c "$(curl -fsSL https://gitee.com/ccmywish/ecdict/raw/master/tools/install4nix.sh)"

Windows用户(PowerShell)

iwr -useb https://gitee.com/ccmywish/ecdict/raw/master/tools/install4win.ps1 | iex

如果出现错误,请运行

Set-ExecutionPolicy RemoteSigned -scope CurrentUser

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


使用

  • ecdict word 查询单词word
  • ecrepl 进入交互式查询,输入 exit 或 Ctrl-C 退出

Troubleshoot

Windows下 bundle 安装 sqlite3 失败

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

Comments ( 0 )

Sign in for post a comment

About

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

Releases

No release

Gitee Metrics

Contributors

All

Activities

load more
can not load any more