I'm trying to make a conversion output plugin, but I'm not too sure where to start. I don't see any examples. I'm not looking to make a brand new plugin, at least I don't think so; I think that extending the ePub conversion output class would be fine. Basically, I want a conversion output plugin that produces the same end result that my KoboTouchExtended driver plugin does.
For a first step, I looked at calibre.ebooks.conversion.plugins.epub_output.EPUB Output and made a subclass KEPubOutput that extends EPUBOutput and does nothing but change the three variables at the top of the class
Code:
name = 'KePub Output'
author = '<me>'
file_type = 'kepub.epub'
The file_type change worked (I think?); I saw 'KEPUB.EPUB' in the list of output formats, and when I selected it the resulting file had the 'kepub.epub' extension, but the 'EPUB Output' option on the left side of the conversion window didn't change to 'KePub Output' like I was expecting.
Is there a sample of a conversion output plugin somewhere I can reference, or is there some other documentation I missed?