jdlorimer / chinese-support-redux

Anki add-on providing support for Chinese study
https://ankiweb.net/shared/info/1128979221
GNU General Public License v3.0
100 stars 50 forks source link

Fetch missing translations or sentences from DeepL? #154

Open JulienVincenot opened 4 years ago

JulienVincenot commented 4 years ago

Hi

Thanks for this add-on, it's just fantastic ! for so many reasons.

I am really new to Anki but I was able very easily to tweak the add-on to work with my already existing decks, bulk-add audio to all my cards (started lazy, stayed lazy... :) and customize tone colors for instance.

Now I have a remark / feature request. I guess many asked before but I didn't find it in past issues : I noticed that when a word is not already in chinese.db the translation field will stay blank. Sentences especially will not be translated (at least this is the case for French)

I don't know how hard it would be to implement in Python, but would it make sense, in case the dictionary returns nothing, to have the option of fetching a translation from the DeepL API or other? That would especially add support for other languages, and I suppose latency would not really be an issue...

Anyway, thanks for the huge work !

Julien

Hasnep commented 4 years ago

Something to note for anyone implementing this: the DeepL API requires a pro subscription to use.