View Single Post
Old 07-30-2019, 09:44 AM   #25
MistaPrime
Member
MistaPrime began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2019
Device: EPUB
The request is pretty simple, no need to assume that someone doesn't know what CSS does. Maybe I should have formulated the request differently.

Assume you are an Android developer which will make an app for ePUBS. That app will do things with the ePUB such as animations. And that app will depend on classes in the HTML, there is no CSS. CSS is not relevant.

Your HTML has classes already and you want to keep those classes, at least one class.
But you have thousands of HTML files that you cannot edit.

How do you tell Calibre to not remove that one class?

From what I understand that option is not available in Calibre.
Calibre seems to remove all classes it thinks are not necessary. You are out of luck if you think that one class is necessary and Calibre doesn't think so.

Would it be difficult to introduce that option into Calibre?
Just a field where you enter a class name, and based on that field Calibre doesn't remove that class.

Am I the first one to request this feature? It seems reasonable to keep a class in an ePUB and I can think of millions of reasons why someone would want to keep a class.
MistaPrime is offline