|
|
#406 | |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,291
Karma: 73595938
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
Quote:
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
|
|
#407 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,829
Karma: 23146860
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
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" />
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” Last edited by DiapDealer; 07-19-2012 at 05:06 PM. |
|
|
|
|
Enthusiast
|
|
|
|
#408 | |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,291
Karma: 73595938
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
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.
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010 Last edited by pdurrant; 07-21-2012 at 03:35 PM. |
|
|
|
|
|
|
#409 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,697
Karma: 3644259
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
|
you might want to archive and mark the last version with Mobipocket Creator support.
Dale
__________________
Dale DePriest http://pages.suddenlink.net/dalede or http://daledepriest.wikispaces.com currently using an EZ Reader or a Literati or my iPad. |
|
|
|
|
|
#410 |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,291
Karma: 73595938
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
A good point. I should have a copy here somewhere.
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
|
#411 |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,291
Karma: 73595938
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
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.
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
|
#412 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 592
Karma: 230878
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 |
|
|
|
|
|
#413 |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,291
Karma: 73595938
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
Done. I've also updated the AppleScript.
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
|
#414 |
|
Member
![]() ![]() Posts: 20
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? |
|
|
|
|
|
#415 | |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,211
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
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. |
|
|
|
|
|
|
#416 |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,291
Karma: 73595938
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
Whoops. Changed the attachments, but forgot to change the links in the post. Now fixed.
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
|
#417 |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,291
Karma: 73595938
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
Thanks, Jon. it seems we should be making sure text is escaped, and we're not.
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
|
#418 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,211
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Happy to help. Looking forward to 054.
__________________
|
|
|
|
|
|
#419 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,829
Karma: 23146860
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
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!
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” |
|
|
|
|
|
#420 | |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,291
Karma: 73595938
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
Quote:
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can i rotate text and insert images in Mobi and EPUB? | JanGLi | Mobi | 5 | 02-02-2013 04:16 PM |
| PDF to Mobi with text and images | pocketsprocket | Mobi | 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 | |