View Single Post
Old 01-23-2015, 05:59 AM   #1
1v4n0
Groupie
1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.
 
Posts: 173
Karma: 40000
Join Date: Oct 2013
Device: kindle
Calibre conversion adding classes and screwing the layout?

One small bug I've noticed.

Lately, in the epubs, I've started to wrap differently formatted paragraphs inside divs, instead of giving a class to each <p>.

So if until some time ago I'd simply go with something like

Code:
<p> bla bla bla goes like this:</p>
<p class="quotations">This is how the world ends </p>
<p class="quotations">Not with a bang, but with a  whimper</p>
<p> cool, innit?</p>
, recently I thought that it might be cleaner (and easier with top and bottom margin) to switch to

Code:
<p> bla bla bla goes like this:</p>
<div class="quotations">
<p>This is how the world ends </p>
<p>Not with a bang, but with a  whimper</p>
</div>
<p> cool, innit?</p>
Possibly with some minor changes to the css as well.

I noticed, however, that sometimes the conversion to azw3 with calibre screws this layout. As you might know, Calibre add its own classes, named "calibre" followed by a number. I don't like this (oh and btw, any idea on how to quickly get rid of them? Besides removing them with a regex and c/p the original css from the epub), but I don't know if this is the reason.

Anyway this does not happen all the time. I tried with a small file and it works fine, but if I convert the whole book it doesn't.

I attach the 2 epub files.

Any ideas? Ty
Attached Files
File Type: epub untitled - Sconosciuto.epub (3.6 KB, 315 views)
File Type: epub Carlo Mazzantini - A cercar la bella morte.epub (305.4 KB, 366 views)
1v4n0 is offline   Reply With Quote