View Single Post
Old 12-23-2014, 02:16 AM   #3
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none


Great usage example. Maybe you could port and post it in the saved searches sticky thread. It could be, no, it will be, a great addition.

Nevertheless:
Quote:
Originally Posted by dmonasse View Post
Nota: I can't use the class attribute to denote the type of the div because the conversion process from HTML to ePub by Calibre modifies these attributes and class="theorem" may be changed into class="pcalibre25". That's the reason for the data-type attribute.
Are you sure? I haven't tested with an HTML to epub conversion, but in an epub to epub conversion, "calibreXX" classes only appear when the original element has no given class in the source file. I've just made a quick test and I'm seeing preserved <p class="salto1">, <blockquote class="asangre"> or my own <span class="nw">.
arspr is offline   Reply With Quote