Thank you for a reply 'ducks. Producing semantic code is what I did for a living. That Calibre behavior on conversion (to non-semantic over-constraining HTML) is so frustratingly consistently is why I decided to post. I assure you, I do not invent these "calibre_42" classes. In fact, no human being would. It takes software to be so consistently destructive of good structural code. Dropping h2 tags seems egregious but it happens--and has happened for months. Most, but not all, of my own classes are multiplied and obliterated. For instance, Calibre may detect a footnote in an element, and therefor create a whole new "calibre_103" because a superscript tag will alter computed line-height. It goes on.
I can save the original code and just paste it over the Calibre-produced nonsense (blowing away the bloated Calibre-produced CSS too) but, really, this tedium should not be necessary.
I wish there were a checkbox on conversion: "Leave the HTML structural code alone."
|