Quote JSWolf
Here is the same CSS class from the ePub version.
Code
p.x06-Text-Message { font-family: monospace;
As you can see, font-family is there. The font name is the font used in the pBook.
OK. That confuses me even more. It looks like my previous guess about what is going on was wrong.
The KFX version of the book has that font family but the KF8 version does not. I now suppose the most likely explanation is that the EPUB source was provided by the publisher and Amazon stripped out the font-family properties from the KF8 version but left them in the KFX version. That behavior is new to me.
Since the ePub and AZW3 have the same commented fonts, I'm thinking maybe they couldn't include them in the ebooks, maybe due to rights issues...?
Maybe the monospace font is a later addition, when they noticed a problem with differentiating the computer text with regular text (which sometimes appear together in the same line). So they added the monospace style to the KFX and the ePub, but not to the AZW3...? Does Amazon's publishing system lets you edit these two formats separately?
Here is the CSS from the ePub version with a few changes. I removed the font size that makes the body text small. So now it's the default size. I added in my body style, and I removed the Widows and Orphans of 2 since my body style has them as 1. Other then that it's the same CSS.
font-size: 0.83em; as shown int he CSS snippet above is really annoying as it makes the base font size smaller. That means then having to adjust your font size and then when you open a new book that has the 1em font size, having to change it back.
So here is the CSS code you could try in the KF8.
Code
body, div, dl, dt, dd, h1, h2, h3, h4, h5, h6, p, pre, code, blockquote { font-weight: normal; font-style: normal;
}
body { widows: 1; orphans: 1; margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; text-align: justify;
}
p.x01-FM-Ack { font-family: serif; /*"Sabon LT Std"*/ margin: 0; text-indent: 1.67em;
}
p.x01-FM-Ack-FL { font-family: serif; /*"Sabon LT Std"*/ margin: 0; text-indent: 0;
}
p.x01-FM-Ack-Head { color: #9d9fa2; font-family: sans-serif; /*"Briem Akademi Std Semibold Cond"*/ font-size: 1.583em; font-weight: bold; margin: 15% 1.47em 2em 0; text-align: right; text-indent: 0;
}
p.x01-FM-Copyright-Text { font-family: serif; /*"Times LT Std"*/ font-size: 0.583em; margin: 0; text-align: center; text-indent: 0;
}
p.x01-FM-Copyright-Text-Space { font-family: serif; /*"Times LT Std"*/ font-size: 0.583em; margin: 1.14em 0 0 0; text-align: center; text-indent: 0;
}
p.x01-FM-Dedi-Body { font-family: sans-serif; /*"Trade Gothic LT Std Cn"*/ font-size: 0.833em; font-style: italic; margin: 15% 0 0 0; text-align: center; text-indent: 0;
}
p.x01-FM-Front-Sales-Headnote-FL { font-family: sans-serif; /*"Trade Gothic LT Std Cn"*/ font-size: 0.917em; margin: 15% 0 0.36em 0; text-align: center; text-indent: 0;
}
p.x01-FM-Front-Sales-Headnote { font-family: sans-serif; /*"Trade Gothic LT Std Cn"*/ font-size: 0.917em; margin: 1.2em 0 0.36em 0; text-align: center; text-indent: 0;
}
p.x01-FM-Front-Sales-Quote { font-family: serif; /*"Sabon LT Std"*/ font-size: 0.854em; margin: 1.37em 0 0 0; text-indent: 0;
}
p.x01-FM-Front-Sales-Source { font-family: serif; /*"Sabon LT Std"*/ font-size: 0.771em; margin: 0; text-align: right; text-indent: 0;
}
p.x01-FM-Front-Sales-Subhead { font-family: sans-serif; /*"Trade Gothic LT Std Cn"*/ font-size: 0.771em; margin: 0; text-align: center; text-indent: 0;
}
p.x01-FM-Front-Sales-Title-No-Space { color: #9d9fa2; font-family: sans-serif; /*"Briem Akademi Std Semibold Cond"*/ font-size: 2.25em; margin: 0.67em 0 0 0; text-align: center; text-indent: 0;
}
p.x03-CO-Body-Text { font-family: serif; /*"Sabon LT Std"*/ margin: 0; text-indent: 0;
}
h1.x03-Chapter-Number { color: #c7c8ca; font-family: sans-serif; /*"Briem Akademi Std Cond"*/ font-size: 3.333em; font-weight: bold; margin: 15% 0.7em 1.5em 0; page-break-after: avoid; text-align: right; text-indent: 0;
}
p.x04-Body-Text { font-family: serif; /*"Sabon LT Std"*/ margin: 0; text-indent: 1.67em;
}
p.x04-Space-Break-FL { font-family: serif; /*"Sabon LT Std"*/ margin: 0; text-indent: 0;
}
div.x04-Space-Break-Orn { font-family: serif; /*"Sabon LT Std"*/ margin: 1em 0; page-break-after: avoid; text-align: center; text-indent: 0;
}
p.x06-Text-Message { font-family: monospace; /*"Briem Akademi Std"*/ font-size: 0.83em; margin: 1.82em 10%; text-indent: 0;
}
p.xCaption { font-family: serif; /*"Sabon LT Std"*/ font-size: 0.438em; margin: 0 0 1.5em 0; text-indent: 0; text-align: center;
}
span._6-Text-Message-Inline { font-family: monospace; /*"Briem Akademi Std"*/ font-size: 0.83em;
}
span.CO-and-SB { font-family: sans-serif; /*"Trade Gothic LT Std Cn"*/
}
span.SCAP { font-size: 70%;
}
div.h100 { text-align: center; height: 100%; max-width: 100%;
}
img.h100 { height: 100%; max-width: 100%;
}
div.w30c { text-align: center; max-height: 100%; margin-left: 35%; margin-right: 35%;
}
img.w30c { max-height: 100%; width: 100%;
}
img.h2em { height: 2em;
}
img.h4em { height: 4em;
}
.x01-FM-Contents-FL { font-size: 1em; margin: 0 0 0 1.5em; text-indent: -1.5em;
}
.x01-FM-Contents-Space { font-size: 1em; margin: 1em 0 0 1.5em; text-indent: -1.5em;
}
h1.x01-FM-Head { color: #c7c8ca; font-family: sans-serif; /*"Briem Akademi Std Cond"*/ font-size: 3.333em; font-weight: bold; margin: 15% 0.7em 1.5em 0; page-break-after: avoid; text-align: right; text-indent: 0;
}
hr.transition { display: block; border: none; margin: 0;
}
I'm sticking with the AZW3 (converted to epub) - I added the print book's text message font, and might change the body text size to normal.
Quote salty-horse
I'm sticking with the AZW3 (converted to epub) - I added the print book's text message font, and might change the body text size to normal.
Take the KF8, swap the CSS, and then convert to ePub. You'll have a better ePub.
Quote salty-horse
Since the ePub and AZW3 have the same commented fonts, I'm thinking maybe they couldn't include them in the ebooks, maybe due to rights issues...?
That is likely. Also adding them would bloat the size of the book and is unnecessary since most people prefer to choose their own reading font anyway.
Quote salty-horse
Maybe the monospace font is a later addition, when they noticed a problem with differentiating the computer text with regular text (which sometimes appear together in the same line). So they added the monospace style to the KFX and the ePub, but not to the AZW3...? Does Amazon's publishing system lets you edit these two formats separately?
There is no way that the publisher could do that. All of the formats are created at the same time from the same source file. Amazon needs the content of each Kindle format to be synchronized with the others so that things like user annotations will work across devices that use different formats.
Quote JSWolf
Here is the CSS from the ePub version with a few changes.
After seeing Jon's version of the original CSS, I believe that this book fell afoul of a feature of Amazon's publishing process intended to prevent publishers from overriding the customer's font choice. It looks like they put font-family properties in the style definitions of all of the various paragraph types used in the book. That is against Amazon's rules.
Quote jhowell
After seeing Jon's version of the original CSS, I believe that this book fell afoul of a feature of Amazon's publishing process intended to prevent publishers from overriding the customer's font choice. It looks like they put font-family properties in the style definitions of all of the various paragraph types used in the book. That is against Amazon's rules.
font-family: using sans-serif and.or monospace should not stripped out. It's using the default fonts on the Kindle. There are no embedded fonts. The comments just say what fonts were used in the pBook edition and where.
That's my thinking and I could be wrong here.
Quote salty-horse
The book is Planetfall by Emma Newman, ASIN
B00SI0B65WA physical copy can be
borrowed on the Internet Archive.
Just came here to say; excellent book, excellent series. That is all.
Quote jhowell
That is likely. Also adding them would bloat the size of the book and is unnecessary since most people prefer to choose their own reading font anyway.
Does anyone know if the Sabon declaration works? ARE there any fonts in the ePUB, at all? Or are there none?
Quote
There is no way that the publisher could do that. All of the formats are created at the same time from the same source file. Amazon needs the content of each Kindle format to be synchronized with the others so that things like user annotations will work across devices that use different formats.
Yes, what he says. You create one "master" file, with media queries to try to stave off problems and hope for the best.
Quote
After seeing Jon's version of the original CSS, I believe that this book fell afoul of a feature of Amazon's publishing process intended to prevent publishers from overriding the customer's font choice. It looks like they put font-family properties in the style definitions of all of the various paragraph types used in the book. That is against Amazon's rules.
Yes, I agree. They saw all the fonts being called on major text portions and simply...either ripped out the FONT itself, thereby rendering it moot--hell, for all we know,
they put in the monospace code (and no, I'm not shocked that it doesn't work).
There's also the fact that many, MANY print designers who do INDD-ePUB-export files don't realize that Adobe fonts won't transport. I mean, you can put them "into" a file, more or less, but the moment that file is ePUBchecked, you're dead in the water. I wonder if it's as simple as, they ripped out the fonts? The book designer, that is?
I've seen worse. It's not great, mind you, but heavens knows, I've seen worse. I recently saw a Berkeley that had FORCED ragged-right justification and lemme tell ya, my inability to override it, for the entire novel, torqued my biscuits pretty good. And NO, I won't reformat the damn books I'm going to read. I do this for a living; I don't want to have to deal with it for my recreation. I simply don't.
Hitch
Quote Hitch
I've seen worse. It's not great, mind you, but heavens knows, I've seen worse. I recently saw a Berkeley that had FORCED ragged-right justification and lemme tell ya, my inability to override it, for the entire novel, torqued my biscuits pretty good. And NO, I won't reformat the damn books I'm going to read. I do this for a living; I don't want to have to deal with it for my recreation. I simply don't.
Hitch
I get the impression that you feel towards forced left justification (AKA ragged right) much the same as I feel towards forced full justification which lacks micro-justifaction. A plague upon both their houses!