View Single Post
Old 07-30-2019, 10:04 AM   #26
MistaPrime
Member
MistaPrime began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2019
Device: EPUB
Quote:
Originally Posted by theducks View Post
Been there (my first HTML was in 2000), when CSS had not been invented.

Take time and get your head wrapped in the CSS concept. For most ebooks, it is really simple. I learned by reversing early Baen Webscriptions.
Oh boy, thanks for the input.
At this point I think I need to start a new thread.

I gotta re-phrase the request in the next topic. This will be the title:
CSS not relevant, forget about CSS or JS. How to tell Calibre to keep a class, without editing HTML.

Pretty simple request really.

I can think of a million reasons why someone would want to keep a class in the HTML once converted into EPUB.

What if you are an app developer for Android who wants to animate specific words when the app is viewing the ePUB? You would need classes to be kept after conversion.

Calibre removes all classes that are not used by the file's stylesheets. I can think of a million reasons why someone would want to keep a class and not mention it in the stylesheets.

As a matter of fact I have made in the past a webapp which had classes only for when the pages were viewed by it's Android app. The classes are used only in the app, not in stylesheets or in the JS of the page.
There are millions of HTML pages, and examples where a class is not used by CSS stylesheet.

I am sure someone could add that to Calibre, just one field that says this:
Input class name here which you do not want to be removed during conversion.

I can't believe I am the first user offering that suggestion, I am sure others have struggled with this.
MistaPrime is offline