Quote:
Originally Posted by compurandom
But we are converting a valid epub and it creates a buggy kepub. You are explaining how kepubs work, and I'm grateful. But the input file is a epub, and the way the kepub works is not how the epub is suppose to work. Inbetween is a bug.
|
And of course the kepub doesn't work like the epub because it is not an epub and is following the kepub rules.
No bug involved.
Quote:
Sometimes the bug is in the epub -- like when the cover page is attached to other things, or when a page is not marked a as a coverpage at all. This is hard to fix and it would be nice if the quality check plugin could flag at least some of these.
|
And none of that is a bug. An epub does not have to have a "coverpage". That means the epub does not have to have an XHTML file marked as "cover". And it does not have to have the cover image displayed anywhere. And the cover XHTML file does not have to display the cover image.
Quote:
Sometimes the bug is in the conversion, where the book does not have a cover page but does have a cover image but the kepub converter fails to create a cover page. If the converter isn't going to create a cover page for this case, then it would be helpful if quality check could flag it.
|
Can you please show me in the kepub specs where it says the book must have a "cover page"? Where it says that the cover image must be on a page in the book? It does say that if the cover image is displayed, it should be the only thing in the file. But, none of that is mandatory.
Quote:
If the book has no cover at all, quality check can already flag it, and it is questionable if the kepub converter should fix that or not, although calibre already has the ability to generate a cover.
|
Sorry, the whole point of what I have been saying is that the kepub is
NOT "buggy". The kepub is behaving
EXACTLY as it is supposed to. It is just not behaving how
you want it to.
If you want the kepub to behave the way you think it should, then prepare the epub first. Or, use the conversion process rather than the extended driver. Or do an epub-to-epub conversion, or a Polish or use the Modify ePubs plugin to fix the covers.
And the Quality Check plugin doesn't flag if the book doesn't contain a cover. It flags if calibre doesn't have a cover for the book. That means that if you have added a cover to the calibre library, but have not done one of the actions to update the epub with the cover, it isn't going to be there and Quality Check won't tell you. But, you could probably use the "Check no calibre SVG cover" to get close to what you want. Or this plus the "Check non-replaceable cover". Anything that does have a calibre SVG cover will work the way you want it. Anything that doesn't have a replaceable cover is suspect.
And for my curiosity, can you tell me any software that does anything with the XHTML file that is marked as a cover? To the best of my knowledge, nothing does. The calibre editor will set it, and calibre will probably use it if there is no image file marked as a cover when it is getting the cover from an epub. But I have never heard of anything that will do anything with it. Nothing in the Kobo world does. As far as I can tell, everything either looks for the image file marked as a cover, or renders the start of the book and uses the first page.