glutanimate / popup-dictionary

Pop-up Dictionary Add-on for Anki
https://ankiweb.net/shared/info/153625306
Other
76 stars 15 forks source link

Adjusting minimum word length in config #16

Open gaksogeum opened 5 years ago

gaksogeum commented 5 years ago

Checklist

Please replace the space inside the brackets with an x if the following items apply:

Problem case

Is your feature request related to a problem? If so, please describe it here. E.g.: "My workflow is such and such, and this and that would help."

Some people in Anki 2.1 addon page report that their pop-up dictionaries don't work, and I think I found one of that reason. This happens in asian characters, or maybe non-latin characters, since many of nouns, in asian language, are short. There are so many situation that I have to search 2 letter words, or only 1 letter words. So tweaking code helps this situation now, as I can change term.length > 1. in web.py file. But we can have better solution.

Solution

Concisely describe the solution you would like

It'll be nice if I can adjust threshold in add-on config.

Concisely describe alternatives you've considered (if any)

More information

Additional context: Add any other context or screenshots about the feature request here.

BlueGreenMagick commented 4 years ago

I think a possible solution to this would be to ignore minimum word length when using hotkey to invoke tooltip. And only apply min word length when using double click.