View Single Post
Old 06-19-2015, 11:50 PM   #17
dgatwood
Curmudgeon
dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.dgatwood ought to be getting tired of karma fortunes by now.
 
dgatwood's Avatar
 
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
Quote:
Originally Posted by AThirstyMind View Post
I've never gotten a double cover uploading an epub into KindlePreviewer for mobi conversion, but I have stumbled on another issue recently.

CSS errors, particularly those for Center and Flush. The following is a sample of the CSS entry of my normal paragraph style:

.msonormal {
display: block;
font-size: 1em;
text-indent: 0.25in;
margin: 0 0 0.0001pt

Then the styles that have gone off during conversion:

.center {
display: block;
font-size: 1em;
text-align: center;
margin: 0 0 0.0001pt

.flush {
display: block;
font-size: 1em;
text-indent: 0;
margin: 0 0 0.0001pt
I assume there are closing braces on those styles? Because if not, the parsing could be pretty nondeterministic.

Additionally, the line font-size: 1em is a no-op. It is saying that the font size should be 1 times the current font size, which is... the current font size. Just take that out globally wherever it appears.

Finally, Amazon's KDP tends to butcher content with sizes measured in points or pixels, e.g. that margin. It converts them to root ems, but that conversion process may result in wildly incorrect results, depending on context. I would drop it, but if you consider that tiny fraction of a pixel to be critical for some reason, add another 0 and change it to an em unit and call it "close enough".
dgatwood is offline   Reply With Quote