lute-v3 icon indicating copy to clipboard operation
lute-v3 copied to clipboard

Integrate Golden dict app with Lute

Open hieutran-coder opened this issue 2 years ago โ€ข 10 comments

Is your feature request related to a problem? Please describe. Golden dict is app can have many dictionaries. It may be good to integrate it with Lute A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like

  1. I have an idea. Can open Golden dict in webpage like localhost so I could have its link like DeepL or Google translate to use. I'm not sure it can be successful! A clear and concise description of what you want to happen.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here. Screen Shot 2023-02-16 at 13 31 16

hieutran-coder avatar Feb 16 '23 06:02 hieutran-coder

Hi @hieutran-coder , thanks for the idea. :-)

A few questions:

  • I don't use Goldendict, so I'm not clear on what the benefit of this idea is as opposed to using online dictionaries. Is the benefit that you can more easily control the dictionaries? Better lookups? Have offline dictionary lookups?
  • Does Goldendict have an API that we can call? I did a quick search but couldn't see anything offhand. (There is an open issue on their repo, https://github.com/goldendict/goldendict/issues/618, it doesn't look like it's available yet though. ... also other issues, https://github.com/xiaoyifang/goldendict/issues/229, https://github.com/goldendict/goldendict/issues/37). Given the age of these issues, perhaps Goldendict isn't the best dictionary to consider! Thoughts?

Since I'm the only dev/contributor on this project (so far), I'm not likely to implement this very soon, if at all, but if you can look into a possible simple API, that will at least simplify things.

Cheers! jz

jzohrab avatar Feb 16 '23 17:02 jzohrab

  • I think Golden dict contain a lot of dictionaries we can add, from which one word we can compare many dictionaries, a definition will be reviewed many times, or have mutiple examples, which make word more clearly, and more remember. When we use online dictionaries, the number of dictionaries will be limited.
  • So of course, golden dict have many functions help we learn vocab which depending on the working process of each person to enjoy. It have all your idea benefits and more
  • I also don't know if Golden dict has an API or not? but there is one example you can see, here seems to be installed on win, but not for macOS
  • ReadLWT
  • Thank for your responses

hieutran-coder avatar Feb 17 '23 08:02 hieutran-coder

Hi @hieutran-coder I use flask-mdict which available on GitHub for my offline dicts options. It can work fine with LWT. https://github.com/liuyug/flask-mdict

Another project but I never use, too complicated to me. https://github.com/jiangnianshun/django-mdict

2023-02-14_10 43 01

99MengXin avatar Feb 21 '23 13:02 99MengXin

Hi @99MengXin , this is Lute, not LWT, a completely separate project. Does that dictionary also work with lute?

jzohrab avatar Feb 21 '23 15:02 jzohrab

Hi @jzohrab, this dictionary is a web service based on flask of python. Hope I'm not wrong. ๐Ÿ™‚

Here are some screenshots of the demo.

ๆˆชๅœ– 2023-02-22 07 48 17 ๆˆชๅœ– 2023-02-22 07 48 46

99MengXin avatar Feb 21 '23 23:02 99MengXin

Hi @99MengXin, thank you for your solution ๐Ÿ‘๐Ÿฝ

hieutran-coder avatar Feb 24 '23 10:02 hieutran-coder

@hieutran-coder If you'd like to use this solution, please be aware the requirement of flask package is 1.X not 2.X.

99MengXin avatar Feb 24 '23 10:02 99MengXin

Golden Dict is too difficult to work with, it looks like that python solution is the way to go. Thanks @99MengXin for the suggestion.

Leaving this open b/c I should try it out and document it on the wiki, it's a good option for travellers.

jzohrab avatar Mar 18 '23 19:03 jzohrab

Hi again @99MengXin - in jzohrab/lute-v3#6 and jzohrab/lute-v3#5 I've got some notes about integrating other dicts. Where do you get your offline dicts? Are they StarDict, or something else?

jzohrab avatar Jun 25 '23 05:06 jzohrab

Like link below, the .mdx file. Release ECDICT - 28 ยท skywind3000/ECDICT

99MengXin avatar Jun 27 '23 02:06 99MengXin