![]() |
#751 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,587
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
It definitely worked for me ... with the sample file provided by Aaron. I haven't tested on lots of devices but all the images in the azw3 show up for me in KindlePreviewer, the KindleforPC app, and on the first generation Kindle Fire HD.
|
![]() |
![]() |
![]() |
#752 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,788
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Hi,
Thanks for testing it. Only with the Applescript? What if you it without the Applescript? Hmm, that is really strange and you might say anomalous behaviour! The Applescript might refer to an older version of python? I have aMac and I will load that Applescript up with the latest v66 version with the new mobi_split.py and see if I can duplicate your issue. I should have some free time later tonight to check with your testcase. I am running Mac OS X 10.9.3 with the very latest TCL and Python 2.7.6 version from ActiveState to work around the large number of broken python pieces in Mavericks. KevinH |
![]() |
![]() |
![]() |
#753 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
FWIW, output looks okay with Mavericks' stock Python (2.7.5 on 10.9.3) when running KindleUnpack (0.65) the usual way (and no specific flags passed).
Does the AppleScript thingy does things differently? (Or uses different defaults?) Last edited by NiLuJe; 05-26-2014 at 09:04 PM. |
![]() |
![]() |
![]() |
#754 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 3274
Join Date: Dec 2011
Device: iPad
|
Kevin, I never learned to use KindleUnpack without the AppleScript, but I can look at that a little later. I tend to avoid the command line when possible
Also, would your revised splitter code be needed in KindleStrip as well? I know everyone's saying that's not needed anymore, but since I only use Kindlegen through Previewer, it is still very handy for me. |
![]() |
![]() |
![]() |
#755 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,788
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Hi,
The very very latest version of Kindlestrip simply zeros out some sections and does no section removal or shifting so that version should still work. |
![]() |
![]() |
![]() |
#756 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,788
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Hi AaronShep,
Okay I grabbed Paul's Applescript (gotta love that icon!) and ran it stock with just the new mobi_split.py file put in KindleUnpack v0.65.app/Contents/Resources/ to update it. I ran it on your test case and all images were successfully unpacked and copied to their correct location. So I can't recreate what is happening to you here. Since you are on Mac OS X 10.6.8 you must have multiple system Pythons installed alongside your latest Python 2.7.6 version and my guess is that an earlier version is being found first by the Applescript and not the very latest Python 2.7.6 One way to check is to open Terminal.app and type the following command and hit return: which python On my machine this reports the following /Library/Frameworks/Python.framework/Versions/2.7/bin/python and then type the following and hit return echo $PATH On my machine this looks as follows (this comes from installing ActiveState's Active Python community addition under Mac OS X 10.9.3) /Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin That should show you which version of python is found first on your system. Alternatively you could type in the following and then hit return /usr/bin/env python You should see something like the following: ActivePython 2.7.6.9 (ActiveState Software Inc.) based on Python 2.7.6 (default, Feb 27 2014, 14:06:06) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> To exit from this simply enter the following and hit return quit() Please let me know what you find out. KevinH |
![]() |
![]() |
![]() |
#757 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 3274
Join Date: Dec 2011
Device: iPad
|
Kevin, I had the latest Python from Python.org. I've now installed the latest Python from ActiveState, and the Terminal command now provides an exact match to the info on your machine. But the mobi8 image files are still empty.
So, I switched from Snow Leopard to a Mavericks installation, installed the latest ActiveState Python, and tried again. This time the images showed up (even though the Terminal command persisted in showing 2.7.5, even after reboot). So, it is likely a Python bug on Snow Leopard, and I don't think it's worth pursuing. I don't personally need the same images to show up for both mobi7 and mobi8. The fix you already figured out was the important one, and I appreciate your work. Aaron |
![]() |
![]() |
![]() |
#758 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,989
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
I have a vague memory that when run from AppleScript, the command line is some strange default, not what you see in terminal, and probably uses the built-in python no matter what your defaults are in terminal.
I'll try to get a new AppleScript wrapper up tonight. |
![]() |
![]() |
![]() |
#759 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,788
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Official KindleUnpack_v067
Hi,
Just to tie up loose ends, here is an official KindleUnpack_v067 release that has all of tkeo's fixes from v66a, plus the fixes for mobi_split.py that corrects the bug of losing images in azw3 generated by splitting mobis. Please note: This does NOT include tkeo's epub 3 patches as those are still under review. Also note, for planning purposes: I have plans to add page-map.xml creation during unpacking from either a separately provided .apnx (provided alongside the input file) OR from recent kindlegen mobis that include the PAGE section. Once those features are in the tree, I will incorporate all of the epub3 changes on top. Anyway attached is KindleUnpack_v067 plus a unified diff to show all of the changes since the v066 release. Hope this helps, KevinH |
![]() |
![]() |
![]() |
#760 | |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9
Karma: 5792
Join Date: Oct 2012
Device: Kindle Paperwhite
|
Hi,
I have some trouble when extracting some comics from azw3 format. I got the message Quote:
Thanks. ===== EDIT ===== Found the reason. Seems that the awz3 files copied from KPW are not completed version, but only with covers and title. Downloading from the amazon website by 'via USB', however, results the full file. Last edited by msg7086; 06-12-2014 at 09:59 AM. |
|
![]() |
![]() |
![]() |
#761 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,788
Karma: 6000000
Join Date: Nov 2009
Device: many
|
That is strange.
My bet is that the version from KPW somehow was referencing HD images? That "Section xxx does not contain a recognized resource" is probably seeing the new HD Container version of the images which it will ignore. Does KPW support HD images? If so, the version specifically downloaded to it probably strips out the low res versions of the images which seems to be confusing the hell out of KindleUnpack. I will add some code to look for CONT sections and unpack HD images as well just in case. KevinH |
![]() |
![]() |
![]() |
#762 |
KCC Co-Author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 845
Karma: 765434
Join Date: Mar 2013
Location: Poland
Device: Kindle Oasis 2
|
AFAIK only Fire use new HD images.
|
![]() |
![]() |
![]() |
#763 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 56
Karma: 3274
Join Date: Dec 2011
Device: iPad
|
Quote:
Thanks again for everyone's work on this. |
|
![]() |
![]() |
![]() |
#764 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,788
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Hi,
Paul is the expert in that. Unfortunately, what I know about Applescripts wouldn't fill up a thimble. That said, I think you can just simply copy all of the .py files from the lib sub directory of the latest KindleUnpack and store them inside the Applescript app inside Contents/Resources/ to replace their namesakes. Last edited by KevinH; 06-12-2014 at 04:05 PM. |
![]() |
![]() |
![]() |
#765 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,788
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Testers for a Experimental KindleUnpack with page-map support and unpacking HD Images
Hi All,
I am looking for testers for an experimental version (alpha/beta) of KindleUnpack that will unpack a Mobi 8 (kindlegen generated) PAGE section to create a page-map.xml file in the epub. It will also create a new sub directory called HDImages/ and populate it with the HDContainer Images (but it won't replace the normal res images yet). To get an epub with these HD images you would have to unpack the epub and manually replace the normal res versions with their HD versions. So if you work converting epubs with page information, or use HD Images, I would live to get feedback as to whether it works for you or not. Please let me know if you are willing to test it, and I will post it. Thanks, KevinH Last edited by KevinH; 06-12-2014 at 04:13 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |