LuteOrg / lute-v3

LUTE = Learning Using Texts: learn languages through reading. Python/Flask.
MIT License
422 stars 46 forks source link

Integrate Golden dict app with Lute #1

Open hieutran-coder opened 1 year ago

hieutran-coder commented 1 year ago

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
jzohrab commented 1 year ago

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

A few questions:

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

hieutran-coder commented 1 year ago
99MengXin commented 1 year ago

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
jzohrab commented 1 year ago

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

99MengXin commented 1 year ago

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

hieutran-coder commented 1 year ago

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

99MengXin commented 1 year ago

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

jzohrab commented 1 year ago

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 commented 1 year ago

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?

99MengXin commented 1 year ago

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