Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SilverDict integration #110

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Crissium
Copy link

@Crissium Crissium commented Oct 26, 2023

I am the developer of SilverDict, a web-based dictionary lookup tool that supports DSL, StarDict and MDict. Unlike GoldenDict, it exposes a lookup API (/api/query/<Group name>/<word>) that could be easily integrated into other programs, including Diogenes.

I have added a few lines in server/Diogenes/Perseus.pm beside the ones that create links pointing to the PDF Latin dictionaries. They create another link pointing to http://localhost:2628/api/query/Diogenes/$word, which when clicked, opens a pop-up window showing the definition. For this feature to work, users need to have a local SilverDict installation and create a dictionary group named 'Diogenes' with the languages el, la, and add relevant dictionaries. This feature has been tested on Linux desktop (with and without electron) and Android.

Screenshot

Edit: it might be better if the server address of SilverDict is configurable instead of hardcoded to localhost.

@Crissium
Copy link
Author

I just committed a new change that replaced the link to the bare HTML article with a full SilverDict web interface, and now when opened the new window is placed at the bottom right corner.

Screenshot_2024-03-17_17-07-54

@pjheslin
Copy link
Owner

pjheslin commented Apr 4, 2024

Thank you so much for working on this. I'm very sorry I never got back to you about in October; I had some personal issues. I am keen to test this functionality now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants