07-19-2012, 03:55 PM | #406 | |
The Grand Mouse 高貴的老鼠
Posts: 71,529
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
|
|
07-19-2012, 05:04 PM | #407 |
Grand Sorcerer
Posts: 27,572
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I think it might actually be changes to Kindlegen that have broken the cover functionality. I don't think the EmbeddedCover meta-tag is valid any more.
The following quick mods (attached patch) to the mobi_opf.py file seems to get the cover functionality going again for unpacked MOBI6/7 files fed right back to the latest versions of Kindlegen ... but it's only intended as proof of concept, and could very well break something else. Basically, instead of the EmbeddedCover meta tag pointing directly to the cover image file, it (Kindlegen) is expecting the format of: Code:
<meta name="cover" content="cover_img" /> Code:
<item id="cover_img" media-type="image/jpeg" href="images/image00001.jpeg" /> Last edited by DiapDealer; 07-19-2012 at 05:06 PM. |
07-19-2012, 05:21 PM | #408 | |
The Grand Mouse 高貴的老鼠
Posts: 71,529
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
No, what's happened is that at some point the EmbeddedCover tag has been generated incorrectly. It ought to look like <x-metadata><EmbeddedCover>Cove Image Name.jpg</EmbeddedCover></x-metadata> And if changed to that, KindleGen handles it fine. But that's unofficial support left over from Mobipocket Generator. I think it's probably best if we drop support for Mobipocket Generator, and tweak things to work only with KindleGen. There's another problem too - we're including the thumbnumber cover image in the manifest, which causes a cycle of Mobiunpack/Kindlegen to add an extra image - a new thumbnail each time. Whether this is because the metadata is declared incorrectly, or because KindleGen can't handle being given an explicit thumbail image I'm not sure. There's also a problem of empty anchors not being removed well enough, causing extra empty anchors to be added on each cycle through as well. I'll work on a fix for all this over the weekend. Last edited by pdurrant; 07-21-2012 at 03:35 PM. |
|
07-19-2012, 08:31 PM | #409 |
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
|
you might want to archive and mark the last version with Mobipocket Creator support.
Dale |
07-20-2012, 05:43 AM | #410 |
The Grand Mouse 高貴的老鼠
Posts: 71,529
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
|
07-21-2012, 04:33 PM | #411 |
The Grand Mouse 高貴的老鼠
Posts: 71,529
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Version 0.52 now uploaded to the first post in this thread.
I've also uploaded the last "unified" version, 0.32, which was just before KF8 support got added, and Mobipocket Creator support got broken. |
07-25-2012, 11:43 AM | #412 |
Sigil Developer
Posts: 7,675
Karma: 5433388
Join Date: Nov 2009
Device: many
|
update to Mobi_UNpack
Hi Paul,
I have added support for the new metadata items being used in the very latest version of Kindlegen as well as a fix for splitting joint mobis, that did not properly handle the header flag bit 12 (0x1000) which was recently found to indicate the presence of embedded fonts or not (see the Calibre thread on AZW3 and embedded fonts on KT). Here is the Mobi_unpack_v053.zip. If you get a free moment would you update your first post with it. Thanks, KevinH |
07-26-2012, 04:19 AM | #413 |
The Grand Mouse 高貴的老鼠
Posts: 71,529
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
|
07-27-2012, 10:54 AM | #414 |
Enthusiast
Posts: 27
Karma: 110
Join Date: Dec 2010
Location: Chicago, IL
Device: iPad, Kindle
|
Paul, when I click either the python or the applescript link in the first post, I get an alert message "Invalid Attachment specified. If you followed a valid link, please notify the administrator"
That's where you've posted the latest versions, is that right? |
07-27-2012, 11:14 AM | #415 | |
Resident Curmudgeon
Posts: 74,304
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
The problem is thus... Code:
<dc:publisher>Simon & Schuster, Inc.</dc:publisher> Code:
<dc:publisher>Simon & Schuster, Inc.</dc:publisher> Last edited by JSWolf; 07-27-2012 at 11:26 AM. |
|
07-27-2012, 11:53 AM | #416 |
The Grand Mouse 高貴的老鼠
Posts: 71,529
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Whoops. Changed the attachments, but forgot to change the links in the post. Now fixed.
|
07-27-2012, 11:54 AM | #417 |
The Grand Mouse 高貴的老鼠
Posts: 71,529
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
|
07-27-2012, 01:14 PM | #418 |
Resident Curmudgeon
Posts: 74,304
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
09-13-2012, 08:09 PM | #419 |
Grand Sorcerer
Posts: 27,572
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I made some modifications to two of the files in Mobi_Unpack: "mobi_unpack.py" and "mobi_opf.py".
The change to mobi_unpack.py is due to at least one report of complete failure because a font couldn't be properly extracted. I added some error-handling to accommodate the occasional wonky font without causing the entire process to bomb. The change to mobi_opf.py is to simply entity escape the KF8 metadata so the resulting OPF is valid when the occasional special character is encountered (RE: Jon's next-to-last post). @Pdurrant: if you (or anybody) wants to check it out and see if it makes sense... I've advanced the version to 0.54 if you want to update the first post. Feel free to change it all up (or ignore) if you have different plans or see a better way to accomplish the same goals. Thanks! |
09-14-2012, 03:13 AM | #420 | |
The Grand Mouse 高貴的老鼠
Posts: 71,529
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Quote:
|
|
|
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 |