Quote:
Originally Posted by graycyn
I hear you. I decided to clean up a quite old epub (2010) that I'd never read (a freebie), but one I've always meant to read. Well, Calibre was having a hard time with it, i.e. really slow. So I went in, looked at the code and there was a style set up in the head in each and every HTML file. And that style file consisted of about 3 zillion or so font declarations. It was, I kid you not, 6200+ lines of completely unnecessary code! In every blamed HTML file, all 28 of them! The ebook did not have any embedded fonts whatsoever. It looked like someone had just decided to reference every dang font on their machine when they made the ebook. I'd never heard of half the fonts. Needless to say, that was a head-shaker!
And not terribly fun to get rid of, since I couldn't select the whole mess for find/replace. No blame to Calibre, who'd think you'd ever need to do something like that? With some experimentation, I was finally able to select about 500 lines of the file for find/replace, Calibre could handle that OK and I got it done, 500 lines at a whack. Hopefully I'll actually enjoy the book....
|
Wow! What a heck of an eBook. Even if you don't like it, you can hold your head up high and say..."I tamed the beast!".
I once bought an eBook from Simon & Schuster. The CSS was broken. I was unable to find how to return it. I had a dive into the code and was able to fix it.