Active Topics

 



Notices


Reply
Thread Tools
PinCushionQueen's Avatar
Posts: 538 | Thanked: 168 times | Joined on Dec 2007 @ Seattle
#11
Originally Posted by wallcraf View Post
There is now an ereader2html python script from the same author as mobidedrm, see Darkreverser's Weblog. Note that, in the US, format shifting (e.g. from ereader to HTML) for personal use is protected as "fair use" under copyright law, but many legal commentators suggest that striping DRM in the process is not protected. On the other hand, if it is for personal use (a) who will know and (b) who is hurt?
Thanks - I'd already stumbled upon that when I went to grab the Mobipocket files . The eReader2html script works like a charm and I've already bought a couple of new books from eReader and reformatted them using the script. My conscience is clear - I've bought the books and your credit card number is needed to use the script similar as to when opening a book on a Palm device. I'm not sharing the files with anyone either.
__________________
When you wish upon a star, your dreams really can come true... Unless it's an asteroid hurtling towards earth that will destroy all life.
 
Pushwall's Avatar
Posts: 373 | Thanked: 110 times | Joined on Jul 2007
#12
Originally Posted by GeraldKo View Post
What I haven't figured out, I think, is: How do you tell the script What File to act on? Or is there something else I've done wrong?

Any help? Thanks in advance!
OMG this thing works!

Run the PythonRun Editor. Read the Intro of the Non-Programmers Guide in the Help section. This shows you how to save and run scripts. Run the ereader2html.py script (the script text file you downloaded from the blog and renamed). This will give you the syntax for conversion:
Usage:
ereader2html infile.pdb outdir "your name" credit_card_number

So what you do is run that script again, and in the arguments line put in:
infile.pdb outdir "your name" credit_card_number

FWIW, my ereader book 'WorldWarZ.pdb' I put in my script directory 'c:\Files' and I had created a directory called 'ereader' under my script directory for the output. And you only need the last 8 digits of your credit card number. So my arguments line looked something like this:
WorldWarZ.pdb ereader "Push Wall" 12345678

Good luck!
 

The Following User Says Thank You to Pushwall For This Useful Post:
Posts: 1,950 | Thanked: 1,174 times | Joined on Jan 2008 @ Seattle, USA
#13
Originally Posted by Pushwall View Post

Run the PythonRun Editor. Read the Intro of the Non-Programmers Guide in the Help section. This shows you how to save and run scripts.
OK, so I want to read the Intro of the Non-Programmers Guide in the Help section of the PythonRun Editor. Unfortunately, I'm already stumped: How do I run the PythonRun Editor?

(Sorry about my high level of ignorance on this stuff. I really am trying on my own, entering "pythonrun" in Xterm, etc. Also, I found that both in Windows and in Xterm, when running Python from the command line, that entering "help" gets me nowhere; not sure what I'm doing wrong.)
__________________
.
. .

Help Save This Forum
for N8x0/Diablo Users! Register and Vote for Solution #1 on this Brainstorm. (The Solution will let you see New Posts with any threads you choose -- like the N900 and Maemo5/Fremantle threads -- filtered out.) (To understand the Solution better, see these posts #17, #18, and #19.)
 
Pushwall's Avatar
Posts: 373 | Thanked: 110 times | Joined on Jul 2007
#14
In WindowsXP, there should be a menu item in Start/All Programs called ActiveState ActivePython 2.5. In there is the PythonWin Editor that you need to run. Once you get that running just click on Help on the top menu.
 

The Following User Says Thank You to Pushwall For This Useful Post:
Posts: 1,950 | Thanked: 1,174 times | Joined on Jan 2008 @ Seattle, USA
#15
Pushwall, thanks very much. Turned out that I had used an ActiveState Python installer that didn't have everything -- it didn't put *anything* in the Start Menu (that was the tip-off) and didn't have manuals, help, ... nothing but the basic program to be run from the command line. It took some fiddling once I had the more complete Python installation, but ... success! How sweet it is.
__________________
.
. .

Help Save This Forum
for N8x0/Diablo Users! Register and Vote for Solution #1 on this Brainstorm. (The Solution will let you see New Posts with any threads you choose -- like the N900 and Maemo5/Fremantle threads -- filtered out.) (To understand the Solution better, see these posts #17, #18, and #19.)
 
Posts: 1,950 | Thanked: 1,174 times | Joined on Jan 2008 @ Seattle, USA
#16
OK, now I can run the script in Windows XP by using the Run function in ActiveState Python. However, ultimately I would like to be able to run the script on the Tablet. So far, I can't figure out how to run the script even from the XP command line or in Python's interactive mode on Windows XP, let alone on the Tablet.

On the Tablet, I find that if I type python at the $ prompt in Xterm, python launches and I get the >>> python prompt. But I'm stuck after that. If I just put in the script and arguments, I get back a syntax error.

I've tried, for example:

mobidedrm.py stick.prc stickX.prc VVBQTEW$DJ

When, in the Python Run function under Windows, I put in mobidedrm.py as the script and I put in the rest of what I have there as the argument, it creates a new, unencrypted file "stickX.prc So my arguments are right and my script works.

My reading makes me wonder about Paths and where the script should be. (I put in a path to Python in my environment variable in XP; that didn't seem to help; and I have no idea what to do in that regard, if anything, in Maemo.)

Is Python runtime not the right program for running a script? I've seen references to iPython -- is that what I should be running? Any ideas?

Thanks very much, once again!
__________________
.
. .

Help Save This Forum
for N8x0/Diablo Users! Register and Vote for Solution #1 on this Brainstorm. (The Solution will let you see New Posts with any threads you choose -- like the N900 and Maemo5/Fremantle threads -- filtered out.) (To understand the Solution better, see these posts #17, #18, and #19.)
 
Pushwall's Avatar
Posts: 373 | Thanked: 110 times | Joined on Jul 2007
#17
Sorry I don't know enough about Python to answer your questions. I only got as far as reading that first section in the Non-Programmers Guide since that's all I needed for my purposes. Anyone else?
 
Posts: 422 | Thanked: 244 times | Joined on Feb 2008
#18
Hi all,

For a moment there, I thought I finally had a ebook solution. I have many ereader books. The pastebin for ereader2html has "expired or deleted".

If any of you still have it, please let me know - by PM or however. I'd really appreciate it...
 
Posts: 157 | Thanked: 96 times | Joined on Nov 2007 @ Oxford, UK
#19
Originally Posted by GeraldKo View Post
I've tried, for example:

mobidedrm.py stick.prc stickX.prc VVBQTEW$DJ

When, in the Python Run function under Windows, I put in mobidedrm.py as the script and I put in the rest of what I have there as the argument, it creates a new, unencrypted file "stickX.prc So my arguments are right and my script works.

My reading makes me wonder about Paths and where the script should be. (I put in a path to Python in my environment variable in XP; that didn't seem to help; and I have no idea what to do in that regard, if anything, in Maemo.)

Is Python runtime not the right program for running a script? I've seen references to iPython -- is that what I should be running? Any ideas?
No, at the >>> prompt you can enter python statements, but to run a script you do it from the shell prompt. Just type python followed by the script name and any arguments:

$ python mobidedrm.py stick.prc stickX.prc VVBQTEW$DJ
 

The Following User Says Thank You to Duncan For This Useful Post:
Posts: 46 | Thanked: 4 times | Joined on Oct 2005
#20
Originally Posted by paulkoan View Post
For a moment there, I thought I finally had a ebook solution. I have many ereader books. The pastebin for ereader2html has "expired or deleted".
It may be that the pastebin administrator is taking down the code, but see DarkReverser's weblog comment-35.
 

The Following User Says Thank You to wallcraf For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 23:36.