1 Star 4 Fork 0

ccmywish / ecdict

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

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

MIT License Copyright (c) 2020-present Aoran Zeng. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

📚 ecdict dictionary (Ruby Powered) 命令行端的离线词典ecdict,数据源包含340万单词 展开 收起
Ruby 等 2 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Ruby
1
https://gitee.com/ccmywish/ecdict.git
git@gitee.com:ccmywish/ecdict.git
ccmywish
ecdict
ecdict
main

搜索帮助

14c37bed 8189591 565d56ea 8189591