04-22-2013, 04:49 AM | #1 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34978132
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Noob preparing Mobi kindle books
I have been working with epub for a while, and understand the CSS and HTML sorta kinda pretty ok. I've been revamping and uploading public domain books to the MR library.
I have been considering learning to prepare books for the Kindle, but I do not own a Kindle. MUST I have a Kindle to properly test, or will Kindle Previewer for PC do the job well enough? And if I do go down this long lonesome road, which format(s) do you recommend to use? I look forward to any input you might share with me. |
04-22-2013, 09:01 AM | #2 | ||
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
However, with the introduction of the new KF8 format, Kindles now support pretty much all ePub2 tags/styles and even some HTML5 and CSS3 elements. (Usually, only dropcaps styles are rendered differently. I.e., you'll probably have to use a variation of the dropcaps style recommended in the Amazon Publishing Guidelines.) Quote:
Of course, you can also decide to only upload .azw3 files. (azw3 is the extension that Amazon uses for KF8 files.) If you plan to convert books for the MR library with KindleGen/Kindle Previewer, you'll also need to use Kindlestrip.py to strip the source files from the compiled .mobi file. (By default, KindleGen generates a hybrid mobi file that can be read on older Kindles and new Kindles and also attaches the source files.) |
||
Advert | |
|
04-22-2013, 10:47 PM | #3 | |
Obsessively Dedicated...
Posts: 3,200
Karma: 34978132
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Quote:
I can see I'm going to have to learn about some new tools (I only ever used Python scripts a tiny bit some years ago when I was using Avisynth to edit video). Thanks for the heads-up about Kindlestrip. So what do most uploaders do? Upload the hybrid? Split the file and upload one? Or split and upload both formats? |
|
04-23-2013, 02:36 AM | #4 | |||
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Hopefully, some more experienced MR users will also chime in. Quote:
BTW, you can also use Calibre to generate .mobi, .azw3 or hybrid files. Many MR uploaders apparently go that route, which also has the advantage that Calibre will add an HTML TOC and guide locations, if they're not present in the epub. Quote:
I usually only upload hybrid files, when I embed fonts and otherwise non-KF8 .mobi files. (If you use KindleGen with the -c2 option, hybrid .mobi files are on average only 10-20% larger than the corresponding ePub files after stripping the source files.) As I mentioned before, creating KF8 files from ePub files isn't that complicated. Since your books usually already contain an inline TOC and guide items for TOC and cover, you'll only need to add another Text guide item for the Kindle Start Reading location and slightly change the dropcaps style. To give you an idea what your book looks like on Kindle, I took 4 screen captures of your latest Mark Twain book: Kindle Previewer, Kindle for PC, K3 with embedded fonts and K3 without embedded fonts. |
|||
04-23-2013, 04:24 AM | #5 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34978132
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Thanks so much for coming back with more info. And PICTURES! (I see now why folks talk about the drop-cap difference on Kindle. Are they tweakable?)
Ok, you're making this sound awfully easy, and Calibre conversion is possibly the easiest part of it all. I feel like there are no excuses left to drag my feet. I guess there's nothing left but to dive in and try, and see where I come out on the other side. |
Advert | |
|
04-23-2013, 05:04 PM | #6 | |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Since the default Kindle fonts natively support small caps, I'd recommend replacing the dropcap and the following letters with bold smallcaps. Alternatively, you could only make the initial letter larger and bold. Since KF8 supports text-transform in stylesheets, you could also style the first word to display as all caps in ADE (and non-KF8 mobis) and small caps in KF8. For example: Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <style type="text/css"> span.sc {font-variant: small-caps; font-weight: bold; } span.sc2 {text-transform: lowercase; font-variant: small-caps; font-weight: bold; } </style> </head> <body> <p><span class="sc">M</span><span class="sc2">ORALISTS</span> and philosophers have adjudged those who throw temptation in the way of the erring, equally guilty with those who are thereby led into evil.</p> </body> </html> |
|
04-24-2013, 01:57 AM | #7 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34978132
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Doitsu, thank you much for the tips and the link.
(I haven't even started yet, and I'm learning tricks already!) I think this is going to be very interesting. |
04-25-2013, 10:50 AM | #8 |
Writer
Posts: 101
Karma: 590630
Join Date: Mar 2011
Location: Munich, Germany
Device: none
|
A dropcap looks fine as long as you can tweak it. But if a reader prefers another font-size (bad eyes), he will get the effect as shown in the 4th example ot Doitsu (empty space below the first letter in different size depending on the chosen font-size).
George |
04-26-2013, 01:33 AM | #9 | |
Obsessively Dedicated...
Posts: 3,200
Karma: 34978132
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Quote:
If that's the case, I think it will be simpler to forget drop-caps. |
|
04-26-2013, 02:23 AM | #10 |
Writer
Posts: 101
Karma: 590630
Join Date: Mar 2011
Location: Munich, Germany
Device: none
|
Yes. Think of it: You have the dropcap as high as two lines of text and the empty space between them. If you use a bigger font, the margin will be bigger too and so the third line will be moved a little downwards.
A similar effect will occur with a capital letter at the beginning. If you use a bigger font, the margin below this letter will increase too and so you get a higher margin to the following line whereas the other lines with margin will be shown with correct proportions. You can see this effect also when creating your e-book. Play with 1.2em, 1.4em, 1.6em for the capital letter. You have to tweak it with margin-bottom like 0.8em. George |
05-01-2013, 12:36 AM | #11 | |
Curmudgeon
Posts: 629
Karma: 1623086
Join Date: Jan 2012
Device: iPad, iPhone, Nook Simple Touch
|
Quote:
Now if you allow for overlap (e.g. the top bar of a "T" above the first line of text), then this does not necessarily work if the font for the drop cap itself changes, simply because that top bar may be at a different relative offset from the baseline, but the layout itself still shouldn't change. Last edited by dgatwood; 05-01-2013 at 12:41 AM. |
|
05-01-2013, 12:49 AM | #12 |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Can you please post the dropcaps style and the line-height value that you're using for Kindle books?
|
05-01-2013, 09:54 AM | #13 |
Enthusiast
Posts: 36
Karma: 8164
Join Date: Jul 2012
Device: Kindle Keyboard
|
Assuming you use a "normal" font (i.e. a font where all the caps are the same height and none of them have descenders other than the Q) and start with an em size of 1, the correct way to calculate the em size of a drop cap is ((n-1)*L)+C where n is the number of lines you want the drop cap to take up; L is the line-height of the paragraph and C is the caps height of the paragraph font. If you don't know the caps height of your font, 0.7 is a good starting estimate. The drop cap should have a negative bottom margin = (M-1)*((L-1)/2) where M is the drop cap em size and L is line-height.
You should also make a negative adjustment to the right margin of the drop cap of (M-1)*w where M is the drop cap em size and w is the advance width of the drop cap letter. |
05-01-2013, 10:19 AM | #14 |
Writer
Posts: 101
Karma: 590630
Join Date: Mar 2011
Location: Munich, Germany
Device: none
|
@ dgatwood: "My drop caps do not shift by even a pixel."
It's not the drop cap that shifts, but the following line of text if the reader resizes the font. George Edit: Or you do some mathematics as William suggests. |
05-02-2013, 01:04 AM | #15 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34978132
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Total noob needs help moving books Kobo to Kindle | diosaclo | Amazon Kindle | 2 | 11-28-2011 03:54 AM |
Noob help Rtf to Mobi has hyphens at every syllable | muddog23 | Calibre | 3 | 05-17-2010 09:13 PM |
Hacks Kindle noob... purchased books can't open with Kindle | Riptide | Amazon Kindle | 16 | 10-13-2009 07:30 PM |
Mobi vs. ePub... kind of a noob question sorry.. | jessTay | ePub | 8 | 05-21-2009 11:16 AM |
preparing scanned books before PDF-ing | sputnik | Reading and Management | 2 | 06-09-2008 02:00 AM |