View Single Post
Old 10-08-2014, 10:50 AM   #1019
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,817
Karma: 6000000
Join Date: Nov 2009
Device: many
Hi tkeo,


Issue 1 fixed - it was using % to fold in data into bytes which doesn't work in python 3.4 and earlier - but will in 3.5. I made a few change in mobi_html.py to hopefully fix other cases like this.

Issue 3 fixed - it happened because in kindleunpack.py in the cover image code part.find was searching a bytes string for a unicode cover image name and could never find it! I have now fixed that as well.


But I could not see any issue with HDimage_test.mobi at all. I ran it with the 0.75 code, then diffed it against the new nlib code for both python 2 and python 3 and the only differences I could see were due to the order of xml attributes which is random when extracted from dicts. Exactly what problem are you having?

Is this what your patch was for? If so, can you re-post your patch. I can not unzip it on a Mac or my Linux box at all.

Here is what it says when I try. It seems to need some sort of later PK modified Zip routine:


KevinsiMac:Desktop kbhend$ unzip nlib.patch.zip
Archive: nlib.patch.zip
skipping: nlib.patch.txt need PK compat. v6.3 (can do v2.1)


Thanks,

KevinH

ps. I have attached the very latest version of nlib.zip

Last edited by KevinH; 10-08-2014 at 06:43 PM. Reason: remove outdated attachment
KevinH is online now   Reply With Quote