View Single Post
Old 07-29-2019, 09:17 AM   #11
MistaPrime
Member
MistaPrime began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2019
Device: EPUB
Quote:
Originally Posted by kovidgoyal View Post
No it is not because of classes, why dont you paste your own HTML into a standalone HTML and open it in a browser, you will see that the the footnote links are not rendered as superscripts. In order for them to be rendered as superscripts, the linked CSS files also need to be present to give the classes meaning. And if the linked CSS files are also present, calibre will use them. And just for completeness, here is an actual HTML snippet that uses classes for superscripts that will work in a browser and in calibre, because unlike the HTML you posted, it actually contains the style definitions.

Code:
<html><body><style>.ss { vertical-align:super}</style><p>A<span class="ss">superscript</span></p></body><html>
What if you had a client that that has thousands of pages that you cannot change? Which is in this case.

The links in the HTML are with a class footnote, it does not have a <sup> tag. And the HTML cannot be changed.

Calibre should be able to keep the class footnote in the link if we ask it to. Otherwise I am looking at manually editing thousands of pages just to make it work with Calibre.

The class footnote is used in a different stylesheet but that is not relevant. Calibre should leave the class footnote alone if we tell it to.
If a class is needed, it should have that option.

So far the best solution is the CSS offered by user Brett Merkey.
But that is not a solution for the long term.

Please give Calibre an option to keep a class if we mention that class.
MistaPrime is offline