![]() |
[Plugin] KePub Output
1 Attachment(s)
This output plugin adds kobo spans in all xhtml files, to every sentence. This is to make to the Kobo reader remember how far you've read into a chapter and it also enables annotating and bookmarking.
When you've ran the plugin, it asks where you want to save it. Save as .kepub.epub! It's based code from the Calibre KePub Output Plugin, all credit goes to jgoguen. I modified it to work in Python 3 since that is what Sigil uses. I have only tried it with one story (EPUB3) on Linux, so it might not work for all! Example Spoiler:
You can also check out my helper tool epubmake, which is a Makefile and includes epubcheck, kindlegen and kepubify support. It lets you keep your books in version control! It can watch your current epub file that you're editing and run epubmake on save. Version 0.0.2 Source code on github |
Thanks for the contribution to improve the Sigil experience! I'll see it gets added to the plugin index.
|
Each time I run the plugin, I get this error:
Code:
TypeError: sequence item 1: expected a bytes-like object, str foundDid I misunderstand something? Sigil v. 0.9.7, Windows 10, 32 bit. |
Quote:
1. Locate the Kepub Plugin folder (Edit > Preferences > Peferences Location). 2. Open kepubify.py and locate the following line: Code:
root = re.sub(b'<p[^>/]*/>', '<p></p>', root).decode('utf-8')Code:
root = re.sub(b'<p[^>/]*/>', b'<p></p>', root).decode('utf-8') |
Have a look at the Calibre plugin that converts to kepub and make sure your works the same.
|
@Doitsu: Works! Great! Thank you!:2thumbsup
@JSWolf: What I wanted to have a look at is whether the plugin renders a "real" kepub with the effect that the kepub specialities would be assigned to the book, but this the plugin doesn't seem to afford. Adding it to Calibre renders an epub as input format; substantial changes seem not to take place. |
@Leonatus - JSWolf presumably had this calibre plugin in mind ==>> [Conversion Output] KePub Output Plugin
According to the first post for this plugin, it is based on that calibre plugin, which could mean it inherits from the calibre plugin, or the calibre plugin was hacked to create this plugin. The calibre plugin was last updated on June 26 2016, this plugin went to air in December of 2016 . . . BR |
Quote:
|
Quote:
I coudn't hurt to convert some of your books with KevinH's epub3 output plugin and test them on a Kobo (after changing the file extension to .kepub.epub). If the rendering is mostly OK, you could do some research to find out what needs to be changed for Kobo readers and report your findings to the Calibre/Sigil Kepub plugin developers. If it's only minor cosmetic changes that won't invalidate the epub3, KevinH might even be willing to add a Kobo postprocessing option to his epub3 plugin. |
Thank you for your hints! In fact, I'm not thus keen on rendering my epubs as kepubs. there are advantages of the kepub mode - there are people who don't even like them, though - but there are also some problems that normally leave me to remain at the epub format. For example the hyphenation feature of Kobo doesn't work - at least for me, very reliable, there are many errors, whereas the epub-plugin of SauliusP (Calibre) is very good.
It was mere curiosity that lead me to test the new plugin. |
Quote:
So if you don't want kepub,why are you in this thread trying out the plugin to convert to kepub? |
Quote:
|
Quote:
@Davifor: I made the experience that for example fonts that I had added in the epub (and there showed correctly) did not show on the device after converting the epub to kepub under Calibre. But this was a time ago, and things might have changed meanwhile. I'll give it a try once more, now that all deny my own experience. |
Quote:
|
@Leonatus,
There is another problem you might be running into. By default the Kobo has some internal CSS override code for kepubs which is different from the override used for standard epubs, Code:
* { font-family: %1 !important; }The Kobo Patcher does have a 'fix' for this (patch_name = `Un-Force user font-family in KePubs`) for those (I'm one of them) who dislike the heavy-handed default override. There are 3 alternative replacements to choose from.
|
| All times are GMT -4. The time now is 08:34 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.