05-04-2014, 09:25 AM | #721 |
Connoisseur
Posts: 94
Karma: 10
Join Date: Feb 2014
Location: Japan
Device: Kindle PaperWhite, Kobo Aura HD
|
KindleUnpack v0.65a (bug fixes of KindleUnpack v0.65)
Hi,
I have fixed bugs regarding RESC section processing. Three bugs are fixed as follows:
Attached files are as follows,
tkeo |
05-04-2014, 10:45 AM | #722 | |
Connoisseur
Posts: 94
Karma: 10
Join Date: Feb 2014
Location: Japan
Device: Kindle PaperWhite, Kobo Aura HD
|
epub versions of KindleUnpack
Hi,
Quote:
I briefly summarize differences from epub2 to eupb3 related closely to KindleUnack. Please correct if it is wrong.
I think addition of parameter to indicate taget epub version to functions are necessary. And throgh consideration, questions are come into my mind. How many target versions are necessary? strict epub2, epub2+alpha(current version), epub3? or epub2+alpha(current version) and epub3 is enough?Regarding to modify 'mobi_opf.py', which is better, switching internal process in WriteOPF() or separeting WriteOPF() for each version?The switching internal process is possible but it will decrease readability and may cause bugs to all versions... I would like to hear opinions. Thanks, |
|
Advert | |
|
05-04-2014, 07:08 PM | #723 | |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hi,
I am tied up and traveling for the next 2 weeks, so if someone wants to make a new official KindleUnpack release, please go ahead and do so. If not, upon my return I will do so. Thanks, KevinH Quote:
|
|
05-04-2014, 07:14 PM | #724 | |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hi,
My vote goes to separate writeOPF routines with as many common functions and methods pulled out to be shared to make it easier to maintain the pair. A command line switch to enable epub3 features sounds good as well. I would stick with what we have now for epub2, and going with official epub3. If the need arises we can add a strict flag to the command line to rule out any hybrid approach. My 2 cents ... KevinH Quote:
|
|
05-11-2014, 08:27 PM | #725 |
but forgot what it's like
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Calibre writes 0xffffffff in "First image index" field of MOBI header (it's a field at offset 108) when ebook-convert --mobi-file-type new is used and no images are provided in input file. Source code of this Calibre action is located at calibre/ebooks/mobi/writer8/mobi.py.
Kindle Touch 5.3.7 displays error ("Unable to Open Item") on selecting book for reading, when result of aforementioned ebook-convert is copied to device with .mobi extension, but when resulting file is copied to device with .azw3 extension, KT displays it without errors. So, device is able to read resulting file, however, KindleUnpack v65 can't unpack it, showing following exception: Spoiler:
Here are inputs of ebook-convert: Spoiler:
ebook-convert output is attached to this post (it's the same file but with two different extensions, just for convenience). |
Advert | |
|
05-11-2014, 11:00 PM | #726 |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hi eureka,
Thanks for the bug report and test case. I now have a fix for this bug in my tree. I am away from my home traveling, and will integrate tkeo's fixes and your bug fix when I return in about a week. Hope that works for you. Take care, KevinH |
05-17-2014, 08:05 PM | #727 |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
KindleUnpack V0.66 Released
Hi All,
As promised, here is KindleUnpack_v66 which is a bug fix release. It has all of the bug fixes from tkeo's v65a files: 1. RESC section extraction failure (reported before) is fixed. (tkeo) 2. potential confliction of item ids between the id generated in and extracted one from RESC is fixed. (tkeo) 3. now able to process multi-line comments in RESC. (tkeo) plus an additional bug fix as reported by eureka: 4. fix for calibre generated mobis and azw3's with no images that have incorrect firstresource offsets set to missing 0xffffffff that azw3's ignore (KevinH) Please give it a try and let us know of any further issues. Thanks, KevinH |
05-18-2014, 02:29 AM | #728 |
Groupie
Posts: 195
Karma: 42216
Join Date: Oct 2013
Location: Poland
Device: Kindles: KOA1, KV
|
And here you are detailed changeset between 0.65 and 0.66: https://github.com/quiris11/KindleUn...fe44c298ab8afe
|
05-20-2014, 11:05 AM | #729 |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
want unified diffs?
Hi,
If people would prefer unified diffs be posted as well for each release, that is simple enough to do. Just let me know. KevinH |
05-22-2014, 10:01 AM | #730 | |
Connoisseur
Posts: 94
Karma: 10
Join Date: Feb 2014
Location: Japan
Device: Kindle PaperWhite, Kobo Aura HD
|
Minor bug fixes of v0.66
Hi,
I have fixed minor bugs. They are found in testing the files attached in Quote:
|
|
05-23-2014, 09:41 AM | #731 |
Connoisseur
Posts: 94
Karma: 10
Join Date: Feb 2014
Location: Japan
Device: Kindle PaperWhite, Kobo Aura HD
|
KindleUnpack v0.66ex, the preview version for epub3 suport
Hi All,
I have modified KindleUnpack to support epub3. This is not completed it yet. I am not satisfied with the method to switch the output epub version; so, I am considering to change it to bit flags or something in order to increase flexiblity for future extentions. Bug reports and suggestions are welcomed. Major modifications are as follows,
Detailed changes are in the following: Spoiler:
|
05-25-2014, 11:42 PM | #732 |
Author/Illustrator
Posts: 14
Karma: 2952
Join Date: Mar 2012
Location: Boise, ID
Device: iPad 2 & 3, Kindle Paperwhite, Kindle Fire 1 & 2, HD7 & HD8.9, RazrMax
|
Azw3/Mobi in Extracted Archive?
Hello all, just a quick question here.
Aaron Shepherd is reporting that he is seeing an azw3 and converted mobi file inside the extracted contents of a mobi file, along with the kindlegensrc.zip file and the standard mobi7/mobi8 folders, but he is no longer finding images in the mobi8 folder, only in the mobi7 one. However, I am not seeing any of this myself, just the two folders, the source zip archive and the log file. Although the file sizes show a disparity which indicates the possibility of a missing file of roughly the same size as the kindlegensrc file. Is there a logical explanation for this? He is on a Mac and I'm on Windows 7 if that matters. He is also using the AppleScript and obviously I am not, although I doubt that has anything to do with it. Is anyone else getting the azw3/mobi files in an extracted archive? |
05-26-2014, 11:36 AM | #733 | |
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hi,
Sorry I am a bit confused by your question. When kindlegen is run without the "do not include source" command line option, it automagically includes the zip of the source. It always includes both a mobi7 (old format) and mobi8 (aka kf8/azw3) version of the book in the palm container (.mobi file). When KindleUnpack is run on this file it will try to output the source zip, will unpack the older mobi7 part of the file, and unpack the mobi8 (kf8) part of the file. It will unpack the mobi7 part into the single large old html file and folder of images. It will try and unpack the mobi8 (kf8) part into a typical epub-like structure with multiple html files, css, images, and etc. The resulting epub may not be valid but most times will be if kindlegen is passed in a valid epub. KindleUnpack also has a command line option to allow splitting of the original file into separate old version (mobi7) and newer mobi 8 (azw3) files. So what exactly are you seeing? What parts are missing? Did you add the "don't include source" option when running Kindlegen? What command line options did you provide to KindleUnpack? If you post a test case that illustrates the issue, I would be happy to look at it. KevinH Quote:
|
|
05-26-2014, 12:01 PM | #734 |
Author/Illustrator
Posts: 14
Karma: 2952
Join Date: Mar 2012
Location: Boise, ID
Device: iPad 2 & 3, Kindle Paperwhite, Kindle Fire 1 & 2, HD7 & HD8.9, RazrMax
|
Okay, I have never used the split command, so that is where the .azw3/.mobi files are being produced upon extraction. I see that now. Cool.
Our disparity lies in the fact that Aaron says he is no longer getting images in the mobi8 folder when extracted, while I still am. We both still find images in the mobi7 folder. The source file is, of course, only present when the "-dont_append_source" tag is not added to the command line. I am aware of that. The reason for the query, aside from the missing images in the mobi8 folder, is because we're trying to ascertain how Amazon is sourcing the higher resolution images for the HD devices, now that a 5 Mb per image file size is allowed. Do these come from the kindlegensrc.zip archive, or the .azw3 file? Mainly I was trying to account for what is in the final converted file, and the missing images are an unknown variable. So my question is whether anyone else is seeing an empty images folder in the mobi8 section of the unpack? Or is this an anomaly? For the record, here is what Aaron is seeing (and this is in an unpacked version of a preview file downloaded from KDP): Zipped submission archive (with uncompressed images) [kindlegensrc.zip] Mobi7 source folder (with compressed images) Mobi7 ebook (with compressed images) Mobi8 source folder (no images!) *** AZW3 ebook (uncompressed images) Kindlegen log Thanks for the reply! |
05-26-2014, 02:14 PM | #735 | ||||
Sigil Developer
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hi,
Quote:
Quote:
I am not sure that anyone has bothered to decode or dump those as they are only produced by the latest versions of kindlegen. There is a program called DumpMobiHeader_v14.py someplace I wrote that can show you where they are being stored in the kindlegen generated mobi file. I will loook and see if I have a later version of it and post it for you to help you find these HD container files. Quote:
Quote:
Take care, KevinH |
||||
|
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 |