07-04-2013, 05:11 PM | #1 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Does Kindle actually use epub format?
Just for fun, I used Kindleunpack to deconstruct a book of mine, converted on the KDP platform for sale on Amazon. I upload an epub to the KDP, since I need the epub for the other retailers, and since it happens to be the easiest way to upload an entire book in a single package, rather than as a zip file.
Kindleunpack produced two files, one in a folder called Mobi7, the other in a folder called Mobi8 which I take to be the equivalent of KF8 format (for the Fire and other newer devices and apps). To my astonishment, the file in the Mobi8 folder had the extension *.epub. Is Amazon actually delivering an epub to customers who are reading on the Fire and related devices/apps? (The Mobi7 folder contained a much smaller file with the extension *.htm, plus an OPF and an NCX file.) |
07-04-2013, 07:19 PM | #2 |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
The latest versions of Kindle gen will make a file with up to 3 ebooks inside:
Mobi7, KF8, and Epub (if that was the original source) I think you got a file that only has Epub and Mobi7. That is unusual but not completely surprising. |
Advert | |
|
07-05-2013, 05:05 PM | #3 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Amazon does not deliver what you make with KindleGen but may deliver either one of the other two or both of them in a file depending on what device or devices you own. Amazon KF8 is really a ePub content inside a mobi wrapper (container) which is explained in the wiki. Amazon never delivers the epub for use by the end user. Dale |
|
07-06-2013, 01:33 PM | #4 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
As noted, Kindleunpack shows me only two folders, Mobi 7 and Mobi 8, and the latter includes only a file with the extension *.pub.
Yes, I uploaded an epub in the first instance. So either Amazon is delivering the Mobi 7 file to all e-readers and apps (I don't use any KF8-specific bells & whistles) or it is delivering my epub to the KF8 crowd. I suspect it's the latter, since the epub is roughly the same size as the download shown on the book detail page on the Amazon store. I look forward to reading the Wiki; thank you. |
07-06-2013, 04:53 PM | #5 | |
Grand Sorcerer
Posts: 27,944
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
As far as KindleUnpack goes: it tries to reverse-engineer the kindlebook in order to recreate (as close as possible) the original source used to create the Kindlebook. As such, it's chosen to recreate that code into the form of an ePub when it's dealing with a KF8 book. It could have just as easily been created from html files, but there's no real way of telling that from the KF8 file. KindleUnpack tries its best, but it's altogether possible for it to create an invalid ePub -- simply because of all the different sources kindlegen will/can build a kindlebook from. Most of the time, it works well (especially if the kindlebook WAS created from an ePub), though. Now: starting with a kindlebook that's been delivered to an end-user (customer), you get a MOBI, or a KF8. Never both, and never the original source. So using that retail-delivered kindlebook: if KindleUnpack produces a mobi7 folder AND a mobi8 folder ... then you had a KF8 (and ONLY a KF8) to start with. The ePub that KindleUnpack attempts to reverse-engineer the KF8 book into, is built from the contents of the OEBPS folder (which was extracted/extrapolated from the binary database) inside the mobi8 folder. The mobi7 folder contains only images (if there were any) and can be considered vestigial in this instance. If KindleUnpack produces ONLY a mobi7 folder from that same retail-delivered kindlebook, well then clearly it was a regular old run-of-the-mill mobi. The extracted markup, images and opf/ncx will be in that mobi7 folder. Where it gets complicated is when KindleUnpack is dealing with the raw, hybrid MOBI/KF8 output that Kindlegen/KindlePreviewer produces ... the file that authors and publishers submit to Amazon (which is the same file that the KDP conversion process produces if you upload ePubs) ... a file that the end-user never sees. KindleUnpack will extract both the MOBI and the KF8 code into their respective folders. It will also cleave off the original source that was included as part of that hybrid MOBI/KF8 file. That original source will manifest as a zip archive. Last edited by DiapDealer; 07-07-2013 at 08:02 AM. Reason: typo |
|
Advert | |
|
07-07-2013, 03:25 AM | #6 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
What was it that you used unpack on? The file that "KindleGen" created, or the version of the book that you actually downloaded from Amazon? As has been said, the book that Amazon sends to a customer is NOT the same as the file that KindleGen creates.
|
07-07-2013, 12:23 PM | #7 | |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
Okay, I think I am beginning to understand what happened here. The Mobi 8 folder contains an epub file, but it is actually the KF8 file reconstituted, and not the epub that I uploaded in the first instance. Is that right? So when I am told that the converted *.mobi contains THREE books (the one I uploaded plus a Mobi 7 and a KF8 file), either that's incorrect or else I can't prove it from Kindleunpack? Sorry to be so thick about this. (And thanks for the reassurance that the *.mobi created on a computer by Kindlegen or Kindle Previewer is NOT identical to the *.mobi created by the conversion process online at KDP. I am glad to know that!) |
|
07-07-2013, 01:37 PM | #8 | ||
Grand Sorcerer
Posts: 27,944
Karma: 198500000
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
Not at all. The dual-format scenario definitely adds layers of complexity. I certainly didn't mean to reassure you of that. As I mentioned, I have no experience with what sort of *.mobi file(s) someone who submits ePubs to KDP gets returned to them for verification. But I suspect they're nearly identical to what kindlegen would produce locally. I'd have no trouble believing the original source isn't included, though. |
||
07-08-2013, 04:50 AM | #9 | |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
(And the book as shown on the Amazon store has a file size more or less the same as the Mobi 8 / epub returned to me by Kindleunpack.) |
|
07-08-2013, 04:58 AM | #10 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
When you create an ebook using "Kindlegen", the generated file DOES include the source. Is that what you're using to create your book, or are you uploading an ePub directly to KDP?
|
07-08-2013, 04:58 PM | #11 | |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
Okay, Kindlegen (or Kindle Previewer) does include the source? That would explain where the conventional wisdom originated. |
|
07-08-2013, 06:49 PM | #12 | |
Bookmaker & Cat Slave
Posts: 11,482
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
The file that is delivered to the customer is not the same as the file created by KindleGen/KP. The "Step 6" file and the KP/KG desktop or command-line generated file ARE the same. And, yes, the source file archival copy is included in the final file uploaded to Amazon "for sale," if you either a) upload an ePUB at KDP or b) create a mobi file on your desktop using KG/KP. The archival copy is the ePUB. The K8 copy is the K8 (or, to not confuse matters further, the ePUB emulation that works on mobi devices, in a mobi wrapper). The K7 copy is actually an old-style prc, for all intents and purposes. For that matter, if you uploaded a zipped HTML file, for all I know, that archival copy is retained as well (I don't see why it wouldn't, as for all intents and purposes, it's an ePUB sans OPF and NCX), but I can't speak to that as I've never done it, going straight to fully-made eBooks from the beginning, even when they were MBPC mobi's. Hitch |
|
07-09-2013, 06:10 AM | #13 | |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
So the answer to my original question is: Qualified Yes? Amazon is delivering epubs-in-a-wrapper to owners of the Fire and related devices and apps? |
|
07-09-2013, 06:35 AM | #14 | ||
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
Quote:
|
||
07-09-2013, 10:52 AM | #15 | |
Sigil Developer
Posts: 8,108
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Hi,
To make this clearer, for this discusssion let's ignore the source zip archive stored in one record inside the .mobi file when generated with kindlegen ... and just talk about the format of a K8 (mobi) azw3 file: - it is NOT simply an epub wrappered into a Mobi To see this, look at the huge amount of code in KindleUnpack that takes a processed kf8 database file (as generated by kindlegen or downloaded from Amazon) and tries its best to create an epub-like structure from it. You can enable the "raw" mode to see what the actual pre-processed text inside the .azw3 looks like and you will see all file names are removed, all links are encode by byte position, how svg is extracted, how css is extracted and collected, etc. You can enable "debug" mode to see all of the processed indices that are used to create entry and exit point offsets used to split that text into separate chapters and fragments. There are also indices that are used to store the NCX and other navigation pieces. Of course the metadata is stored in the Mobi header and created partially from the opf and partially form other sources. All of this needs to be "undone" to create an "epub-like" structure from the .mobi record database that an .mobi or .azw3 really represents. This should make it abundantly clear that a mobi file created by kindlegen is nothing similar to an actual epub just wrappered, it is instead a highly preprocessed database of records and offsets that mimics/extends the original .mobi format. That said, almost all of the information in an epub has its equivalent in a KF8 mobi and anything supported by the various versions of WebKit should work equivalently in an epub and a KF8. Hope this makes things clearer. Ask if you want more details about what the internal structure of a kf8 (or Kindlegen) generated mobi looks like, I would be happy to describe the epub-extraction process in detail. Take care, KevinH Quote:
Last edited by KevinH; 07-09-2013 at 10:53 AM. Reason: fix many typos |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Which format is better? ePub or Kindle | adrenaline | Calibre | 8 | 06-07-2013 05:00 PM |
iPhone Convert epub format to kindle for iPhone format. Is it possible? | thecyberphotog | Apple Devices | 16 | 03-14-2013 01:04 AM |
Where is epub to kindle format in Calibre? | Mrgauth | Calibre | 9 | 08-08-2010 08:00 AM |
Will Kindle ever adopt an ePub format? | tkingny | Which one should I buy? | 24 | 12-25-2009 09:38 AM |
Kindle books in epub format?? | readmorenow | Amazon Kindle | 15 | 11-12-2009 12:04 PM |