Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 01-25-2009, 03:53 AM   #106
pthwaite
Fanatic
pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.
 
pthwaite's Avatar
 
Posts: 597
Karma: 430
Join Date: Aug 2008
Location: Ellesmere Port, UK
Device: DR1000S Sony PRS505 iPad iPhone
Sorry chaps,

I wasn't trying the full command, to actually do a book, just trying to run the script as I assumed it was like the mobi one whereby it would at least give the information on what it was, so I was running, from Terminal:

Howard:~ Howard$ /Users/Howard/Desktop/Ereader2html/ereader2html.py
-bash: /Users/Howard/Desktop/Ereader2html/ereader2html.py: Permission denied
Howard:~ Howard$

I thought I'd see that I could a least run it before buying an encrypted book now that I cannot seem to buy the Mobi ones from my usual sources. (I'm in the UK).

I only have a DRM free book at present and I know the script doesn't work on them. However I thought I'd at least get a set of running instructions, ie the usual how to use and format. (The script itself seems to suggest I should)

regards
pthwaite is offline   Reply With Quote
Old 01-25-2009, 12:35 PM   #107
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,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Try: python ereader2html.py

The reason for this suggestion is that under Unix a file must have "execute" permission to be used as a stand-alone command. The Mac seems to be a bit different, but I think something similar is going on. I don't know how to change permissions on a Mac, but python should still be able to execute the script directly. You should then get the usage message you are looking for.
wallcraft is offline   Reply With Quote
Advert
Old 01-25-2009, 01:59 PM   #108
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by wallcraft View Post
The reason for this suggestion is that under Unix a file must have "execute" permission to be used as a stand-alone command. The Mac seems to be a bit different, but I think something similar is going on. I don't know how to change permissions on a Mac, but python should still be able to execute the script directly. You should then get the usage message you are looking for.
You use chmod just like you do in Linux.

chmod 755 ereader2html.py

But, those scripts don't have a shebang in them. So, bash won't know how to run them. If you add the shebang it should work. Also, I have found that I needed to change the line endings to Unix type rather than the DOS type that was in the files that I downloaded.

But passing it to python should work fine even if it isn't marked executable:

python ereader2html.py

Should return a usage banner.

BOb
pilotbob is offline   Reply With Quote
Old 01-25-2009, 02:15 PM   #109
pthwaite
Fanatic
pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.pthwaite has a complete set of Star Wars action figures.
 
pthwaite's Avatar
 
Posts: 597
Karma: 430
Join Date: Aug 2008
Location: Ellesmere Port, UK
Device: DR1000S Sony PRS505 iPad iPhone
Wallcraft & Pilotbob. Many thanks. Stuffing Python in front worked. I had tried making the script "executable" but that went pear shaped too.
Now a happy bunny & off to try a book :-)
pthwaite is offline   Reply With Quote
Old 02-07-2009, 05:51 PM   #110
mukoan
Lord Of All That's Beige
mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.
 
mukoan's Avatar
 
Posts: 105
Karma: 86518
Join Date: Jan 2009
Location: Australia
Device: Kindle Paperwhite
Hi,

I haven't had any issues using ereader2html on several secure eReader books I've bought on fictionwise... however I noticed today that although I could convert Iain Banks "Use of Weapons", I noticed that a lot of the punctuation appears to be screwed... in particular, quotes.

eg, instead of:
"See anything?", rumbled the voice under the table.

I get:
See anything? rumbled the voice under the table.

Any suggestions on getting around this?

Thanks...
mukoan is offline   Reply With Quote
Advert
Old 02-07-2009, 06:02 PM   #111
simond
Fanatic
simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.
 
Posts: 532
Karma: 1062755
Join Date: Aug 2005
Location: London, UK
Device: Kobo Aura One, iPad, iPhone
I saw that too but didn't get around to looking to fix it as I don't often buy eReader, so far I've just ignored that, but really should check out how east it'd be to fix the HTML. I don't know python so I'm not planning to check out the script itself!
simond is offline   Reply With Quote
Old 02-07-2009, 06:14 PM   #112
mukoan
Lord Of All That's Beige
mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.
 
mukoan's Avatar
 
Posts: 105
Karma: 86518
Join Date: Jan 2009
Location: Australia
Device: Kindle Paperwhite
This seems to be the only novel I've had issues with. Everything else I've converted has been no problem... I wonder why it's different?

Anyways, if you figure out a workaround lemme know
mukoan is offline   Reply With Quote
Old 02-07-2009, 06:44 PM   #113
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: 79,575
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
When you view this eBook before it's converted, do you get proper quotes?
JSWolf is offline   Reply With Quote
Old 02-07-2009, 06:55 PM   #114
mukoan
Lord Of All That's Beige
mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.
 
mukoan's Avatar
 
Posts: 105
Karma: 86518
Join Date: Jan 2009
Location: Australia
Device: Kindle Paperwhite
Good question... I don't know. I use to own a Palm Tungsten T2... which has now died. Now I have a Sony PRS505, hence my need to convert. The only formats offered for this particular novel at fictionwise is Mobi or eReader. If there were any other formats available that would work for me I'd be more than happy to re-purchase again, (especially seeing as it's going for $1 a pop). I don't suppose there's a virtual pdb viewer I could run on my PC?
mukoan is offline   Reply With Quote
Old 02-07-2009, 07:10 PM   #115
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,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by mukoan View Post
I don't suppose there's a virtual pdb viewer I could run on my PC?
There is a Desktop eReader Reader, see eReader Downloads.

You could also download the Windows MOBI Reader (to get a PID) and buy the MOBI version. Its DRM is just as easy to strip as the eReader version.
wallcraft is offline   Reply With Quote
Old 02-07-2009, 09:05 PM   #116
mukoan
Lord Of All That's Beige
mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.
 
mukoan's Avatar
 
Posts: 105
Karma: 86518
Join Date: Jan 2009
Location: Australia
Device: Kindle Paperwhite
Thanks wallcraft, that did the trick.

First I viewed the eReader version with the PC viewer, and it indeed had correct punctuation... so then I bought the MOBI version, and it worked much better.

And I only had to buy the book twice!

Lucky it was only a buck!

Cheers again...
mukoan is offline   Reply With Quote
Old 02-08-2009, 01:15 AM   #117
simond
Fanatic
simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.
 
Posts: 532
Karma: 1062755
Join Date: Aug 2005
Location: London, UK
Device: Kobo Aura One, iPad, iPhone
Drawback is that I'm in the UK so can't re-buy it, oh well...
simond is offline   Reply With Quote
Old 02-08-2009, 01:20 AM   #118
mukoan
Lord Of All That's Beige
mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.
 
mukoan's Avatar
 
Posts: 105
Karma: 86518
Join Date: Jan 2009
Location: Australia
Device: Kindle Paperwhite
Quote:
Originally Posted by simond View Post
Drawback is that I'm in the UK so can't re-buy it, oh well...
Well I'm an aussie and had the same issue... but if you're getting the book from fictionwise, you can just change your profile to US and it will let you get it, (so long as you use MicroPay). You can then change it back and you can still download it from your bookshelf.
mukoan is offline   Reply With Quote
Old 02-08-2009, 01:55 AM   #119
simond
Fanatic
simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.simond ought to be getting tired of karma fortunes by now.
 
Posts: 532
Karma: 1062755
Join Date: Aug 2005
Location: London, UK
Device: Kobo Aura One, iPad, iPhone
May give that a try once I work out how to get them to let me buy another version of the same book

Edit: done, by creating a 2nd account...

Last edited by simond; 02-08-2009 at 02:20 AM.
simond is offline   Reply With Quote
Old 02-08-2009, 02:00 AM   #120
mukoan
Lord Of All That's Beige
mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.mukoan has not lost his or her sense of wonder.
 
mukoan's Avatar
 
Posts: 105
Karma: 86518
Join Date: Jan 2009
Location: Australia
Device: Kindle Paperwhite
Quote:
Originally Posted by simond View Post
May give that a try once I work out how to get them to let me buy another version of the same book
Yeah that one threw me off for a bit too... but you just have to go to the book detail where it gives you a dropdown combo box of the different formats... then choose the mobi format and add to cart. If you just choose add to cart one level up, (i.e. where it has no drop down box), it says you already have it and won't let you get it.
mukoan is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KindleUnpack (MobiUnpack): Extracts text, images and metadata from Kindle/Mobi files adamselene Kindle Formats 1311 06-26-2024 11:17 AM
Mobipocket Decoder Tool Nate the great Kindle Formats 391 01-13-2011 10:44 PM
Secure Mobipocket Decoder ebookfab Kindle Formats 3 12-09-2008 08:50 PM
Secure Mobipocket Decoder v0.3 Aenea Kindle Formats 74 07-10-2008 09:57 AM
Secure Mobipocket Decoder is no more... Aenea Kindle Formats 26 04-12-2008 09:53 AM


All times are GMT -4. The time now is 10:59 PM.


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