![]() |
#1 |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,798
Karma: 6759036
Join Date: Mar 2015
Device: Kindle, iOS
|
EPUB>MOBI: missing text when % used for margin-top
Calibre conversions going wonky from EPUB to MOBI.
When the epub uses % for margin-top for chapter heads -- e.g., h1 {margin-top: 20%} -- blank pages are inserted at the start of the chapter, and some or all of the text inside the <h1> element goes missing. Even weirder, the first few words of the subsequent <p> go missing so that the chapter starts mid-sentence. If I run the same epub through KindleGen, everything is fine. If I replace % with em -- e.g., h1 {margin-top: 2em} -- everything is fine. If it's dual-mobi, the KF8 portion is fine; only the mobi portion is affected. I tried checking "ignore margins" in the Calibre MOBI Output prefs, but that didn't help. Is there another setting I should look at? Any help appreciated. Last edited by odamizu; 01-02-2016 at 03:02 AM. Reason: clarity |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,798
Karma: 6759036
Join Date: Mar 2015
Device: Kindle, iOS
|
Sorry for the incomplete info. Per your link above:
Thank you! Last edited by odamizu; 01-03-2016 at 12:44 AM. Reason: removed attachments now that problem is solved |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I extracted the old mobi from your joint file and opened it in Kindle Previewer, I see no missing text or page breaks. The margins around the first chapter title are very large, which gives the illusion of a page break, but it is not an actual page break. That comes from the way calibre chooses to interpret percentage margins when converting to old style mobi (IIRC as fractions of the screen height of whatever device you have chosen in the output profile). And I see no missing text.
See attached screenshot |
![]() |
![]() |
![]() |
#5 |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,798
Karma: 6759036
Join Date: Mar 2015
Device: Kindle, iOS
|
Thank you so much! Your comments pointed me in the right direction, which solved the problem. Under Page Setup, I had selected "Tablet" for my Output Profile, which caused all the weirdness and missing (hidden?) text when viewing on my iDevices. Changing the Output Profile to "iPad" or "Kindle" fixed everything. You are the best, Sir Calibre Master! Thanks again and Happy New Year!
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Member
![]() Posts: 11
Karma: 10
Join Date: May 2011
Device: Kindle3
|
Quote:
Certain epubs that I convert to mobi ended up with "empty" pages after chapter headings, and the first page would be missing the first sentence of the chapter. (Making the font size huge and page back/forward would sometimes show some of the "missing" words). I changed my output device from Tablet to a Kindle profile and those issues are gone. |
|
![]() |
![]() |
![]() |
#7 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,249
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
There is a very simple way to solve the % margin problem. DO NOT CONVERT TO OBSOLETE MOBI! Convert to KF8 (AW3) instead since you have a Kindle 3 that does support KF8. |
|
![]() |
![]() |
![]() |
#8 | |
Member
![]() Posts: 11
Karma: 10
Join Date: May 2011
Device: Kindle3
|
Quote:
With the "old" style MOBI formatted for Voyage, I don't get the weird layout when %margin is used, nor embedded fonts, but I get covers. There used to be a tool that would extract these "missing" covers, but it doesn't work post 5.8.5. Trade-offs, I suppose! |
|
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,249
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,056
Karma: 54671821
Join Date: Feb 2012
Location: New England
Device: PW 1, 2, 3, Voyage, Oasis 2 & 3, Fires, Aura HD, iPad
|
Quote:
Shari |
|
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,249
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#12 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Mobi is an older, very limited, format.
Bottom line: Put up with the limits and be able to use Wispersync or Use USB so you can use the newer, feature rich format. OR Buy the book from Amazon. They allow the Kindle store to send AZW3 ![]() |
![]() |
![]() |
![]() |
#13 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,056
Karma: 54671821
Join Date: Feb 2012
Location: New England
Device: PW 1, 2, 3, Voyage, Oasis 2 & 3, Fires, Aura HD, iPad
|
Quote:
Shari |
|
![]() |
![]() |
![]() |
#14 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,249
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The thing to do is don't use a % for the top margin. If you get an eBook that does use %, convert that to em. I do when there is a % for the top margin, it's just way too big. Like 14%. That's just way too much. I change that to 0.8em. That's keeps the chapter title at the top of the screen without all that wasted screen space.
|
![]() |
![]() |
![]() |
#15 |
Member
![]() Posts: 11
Karma: 10
Join Date: May 2011
Device: Kindle3
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
EPUB > MOBI: missing chapter heads and text | odamizu | Conversion | 0 | 07-23-2015 12:58 AM |
Kindle 3 adding top margin to mobi | Kaan88 | Kindle Formats | 3 | 10-17-2013 04:06 AM |
ODT to EPUB: margin-top and -bottom in tables | beedaddy | Conversion | 0 | 05-25-2012 05:05 AM |
Top Margin in epub | penguintri | ePub | 8 | 05-08-2010 08:37 PM |
ePub and top margin specification | tompe | Upload Help | 6 | 01-02-2010 11:24 AM |