Giter VIP home page Giter VIP logo

my_dict's Introduction

下载地址

简介

一个词典客户端。支持:

  • 剪贴板取词。
  • OCR取词。
  • 基本的查词功能。
  • 基本的翻译功能。
  • 支持开机自启动。
  • 单文件,双击即可运行。
  • 支持离线词典。

词典界面

zhuchuangkou

zhuchuangkou

剪贴板取词

剪贴板取词

剪贴板取词

OCR取词

英文取词:

grab.png

汉字取词:

grab.png

设置界面

设置界面

下载离线词典

下载词典

生词本

wordbook

review

支持的系统

  • UOS 社区版
  • Ubuntu 20.04

理论上也支持其他Linux发行版,未测试。

源码运行

python3 mydict.py

打包

pip3 install pyinstaller
pip3 install -r requirements.txt
pyinstaller mydict.spec

注意:

  • 第2步有可能会失败。建议先源码运行,报错缺少哪个库就用pip3安装哪个库,这样一个一个地安装成功的概率会高很多。

  • 打包时可能会报某些目录没有执行权限,这会导致打包失败。建议通过chmod给对应的文件加上可执行权限。

感谢

  • 感谢stardict项目,该程序的离线词典使用的该项目的词典。下载地址:http://download.huzheng.org
  • 在线查词和翻译功能使用了有道词典的API,所有权归有道,不晓得是否可以使用,侵删。

开发文档

https://blog.mydata.top/index.php/category/mydict/

my_dict's People

Contributors

xxnull-lsk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

my_dict's Issues

ocr 不能启动

安装服务器那儿点击安装,提示
Thread-7 run app: bash /opt/my_dict/res/ocr.sh install
提升freeor 为管理权限...

以管理员权限运行...

安装Docker...

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

正在读取软件包列表...

正在分析软件包的依赖关系树...

正在读取状态信息...

将会同时安装下列软件:

libcurl4

下列软件包将被升级:

curl libcurl4

升级了 2 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 60 个软件包未被升级。

能否增加代理服务配置

google翻译很慢,希望能配置代理服务。

另外,谢谢作者开发my_dict,linux上的词典太难用了(要么功能缺失要么配置复杂)。
不知道作者是否用过windows的lingoes,my_dict有点linux的lingoes 感觉,简单实用(如果没用过,可以借鉴下lingoes的功能和UI)。

能不能自动设置焦点在输入框中 ?

使用快捷键呼出主界面后, 能不能设置输入焦点。比如,
如果是 "词典" 界面, 能不能将输入焦点设在 "搜索单词" 输入框中 ?
如果是 "翻译" 界面, 则自动设置 输入焦点 在 "粘贴"框 中?
这样可以直接输入要查询/翻译的内容, 而不需要使用鼠标手动设置输入焦点,再输入内容 ?

无法切换中文输入法

OS: Manjaro Linux x86_64 
Kernel: 5.15.85-1-MANJARO 
  • 输入法为 fcitx (fcitx4, fcitx-google)
  • .xprofile 中已添加
export QT_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
export SDL_IM_MODULE=fcitx
  • fcitx 诊断信息
## Qt:
1.  qt4 - `${QT4_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

2.  qt5 - `${QT_IM_MODULE}`:

    Environment variable QT_IM_MODULE is set to "fcitx" correctly.

3.  Qt IM module files:

    Found fcitx qt module: `/usr/lib/fcitx/qt/libfcitx-quickphrase-editor5.so`.
    Found fcitx im module for Qt5: `/usr/lib/qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
    Found fcitx im module for Qt5: `/usr/lib/qt6/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin-qt6.so`.
    Found fcitx im module for Qt5: `/usr/lib/office6/qt/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
    **Cannot find fcitx input method module for Qt4.**

我的词典在ubuntu 22.04 上无法启动。

系统为 ubuntu 22.04 内核为 6.1.0-1008-oem 设备为thinkbook 16+ intel 核显版。
问题为安装软件后点击图标运行界面没有任何反应,且看不到报错信息。

点击发音无播放

OS: Manjaro Linux x86_64 
Kernel: 5.15.89-1-MANJARO 
DE: Xfce 4.18 
WM: Xfwm4 

v0.6.14, 关闭查词自动播放发音, 查词后手动点击发音, 不播放发音

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.