Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-19-2009, 11:18 PM   #166
GishFish
Junior Member
GishFish began at the beginning.
 
GishFish's Avatar
 
Posts: 3
Karma: 10
Join Date: Dec 2009
Location: Florida
Device: Kindle 4 PC
I want to report too that i♥cabbages version 3 works. Thanks a lot!

Now my problem: I have a book for which unswindle.pyw did not work. I bought the book on paper several years ago and now I bought it as a kindle addition. It has .prc extension but I think it might be Topaz. I really need to convert this book to HTML or PDF or other text searchable format.

When I open as text the books for which unswindle.pyw worked, they have BOOKMOBI in the beginning of the file, while this one does not. It has TPZ0 instead.

Can someone more knowledgeable and experienced check the sample file and let me know if this is Topaz or not. This is the sample:
http://www.amazon.com/Philosophy-In-.../dp/B001FSJAWK

I'd really appreciate that. Thanks again!
GishFish is offline   Reply With Quote
Old 12-19-2009, 11:26 PM   #167
daffy4u
I'm Super Kindle-icious
daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.daffy4u ought to be getting tired of karma fortunes by now.
 
daffy4u's Avatar
 
Posts: 6,732
Karma: 2429021
Join Date: Apr 2008
Location: Long Drive, Calinadia Candafornia
Device: K1, KTSO, KFHD7, KPW1
Quote:
Originally Posted by GishFish View Post
Can someone more knowledgeable and experienced check the sample file and let me know if this is Topaz or not. This is the sample:
http://www.amazon.com/Philosophy-In-.../dp/B001FSJAWK

I'd really appreciate that. Thanks again!
Yep, its Topaz.
Attached Thumbnails
Click image for larger version

Name:	tpz2.PNG
Views:	142
Size:	38.6 KB
ID:	41583  
daffy4u is offline   Reply With Quote
Old 12-19-2009, 11:57 PM   #168
volwrath
Guru
volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.
 
Posts: 704
Karma: 1001739
Join Date: Apr 2005
Location: Nashville, TN
Device: SGS3/PW2/Nexus72
Quote:
Originally Posted by labba View Post
just a littel reminder:
this topic is : Adventures in discovering the K4PC PID.
and not other readers.. so, this challange is far then over..


Thanks.
LaBBa.
Thank you Labba for your work. You and cabbages have done great things!
volwrath is offline   Reply With Quote
Old 12-20-2009, 12:42 AM   #169
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
Quote:
Originally Posted by i♥cabbages View Post
As for Topaz, how does one identify which books are Topaz, and/or could you point me at a few? No promises, but since I'm on a roll, I'll take a look.
All TOPAZ ebooks, including samples, appear to be encrypted and we know almost nothing about the underlying format (because the ebooks are always encrypted). We know they can include embedded fonts, which may be why Amazon encrypts the samples. It is possible that removing the encryption will still leave an obscure mess to wade through. The only way we have to test a DRM-free version would be to demonstrate portability between several Kindles, and if Amazon was being really clever their Readers would not display DRM-free TOPAZ at all. There is always the ereader2html approach of stripping and exploding in one app, but that was based on understanding the underlying format. Calibre is the best tool for DRM-free format shifting, but if every single DRM-free TOPAZ in the wild came from an unTOPAZ script could the Calibre developers still work on format shifting them without legal worries?

Anyway, see How to tell between the formats? for a recent discussion of identifying TOPAZ ebooks, which includes the names and ASINs of several TOPAZ ebooks.

The reason many readers want access to TOPAZ is that they are often unique to the Kindle Store, i.e. available in legal ebook form nowhere else. I know some think "legal" and DRM-stripping don't go together well, but TOPAZ is actually one of the best counter examples. If I buy a TOPAZ from Amazon, why can't I read it on whatever device I own? Also, if the formatting is crappy why can't I fix it myself?
wallcraft is offline   Reply With Quote
Old 12-20-2009, 01:33 AM   #170
Lilly
Guru
Lilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it is
 
Lilly's Avatar
 
Posts: 688
Karma: 2090
Join Date: Dec 2007
Device: Sony PRS-505, PRS-900 & PRS-950, Amazon Kindle2
I wonder if .azw1 and .tpz have different encryption. I post a link to a free Topaz book earlier which has a file extension of .azw1 and I would not put it pass Amazon that the 2 file extensions for Topaz might have similar yet different encryption.
Lilly is offline   Reply With Quote
Old 12-20-2009, 03:39 PM   #171
TallMomof2
Kindlephilia
TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.TallMomof2 ought to be getting tired of karma fortunes by now.
 
TallMomof2's Avatar
 
Posts: 2,009
Karma: 1139255
Join Date: Nov 2007
Location: Snowpacolypse 2010
Device: Amazon K4, Fire, Droid 2
What a great find on a snowed in Sunday! Great work, LaBBa and I♥Cabbages! Karma to you both.
TallMomof2 is offline   Reply With Quote
Old 12-20-2009, 04:22 PM   #172
yecam
Member
yecam began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Feb 2009
Device: BeBook
Failed attempt with unswindle.py version 3

I am wondering if I have a defective version of swindle.pyw.
When I first attempted to run it and saw no response I tried running it with a command line prompt as in unswindlexx.py.

The syntax error that I saw was
unswindlexx.py:722: Warning: 'with' will become a reserved
keyword in Python 2.6
File "C:\Documents and Settings\Owner.EMAC\My Documents\My eBooks\mobi_convert\unswindlexx.py", line 722
with tempfile.NamedTemporaryFile(delete=False) as tmpf:

In looking at the source I found
with tempfile.NamedTemporaryFile(delete=False) as tmpf:
tmppath = tmpf.name

This appeared to be a comment missing the leading # so after "fixing"this and moving the tmppath = tmpf.name indenting back I got the following error.

^
SyntaxError: invalid syntax

unswindlexx.py
Traceback (most recent call last):
unswindlexx.py", line 60, in <module>
class PROCESS_BASIC_INFORMATION(Structure):
unswindlex.py", line 61, in PROCESS_BASIC_INFORMATI
ON
_fields_ = [('Reserved1', PVOID),
NameError: name 'PVOID' is not defined



Two questions:

Is there a better version of this script located elsewhere?

Am I missing a definitions file in my Python 2.6 installation?

I am running Windows XP Pro SP3 with the latest updates available.
yecam is offline   Reply With Quote
Old 12-20-2009, 08:59 PM   #173
volwrath
Guru
volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.volwrath ought to be getting tired of karma fortunes by now.
 
Posts: 704
Karma: 1001739
Join Date: Apr 2005
Location: Nashville, TN
Device: SGS3/PW2/Nexus72
Redownload and use the extension .pyw
volwrath is offline   Reply With Quote
Old 12-20-2009, 11:24 PM   #174
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 622
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by yecam View Post
The syntax error that I saw was
unswindlexx.py:722: Warning: 'with' will become a reserved
keyword in Python 2.6
If it's warning you about 'with' becoming a reserved word in Python 2.6, then you aren't running Python 2.6.
llasram is offline   Reply With Quote
Old 12-20-2009, 11:55 PM   #175
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,672
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
Great job LaBBa and I♥Cabbages!
=X= is offline   Reply With Quote
Old 12-21-2009, 12:19 AM   #176
yecam
Member
yecam began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Feb 2009
Device: BeBook
Quote:
Originally Posted by llasram View Post
If it's warning you about 'with' becoming a reserved word in Python 2.6, then you aren't running Python 2.6.
Actually, I am running version 2.6.1

Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)] on win32
yecam is offline   Reply With Quote
Old 12-21-2009, 05:32 AM   #177
i♥cabbages
Leafy greens connoisseur
i♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmos
 
Posts: 49
Karma: 21271
Join Date: Feb 2009
Device: PRS-505
Quote:
Originally Posted by yecam View Post
Actually, I am running version 2.6.1

Python 2.6.1 (r261:67517, Dec 4 2008, 16:51:00) [MSC v.1500 32 bit (Intel)] on win32
Oh, hilarity. Anyway, the line in question is definitely not a comment ('with' is now syntax which was tested in Python 2.5 and made non-optional in 2.6), and I'm also suspicious of the exact error -- are you sure you don't have a version of Python 2.5 kicking around which is taking precedent? Even if not, 2.6.1 is a kind of old version of Python 2.6 -- I'd try upgrading. If *that* doesn't work, try re-downloading via the pastie-page "download" link.
i♥cabbages is offline   Reply With Quote
Old 12-21-2009, 09:06 PM   #178
yecam
Member
yecam began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Feb 2009
Device: BeBook
Quote:
Originally Posted by i♥cabbages View Post
Oh, hilarity. Anyway, the line in question is definitely not a comment ('with' is now syntax which was tested in Python 2.5 and made non-optional in 2.6), and I'm also suspicious of the exact error -- are you sure you don't have a version of Python 2.5 kicking around which is taking precedent? Even if not, 2.6.1 is a kind of old version of Python 2.6 -- I'd try upgrading. If *that* doesn't work, try re-downloading via the pastie-page "download" link.
It works now with the latest version of Python 2.6.4. The 2.6.1 version was just too old I guess. I also had to install the Tcl/Tk option amongst all of the others in order to get all of the various import items listed in the new script. Everything now works as advertised.

Many thanks.
yecam is offline   Reply With Quote
Old 12-21-2009, 09:19 PM   #179
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 38,504
Karma: 19471833
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2), Sony PRS-650, Sony PRS-T1, nook STR, iPad 1, iPhone 5
i♥cabbages can you put in the comments section of unswindle.pyw that it needs Python 2.6.4?
JSWolf is offline   Reply With Quote
Old 12-22-2009, 08:44 AM   #180
Lilly
Guru
Lilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it isLilly knows what time it is
 
Lilly's Avatar
 
Posts: 688
Karma: 2090
Join Date: Dec 2007
Device: Sony PRS-505, PRS-900 & PRS-950, Amazon Kindle2
Quote:
Originally Posted by JSWolf View Post
i♥cabbages can you put in the comments section of unswindle.pyw that it needs Python 2.6.4?
I installed K4PC on my desktop (which I rarely use). While my laptop was running 2.6.4, my desktop was running 2.6.1 and the script worked on both. I updated to Python 2.6.4 on my deskstop last night and the script stopped working. I had to uninstall K4PC as an administrator and re-install it as such and everything worked again. But it was running perfectly fine with Python 2.6.1. Both computers are Vista Home Premium, 32 bit.
Lilly is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
discovering and loving this fb.2 reader.. oncdoc Astak EZReader 2 04-19-2010 07:05 PM
K4 Mac or PC Where are K4PC files? lmittell Amazon Kindle 3 01-06-2010 02:04 AM
Where is the PID on Pocket Pro, ADE and K4PC? rxsz Astak EZReader 7 12-20-2009 06:29 AM
Free on Kindle - Discovering Dani koland Deals, Freebies, and Resources (No Self-Promotion) 0 09-28-2009 10:57 AM
Kindle PID from Mobi PID - can anyone do it? delphidb96 Workshop 2 04-27-2009 05:42 PM


All times are GMT -4. The time now is 09:13 AM.


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