View Single Post
Old 07-05-2014, 02:26 PM   #7
shotsky
Enthusiast
shotsky began at the beginning.
 
Posts: 39
Karma: 10
Join Date: Jul 2012
Device: none
Quote:
Originally Posted by jackie_w View Post
@shotsky,

I believe a calibre conversion rationalises the css classes so that there are no classes, in the output css, with exactly the same css attributes as a differently named class. This would result in the classes in the html tags also being rationalised to match. Any unused classes would also be removed.

Is it possible that your input css for "RM-recipe-method" and "intit" are so similar that one of them is superfluous?
Actually, what is happening is that the original attribute name is replaced with the intit attribute in the html itself. The request is simply to not change the attribute in such a way that the object it describes can no longer be discerned by a post processer.
It is possible to do both, simply by separating the two classes with a space. That would look like:
class="RM-recipe-method intit"
Or the reverse, if preferable to Calibre:
class="intit RM-recipe-method"
In this way, the css is certain to remain as wanted by the Calibre converter, yet the 'meaning' of the class is retained.
Regards,
John
shotsky is offline   Reply With Quote