08-20-2011, 06:59 AM | #121 |
Member
Posts: 18
Karma: 10
Join Date: Dec 2010
Device: Kindle
|
OK, upgrading from Kindlegen 1.1.99 to 1.2 means the manifest entry is no longer needed, and the syntax that I didn't recognize in the <x-metadata> tag covers the need. Thanks for the help.
|
08-20-2011, 07:04 AM | #122 | |
The Grand Mouse 高貴的老鼠
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
The opf from mobiunpack does not include the cover image in the manifest, but it does include it in the EmbeddedCover tag. As far as I know, the cover image shouldn't be necessary in the manifest. In opf files for Mobpocket Creator it wasn't needed, and I think caused problems if it was there. Similarly images linked from the html weren't included in the manifest (& aren't included in the manifest by mobiunpack). Since it works fine with Kindlegen 1.2, and we're trying to create input for Kindlegen, not valid ePub source, I don't intend changing this behaviour. You are free to do so yourself, of course. [I see you're sorted. Message Lag.] Last edited by pdurrant; 08-20-2011 at 07:05 AM. Reason: message lag |
|
Advert | |
|
08-26-2011, 06:56 PM | #123 | |
Member
Posts: 18
Karma: 10
Join Date: Dec 2010
Device: Kindle
|
Quote:
|
|
08-27-2011, 05:45 AM | #124 |
The Grand Mouse 高貴的老鼠
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
I've no idea how kindlegen does mp3 files. I rather doubt that the decoder will output them sensibly. If you have a sample Kindle file with an MP3 in it, it might be interesting to take a look at it.
|
08-28-2011, 07:58 PM | #125 | |
Grand Sorcerer
Posts: 6,478
Karma: 26425959
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
Quote:
Kindle's mp3 support is limited to background playing, or (if in audible folder) using the audiobook player. My guess is that decoder will not extract audio/video files, but I haven't played with that. Let us know what you discover. |
|
Advert | |
|
09-01-2011, 05:22 AM | #126 |
The Grand Mouse 高貴的老鼠
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
I've just uploaded version 31 to my post near the start of this thread.
This has no changes for Kindle/Mobipocket ebooks, but adds initial support for Kindle/Print Replica ebooks, outputting a PDF file, and also several mysterious data sections. The sample Print Replica ebook I have contains only one PDF. It seems from the data stored that it's possible to have more than one PDF stored in a Print Replica ebook. I have tried to guess how this will work, but it's entirely possible that I've guessed wrong, and that the code will need tweaking once someone comes across such an ebook. As with Kindle/Mobipocket books, this script only works on non-DRM Print Replica ebooks, which at the moment seems to be only the samples that can be downloaded from Amazon. Feedback very welcome indeed. |
09-01-2011, 06:27 PM | #127 |
The Grand Mouse 高貴的老鼠
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
|
09-01-2011, 07:18 PM | #128 |
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
|
Great job, there is an AZW4 wiki page now if you want to document anything.
Dale |
09-02-2011, 05:11 AM | #129 |
The Grand Mouse 高貴的老鼠
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
|
09-02-2011, 02:51 PM | #130 |
The Grand Mouse 高貴的老鼠
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
I've now updated the Mobipocket Updater AppleScript to handle .azw4 (Print Replica) ebooks as well.
|
09-05-2011, 02:27 AM | #131 |
Member
Posts: 18
Karma: 10
Join Date: Dec 2010
Device: Kindle
|
What about .ncx files? Seems mobiunpack doesn't generate one, even if one was using during creation of the book?
|
09-05-2011, 03:44 AM | #132 | |
The Grand Mouse 高貴的老鼠
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
All that's necessary is for someone to spend the time to work out where and in what format it's stored, document that, and then for someone to take that info and write code to decode the info and create an ncx file from it. Good luck! |
|
09-05-2011, 03:55 AM | #133 |
Member
Posts: 18
Karma: 10
Join Date: Dec 2010
Device: Kindle
|
So mobiunpack actually creates this kindlegensrc.zip file somewhere along the line. I just found a (slightly tweaked) version of my .ncx file in there, in the "misc" directory. The tweaks are a reflection of the directory structure.
So it looks like the changes necessary would be threefold: 1) extract the .ncx file out of the kindlegensrc.zip and place it is a (newly created) misc directory, alongside the Images directory 2) reference the .ncx file in the <manifest> tag of the .opf file. 3) add a toc="toc" attribute to the <spine> tag of the .opf file. I haven't looked at the source for mobiunpack, to know how hard or easy this would be, nor do I know what sort of source control is being used, or where it is located. |
09-05-2011, 04:01 AM | #134 | |
The Grand Mouse 高貴的老鼠
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
Perhaps MobiUnpack should be tweaked to also export any unknown binary data in the original file. Hmm... |
|
09-05-2011, 04:03 AM | #135 |
Member
Posts: 18
Karma: 10
Join Date: Dec 2010
Device: Kindle
|
A little more info: the <manifest> tag should probably look like:
<item href="misc/toc.ncx" id="toc" media-type="application/x-dtbncx+xml" /> but with the file name possibly different in different cases, based on the actual .ncx file name found? But here's something I don't understand: there is also a content.opf in the kindlegensrc.zip file, but it doesn't seem to match the one generated by mobiunpack. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can i rotate text and insert images in Mobi and EPUB? | JanGLi | Kindle Formats | 5 | 02-02-2013 04:16 PM |
PDF to Mobi with text and images | pocketsprocket | Kindle Formats | 7 | 05-21-2012 07:06 AM |
Mobi files - images | DWC | Introduce Yourself | 5 | 07-06-2011 01:43 AM |
pdf to mobi... creating images rather than text | Dumhed | Calibre | 5 | 11-06-2010 12:08 PM |
Transfer of images on text files | anirudh215 | 2 | 06-22-2009 09:28 AM |