View Single Post
Old 11-26-2018, 07:20 PM   #8
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by geek1011 View Post
That's one of the issues. I'm trying to figure out how to skip the initial Epub stuff that calibre does,
Which stuff are you trying to skip? An output plugin isn't about converting from a specific format to another. It is to allow converting from any format to the output format. Calibre is basically converting to an intermediate format and then converting that to the output format.

If you want to skip that, and transform an existing epub to kepub, then either create a user interface plugin that runs kepubify and adds the output to the library, or an alternative to the KoboTouchExtended driver that does the transformation during the send-to-device.

Note: I use the word "transform" deliberately above to differentiate from a calibre conversion. The conversion can make a lot more changes than what the KoboTouchExtended driver does, and I assume that kepubify does.
Quote:
and also, the extraction of kepubify on every conversion slows everything down significantly. That should put it back to full speed.
There are a few plugins that extract files from themselves for some purpose. The Annotations plugin is one. That code was written by the original author, but it is called during calibre startup. It only does something if the files don't exist or need to be updated. I don't know if anything from the output plugins are called at that point. It might be possible to do when the configuration options are called. That will mean it is done only once for bulk conversion.

An alternative is what the DOC input plugin does. It needs a MS Word executable and has a configuration option to set the path to the executable.
davidfor is offline   Reply With Quote