![]() |
#16 |
Nameless Being
|
I totally agree with @jgaiser. What I've learned about KF8 while creating my own books is that the Kindle Previewer will create them in some cases even with errors. That is, the Kindle Previewer tells you that certain errors occurred during the compiling process, yet if the errors were not catastrophic it will still create the book. I also learned through trial and error that KF8 books compiled with Kindle Previewer that have errors will often not display correctly. If you get an error-free compiled book then the display issues go away. Amazon is forcing us to use good clean code (HTML5, CSS3, content.opf, and toc.ncx). A lot of folks have gotten used to using sloppy code and getting a book that displays correctly, but with KF8 you better get it right or it won't display right. Whose fault is that? Certainly not the device firmware. It is the creator/author's fault for being sloppy. Programmers know that code should be as clean as possible so ugly things don't happen during compile. KF8 book creators need to learn this too.
Last edited by jswinden; 05-01-2012 at 04:21 PM. |
![]() |
![]() |
#17 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,786
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The ePub in question is quite clean.
|
![]() |
![]() |
![]() |
#18 |
Nameless Being
|
It doesn't matter how clean the ePub is. An ePub's content.opf will most likely create errors when used to create a KF8 book. There are some minor tweaks that must be made else errors will occur. There can also be other issues in the HTML where ePubs and KF8 differ just enough to create errors.
|
![]() |
![]() |
#19 |
Nameless Being
|
Jon, here are a few differences in the ePub and KF8 content.opf files. The ePub content.opf was created by Sigil. I modified it to work with KF8.
One MAJOR difference between ePub and KF8 is that Amazon requires a linked TOC. The TOC must be referenced from a TOC guide item in the OPF file to enable the customer to jump to the TOC from the Kindle menu. Another difference is that Amazon only supports three guide items, including cover, TOC, and the start reading location (”Go To Beginning”). EPub supports many more. Here is the abbreviated manifest that Sigil created for the ePub: Code:
<manifest>
<item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
<item id="extra-exam.css" href="Styles/extra-exam.css" media-type="text/css"/>
...
<item id="cover.jpg" href="Images/cover.jpg" media-type="image/jpeg"/>
</manifest>
Code:
<manifest> <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/> <item id="extra-exam.css" href="Styles/extra-exam.css" media-type="text/css"/> ... <item id="linked-toc.html" href="Text/linked-toc.html" media-type="application/xhtml+xml"/> <item id="my-cover-image" href="Images/cover.jpg" media-type="image/jpeg" /> </manifest> Notice the difference for the ePub and KF8 cover ID shown in RED? The ePub version won't work with KF8 so it needs to be modified. In order to get the TOC to work for the KF8 you must add the following line to the spine: Code:
<spine toc="ncx"> ... <itemref idref="linked-toc.html"/> ... </spine> Code:
<guide> <reference type="text" title="Beginning" href="Text/front-matter.html"></reference> <reference type="toc" title="Table Of Contents" href="Text/linked-toc.html"/> </guide> Last edited by jswinden; 05-01-2012 at 05:44 PM. |
![]() |
![]() |
#20 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31
Karma: 1010
Join Date: Oct 2011
Location: WI, USA
Device: Kindle Touch, Nook HD+
|
Quote:
LINE-HEIGHT not seeming to work yet on the Touch (works fine viewing with Kindle Previewer but not on the Touch; this is even true with the KF8 sample files from Amazon's KF8 page) is my personal annoyance, with that default KF8 line spacing of ~200% on the Touch. It's a bit jarring reading from a KF8 book, than shifting to a plain old-school MOBI book. I'm hoping they either fix LINE-HEIGHT soon, or enable separate Font/Spacing settings for KF8 format and for old-school MOBI format. Last edited by InsulinJunkie72; 05-01-2012 at 06:23 PM. |
|
![]() |
![]() |
![]() |
#21 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 765
Karma: 2825929
Join Date: Feb 2007
Location: Fresno
Device: Kindle 1; iPad Air; iPhone 7; Kobo Libra; Kindle Oasis 3
|
Quote:
The cover is there, and so is the toc, which works fine. And all of the illustrations are beautiful. No idea, though, why the file doesn't work on my Touch. Jim |
|
![]() |
![]() |
![]() |
#22 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,786
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
delete post
|
![]() |
![]() |
![]() |
#23 | |
Nameless Being
|
Quote:
https://www.mobileread.com/forums/sho...5&postcount=55 Is this the right page? If so this mobi is not even recognized by my Fire. I can open it in K4PC, but the cover is missing. Obviously it is not a clean file. |
|
![]() |
![]() |
#24 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,786
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You might have to rename it to .azw3 from .mobi.
|
![]() |
![]() |
![]() |
#25 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 765
Karma: 2825929
Join Date: Feb 2007
Location: Fresno
Device: Kindle 1; iPad Air; iPhone 7; Kobo Libra; Kindle Oasis 3
|
I uploaded it to my Fire from Calibre, so maybe it's treated differently by the Fire if you do that?
Jim |
![]() |
![]() |
![]() |
#26 | |
Nameless Being
|
Quote:
I updated the kim.opf file from the ePub I downloaded and rebuilt it using Kindle Previewer. Now the cover shows in K4PC and on the Fire. I'll upload to my Fire in a bit and test the new build. (EDIT: It works on the Fire.) I attached the updated opf and mobi. Here are the changes I made: I changed Code:
<item id="cover" media-type="application/xhtml+xml" href="cover.html"></item> Code:
<item id="my-cover-image" media-type="image/jpeg" href="cover.jpg"></item> I removed from spine Code:
<itemref idref="cover" linear="no"/> Code:
<reference type="cover" title="Cover Image" href="cover.html" /> Last edited by jswinden; 05-01-2012 at 08:07 PM. |
|
![]() |
![]() |
#27 |
Nameless Being
|
@Strether, I just tested my build on my Fire and it looks good so far.
Please test it on your KT. Last edited by jswinden; 05-01-2012 at 08:09 PM. |
![]() |
![]() |
#28 |
Nameless Being
|
@Strether, Also please take a look at the attached KF8 book on your Fire and KT to see if it works on both. I don't have a KT to test it on.
Thanks... |
![]() |
![]() |
#29 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 765
Karma: 2825929
Join Date: Feb 2007
Location: Fresno
Device: Kindle 1; iPad Air; iPhone 7; Kobo Libra; Kindle Oasis 3
|
Quote:
Jim |
|
![]() |
![]() |
![]() |
#30 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 765
Karma: 2825929
Join Date: Feb 2007
Location: Fresno
Device: Kindle 1; iPad Air; iPhone 7; Kobo Libra; Kindle Oasis 3
|
Quote:
Jim |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
KF8 & Mobi, what a mess | JSWolf | Kindle Formats | 3 | 04-28-2012 07:45 PM |
Embedded fonts on KF8 & Kindle Touch | dbh2ppa | Amazon Kindle | 5 | 04-27-2012 09:41 PM |
Kindle Touch KF8 support: trouble in paradise? | tomsem | Amazon Kindle | 0 | 04-20-2012 03:16 PM |
Kindle Touch now supports KF8 | pdurrant | News | 12 | 04-17-2012 03:18 PM |
eek! 4 kindles now show up on my manage kindle page | bxrLvr | Amazon Kindle | 6 | 08-21-2009 03:12 PM |