View Single Post
Old 03-09-2015, 09:52 AM   #10
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 kovidgoyal View Post
That commit is a hack to allow the viewer to view kepub files, without writing a proper input plugin for kepub, since writing an input plugin will mean kepub can also be converted, and as I personally have no use for kepub I dont want to maintain such a plugin. If someone else wishes to commit to maintaining it, I have no objections to adding such a plugin (along with the accompanying metadata reader/writer plugins) to calibre. Or you can just develop and distribute such a set of plugins as standalone plugins.

Generally speaking I like to avoid adding support for single company ebook formats into the calibre core (there are of course exceptions [prominently lrf and the Kindle formats] and this is not a inviolable rule).
I can't say I blame you. I've been putting it off for ages and I might actually use them. I'll have a look at the input plugin and see if I want to do it or not.

In the meantime, for those who want to try it, I've attached the metadata reader and writer plugins. They are quick and dirty and simply sub-class the epub plugins. I haven't added the proper cover handling, but I'll look at later in the week.
Attached Files
File Type: zip KEPUBMetadataReader.zip (668 Bytes, 305 views)
File Type: zip KEPUBMetadataWriter.zip (670 Bytes, 312 views)

Last edited by davidfor; 03-10-2015 at 05:17 AM. Reason: Now with added attachments.
davidfor is offline   Reply With Quote