View Single Post
Old 11-04-2021, 08:12 PM   #2
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
Quote:
I can't imagine the original book was built this way.
You can find absolutely anything in an ebook. Even new purchased books from major publishers can have some head-scratching code that makes you just go "WHY‽" (and even important errors in the html or css - don't they check?)

If you are getting books from amateur publishers or "free" sites, then the sky isn't even close to the limit. I've seen books where every paragraph had a different style name. The css had about 15,000 lines in it. Huge numbers of <span>s are not uncommon. Books like this may have been made for a particular audience, and/or gone through many hands before you.

So don't be surprised at this nonsense, very little of it is due to Calibre. The styles "calibre1", "calibre2" and so on is Calibre taking whatever it is given and trying to make a readable book out of it. Give it a nice, clean, well-coded book and it will do a very good job, with a minimum of "calibre" styles. Give it some weirdly coded book, and who knows what comes out.

If you get an "original" book in epub or azw3, try opening it in the editor before you convert it, and look at the coding. Some are so weird you can't even understand them (until after Calibre has dome a lot of clean-up with a conversion).

DeDRM, by the way, does no conversion at all, it just decrypts. If you are getting automatic conversions, you have set Calibre to do that, probably in Preferences-->Adding Books.
retiredbiker is offline   Reply With Quote