Writing a first plugin
I want to write my own plugin to automate some ePub post-conversion processing. I have read the calibre manual on writing plugins but there is still quite a learning curve to go through, so I would like to "cheat".
My plugin will work along the following lines:
1) Select an ePub book in the Library (GUI).
2) Explode the selected ePub.
3) Do some stuff to the xhtml files.
4) Rebuild the ePub.
Can any recommend a simple plugin that I can use as a basis for this type of processing? I can then reverse engineer it to, hopefully, get a better understanding of how plugins work.
I did start looking at kiwidude's Modify ePub plugin, (since it's one I already use), but it's quite a substantial plugin and does not appear to be simple!
|