Skip to content

Simple Cambridge Dictionary command-line tool.

Notifications You must be signed in to change notification settings

xwxb/camdict-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

20240116,大学倒数第二次英语考试,即兴有了想法做一个词典; 剑桥词典一直是我最喜欢的词典,没有找到网上大神做的本地词典,所以想做个更方便一点的命令行版; rust 入门项目,代码质量不佳,欢迎PR

英文版说明:

安装 / 更新

bash -c "$(curl -fsSL https://github.com/xwxb/camdict-cli/raw/main/install.sh)"

使用 (Find by CambrigeDict)

fcd [word] | [phrase]

默认展示三条释义,-a 参数全部展开,-n 参数指定具体数目

其他

灵感和参考致谢

TODO

  • 优化执行速度
  • 增强鲁棒性,尽量不报 rust 内部的错误:网络错误处理、
  • 中文反查
  • 模糊搜索
  • 最近搜索
  • 添加英文文档

暂时感觉没必要做,有需求可以提一下具体使用场景

  • 词型处理?暂时没想到规则是什么,目前情况是存在对应词型,有些是确实查不到需要处理
  • 查询缓存
  • 交互模式