View Single Post
Old 11-08-2020, 06:47 PM   #2385
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: 47303826
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Barruel View Post
Crystal clear explanation. Thank you, sir.

Now the question is: is it possible to force the driver to do a full Calibre conversion instead of just adding the kepub bits?
Yes, it is possible to force a full conversion when doing a send-to-device. In fact, this is a function built-in to calibre. If you send a book to a device, and you do not have a format the device support, then the book will be converted before sending it. The driver for each device has a list of supported devices. Changing this, will change what is sent.

For Kobo devices, as they do support epubs, you have to change the configuration in the driver to not include epubs and have kepub at the top of the list of supported formats. You also need to install the Kepub Output plugin and Kepub Metadata writer plugin. After that, any epub sent to a Kobo device will be converted to kepub before sending to the device. This conversion will use the default conversion options. The kepub will be added to the library. If you send the book to a Kobo device again, the kepub version will be used.

Quote:
Originally Posted by Barruel View Post
I see. Can such an option be added? The driver seems to be already unpacking the book to add the kepub bits, so it won't change much the process of adding the books to the device.
Which was an explicit decision when the extended driver was created. It is done on the principal of minimal changes to the book. It assumes the epub is already suitable (not DRM, no errors, formatted how the reader wants it). Then it makes only the changes needed for the book to work as a kepub. If more than this is needed, the plugins needed for conversion exist and can be used.

The drivers do support adding extra CSS to the stylesheets in the epubs. This can be used to change indent or there parts of the style. That may do what you want, but, it will depend on the epub and the classes it uses.
davidfor is offline   Reply With Quote