View Single Post
Old 01-21-2020, 07:56 AM   #4
Brett Merkey
Not Quite Dead
Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.
 
Posts: 195
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
Quote:
When is an ePub lossy?
When Calibre gets its hands on it
Understood—altho you are right, "lossy" may not be the best word. I have a hard time visualizing what kind of tweaks are worth such a roundabout process. However, if you want to convert AZW3 to ePub while preserving the HTML structure, and CSS class names, this path may save work:

1) In Calibre, open your corrected AZW file and save the CSS rules in a convenient location.
2) Convert your AZW file to ePub and open the ePub for edit.
3) Open stylesheet, delete every style and paste saved rules into file.
4) Apply Calibre's "remove unused style rules" tool. Save.

The last step, if done with "remove unused class attributes" checked, will clean the structure so it is the same as your original AZW3.

Last edited by Brett Merkey; 01-21-2020 at 08:01 AM.
Brett Merkey is offline   Reply With Quote