All Projects → kuanghy → kictor

kuanghy / kictor

Licence: other
A dictionary based on the console, 一个基于控制台的词典工具

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to kictor

Ydict
Yet another command-line youdao dictionary for geeks!
Stars: ✭ 318 (+2020%)
Mutual labels:  dictionary, translate, youdao
gdict
A command line dictionary written in golang powered by multi engines.
Stars: ✭ 21 (+40%)
Mutual labels:  dictionary, youdao, iciba
terminal-translate
a terminal-translate tool
Stars: ✭ 73 (+386.67%)
Mutual labels:  translate, youdao, iciba
web-translate
支持pdf和web的双击划词翻译脚本,当前使用爱词霸公共api
Stars: ✭ 43 (+186.67%)
Mutual labels:  translate, youdao, iciba
Chrome Extension Udemy Translate
Translate Udemy's subtitles into Chinese、English etc(Disneyplus+netflix+udemy+lynda+hulu+hbo now+primevideo)
Stars: ✭ 553 (+3586.67%)
Mutual labels:  translate, youdao
Translators
🌏🌍🌎Translators🌎🌍🌏 is a library which aims to bring free, multiple, enjoyable translation to individuals and students in Python. Translators是一个旨在用Python为个人和学生带来免费、多样、愉快翻译的库。
Stars: ✭ 295 (+1866.67%)
Mutual labels:  translate, youdao
Chrome Extensions Youdaowithwordnode
有道词典chrome划词插件,原版不带生词本,在其源码基础上,添加了添加生词本的功能,生词本用的有道官方API
Stars: ✭ 74 (+393.33%)
Mutual labels:  translate, youdao
Alfred Parrot
📝 一款可以多种语言翻译的 Alfred Workflow
Stars: ✭ 89 (+493.33%)
Mutual labels:  translate, youdao
Dict
Chinese and English translation tools in the command line(命令行下中英文翻译工具)
Stars: ✭ 243 (+1520%)
Mutual labels:  translate, youdao
Copytranslator
Foreign language reading and translation assistant based on copy and translate.
Stars: ✭ 12,787 (+85146.67%)
Mutual labels:  dictionary, translate
Dynamictranslator
Instant translation application for windows in .NET 🎪
Stars: ✭ 131 (+773.33%)
Mutual labels:  dictionary, translate
Saladict Desktop
✨✨桌面划词与翻译工具,聚合了 N 多词典,功能强大,支持 Windows 、 Mac 和 Linux。
Stars: ✭ 187 (+1146.67%)
Mutual labels:  dictionary, translate
MrTranslator
📘MrTranslator-A Translation Android APP
Stars: ✭ 16 (+6.67%)
Mutual labels:  translate, youdao
Mtrans
Multi-source Translation
Stars: ✭ 711 (+4640%)
Mutual labels:  translate, youdao
Many-Translaters
谷歌翻译,360翻译,iCIBA翻译,有道翻译,免费API
Stars: ✭ 121 (+706.67%)
Mutual labels:  youdao, iciba
Eazydict
简单易用的命令行词典 📕 📙 📗 📘 📓
Stars: ✭ 92 (+513.33%)
Mutual labels:  dictionary, youdao
Isearch
有道词典 命令行查询 柯林斯词典 单词管理 本地保存
Stars: ✭ 201 (+1240%)
Mutual labels:  dictionary, youdao
AlfredWorkflow YoudaoTranslate
alfred workflow,有道翻译
Stars: ✭ 20 (+33.33%)
Mutual labels:  translate, youdao
sketch-crowdin
Connect your Sketch and Crowdin projects together
Stars: ✭ 35 (+133.33%)
Mutual labels:  translate
priority-queue-dictionary
A Pythonic indexed priority queue
Stars: ✭ 74 (+393.33%)
Mutual labels:  dictionary

Kictor

A dictionary based on the console, 一个基于控制台的词典工具, 兼容 Python2 和 Python3。

功能简介

  • 支持有道词典、百度翻译、爱词霸三个 API 接口查词;
  • 支持单词发音;
  • 支持划词查询;
  • 支持输出爱词霸每日一句.
-b, --baidu      Select baidu api.
-i, --iciba      Select iciba api.
-d, --daysay     Print daily sentence of iciba.
-o, --resources  Print online web resources.
-s, --speech     Print URL to speech audio.
-r, --read       Read out the word, use festival on Linux.
-x, --selection  Show explaination of current selection.

注: 有道接口功能相对较全,所以默认的查词接口是有道。百度翻译结果太粗糙,爱词霸不支持句子翻译,但是单词的翻译还是很完美的。可以根据需要选择合适的接口。

控制台模式

如果不输入任何查询内容,则默认启动控制台查词模式。在控制台模式下支持执行 shell 命令,但需要加上 ! 前缀,同时支持切换查词接口:

  • @youda 切换到有道翻译
  • @baidu 切换到百度翻译
  • @iciba 切换到爱词

当输入 @exit@quit 或者 Ctrl+D 时退出控制台模式,输入 @help 可以查看帮助。

每日一句

  • kict -d 输出爱词霸的每日一句,

依赖的系统工具

  • xclip 用于划词查询
  • festival 用于单词发音

Debian/Ubuntu 安装:

apt-get install xclip

apt-get install festival

安装与使用

克隆本项目到本地,然后进入项目目录执行:

ln -s $PWD/kict.py /usr/bin/kict

或者

cp $PWD/kict.py /usr/bin/kict

注: 使用需保证系统有 Python 环境,且版本大于 2.6。

更新日志

2018.01.23

  • 使用标准库 cmd 模块重写控制台模式
  • 控制台模式每次查完次之后手动执行一次内存回收

2018.01.22

  • 用 urllib 库代替 requests 库,不再依赖任何第三方库
  • 修正部分代码风格

Huoty 2016-10-18

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