View Single Post
Old 04-07-2025, 03:20 PM   #3762
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,372
Karma: 148951763
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by graycyn View Post
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.

Last edited by JSWolf; 04-07-2025 at 03:22 PM.
JSWolf is offline   Reply With Quote