Perhaps you could take a look at how Modify EPUB does it.
Note: It uses calibre-debug to access the plugin through calibre APIs.
Note2: It is the only command-line plugin, probably for reason -- it is essentially shtick. Do it if it makes you feel happy...
|