View Single Post
Old 07-25-2023, 06:35 PM   #11
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,784
Karma: 169712580
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by SillyStegosaurus View Post
Alright, I installed the RemoveInlineStyles plugin to Sigil and opened an epub Calibre made from the original az3w.

"This EPUB has HTML files that are not well formed or are missing a DOCTYPE, html, head or body elements. Sigil can automatically fix these files, although this may very rarely result in minor data loss in extreme circumstances.

Do you want to automatically fix the files?"

I had it automatically fix the files, then applied the plugin to it. According to the output, no inline styles were found at all!

Checked the epub's stylesheet.css:

".calibre {
display: block;
font-size: 1em;
padding-left: 0;
padding-right: 0;
margin: 0
}
... lines deleted

Not really sure how to make sense of this. The epub I got from converting azw3 -> mobi -> epub is so far the only readable epub.
Basically, use KindleUnpack to extract the epub and then edit that. What you have above is a calibre conversion which converts inline styles to CSS classes but tends to muck around with the structure of the epub and also, creates epubs that are not standards compliant. Kovid Goyal (author of calibre) will argue that those standards have bits that are not needed/outdated and epubcheck is anal but many publishers will reject to reject the ebook when epubcheck does not pass it and more than a few ereaders and apps will have issues.
DNSB is offline   Reply With Quote