Plugin for readers dictionary - create flash card to anki
#1  Publius Ovidius 04-14-2020, 03:54 PM
Hey there

Just a short question. I'd like to build a plugin for the reader. The basic idea is as follows:

- Every time I look up a word through the dictionary in Calibre I want to automatically create a flashcard in "Anki" for a given set.
- Once that would work it could be made better, i.e. through selecting the set it Anki by looking up the books tags, etc...

Would it - technically - be possible to add a plugin for the reader and catch the event?

I'm pretty new to programming and Calibre as well and would it consider to be a starting project - it can take me longer, I don't mind.

Thanks for your answers.


#2  kovidgoyal 04-14-2020, 10:22 PM
I'm afraid since the 4.x viewer rewrite the viewer has no plugin architecture. It's on my TODO list to create one, but I haven't had th etie to do it yet. You would need to modify the viewers source code to make such a change.

#3  Publius Ovidius 04-23-2020, 10:43 AM
okay I'll play with the code to see if I can figure something out ;-)
thanks for your quick response!

Today's Posts | Search this Thread | Login | Register