pgaskin / kepubify

Fast, standalone EPUB to Kobo EPUB conversion tool.
https://pgaskin.net/kepubify
MIT License
640 stars 34 forks source link

Feature request: Unkepubify #67

Open d-faure opened 3 years ago

d-faure commented 3 years ago

Hi,

I would find quite interesting to have a simple way to reverse the tool action and be able to get a check-compliant epub from a kepub.

pgaskin commented 3 years ago

check-compliant epub

A valid KEPUB is a valid EPUB, except for the [properties="cover-image"] on the cover image manifest item if it's an EPUB2.

Is there a specific use case you have in mind?

d-faure commented 3 years ago

Looking a bit on the kepubification process I noticed that a lot of extra html structures were introduced into the original code (even some javascript). I'm used to make compilation of my books to keep stories in several parts in a single volume, and few times I had to process kepubs, I found redundant span definitions I had to manually remove before merging them, and as far as you already know how to process books in a way, I was thinking it wouldn't be too difficult for you to reverse the operation.