Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 05-26-2014, 08:36 PM   #751
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
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.
DiapDealer is online now   Reply With Quote
Old 05-26-2014, 08:45 PM   #752
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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
KevinH is online now   Reply With Quote
Old 05-26-2014, 09:01 PM   #753
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
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.
NiLuJe is offline   Reply With Quote
Old 05-26-2014, 09:05 PM   #754
AaronShep
Connoisseur
AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.
 
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.
AaronShep is offline   Reply With Quote
Old 05-26-2014, 09:13 PM   #755
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is online now   Reply With Quote
Old 05-26-2014, 09:47 PM   #756
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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
KevinH is online now   Reply With Quote
Old 05-27-2014, 12:10 AM   #757
AaronShep
Connoisseur
AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.
 
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
AaronShep is offline   Reply With Quote
Old 05-27-2014, 07:19 AM   #758
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
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.
pdurrant is offline   Reply With Quote
Old 06-10-2014, 12:54 PM   #759
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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
Attached Files
File Type: txt changes.patch.txt (5.5 KB, 266 views)
File Type: zip KindleUnpack_v067.zip (65.1 KB, 260 views)
KevinH is online now   Reply With Quote
Old 06-12-2014, 09:50 AM   #760
msg7086
Junior Member
msg7086 shares his or her toysmsg7086 shares his or her toysmsg7086 shares his or her toysmsg7086 shares his or her toysmsg7086 shares his or her toysmsg7086 shares his or her toysmsg7086 shares his or her toysmsg7086 shares his or her toysmsg7086 shares his or her toysmsg7086 shares his or her toysmsg7086 shares his or her toys
 
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:
Warning: Section xxx does not contain a recognised resource
(... a lot)

Error: Referenced image 2 was not recognized as a valid image in <img height="1200" src="kindle:embed:0002?mime=image/jpg" width="844"/>
(... a lot)
Any ideas on how to deal with this?

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.
msg7086 is offline   Reply With Quote
Old 06-12-2014, 11:14 AM   #761
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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
KevinH is online now   Reply With Quote
Old 06-12-2014, 11:22 AM   #762
AcidWeb
KCC Co-Author
AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.AcidWeb ought to be getting tired of karma fortunes by now.
 
AcidWeb's Avatar
 
Posts: 845
Karma: 765434
Join Date: Mar 2013
Location: Poland
Device: Kindle Oasis 2
AFAIK only Fire use new HD images.
AcidWeb is offline   Reply With Quote
Old 06-12-2014, 01:03 PM   #763
AaronShep
Connoisseur
AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.AaronShep could sell banana peel slippers to a Deveel.
 
Posts: 56
Karma: 3274
Join Date: Dec 2011
Device: iPad
Quote:
Originally Posted by KevinH View Post
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.
Will there be an AppleScript version with these corrections? I can't seem to find one posted.

Thanks again for everyone's work on this.
AaronShep is offline   Reply With Quote
Old 06-12-2014, 03:56 PM   #764
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is online now   Reply With Quote
Old 06-12-2014, 04:04 PM   #765
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is online now   Reply With Quote
Reply


Forum Jump

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 PDF 2 06-22-2009 09:28 AM


All times are GMT -4. The time now is 01:38 PM.


MobileRead.com is a privately owned, operated and funded community.