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.