![]() |
#136 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#137 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,732
Karma: 5703586
Join Date: Nov 2009
Device: many
|
proper xml footnotes and sidebars in pml
Hi Jim,
Thanks for that explanation. I could never figure out why Dropbook did not work but what you said about the modified names/ids makes sense. So I have edited my copy of erdr2pml.py to automatically put out proper xml sidebars and footnotes in the pml, and to use the bookname + _img/" as the name of the directory to store images in. I will also add in your cleanup stuff. And I have edited my copy of xpml2xhtml.py to properly translate xml based sidebars and footnotes. Thanks! Kevin |
![]() |
![]() |
Advert | |
|
![]() |
#138 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 343
Karma: 1010002
Join Date: Apr 2008
Location: London. UK
Device: Marvin Reader on iPad Air (via Calibre)
|
Many thanks for all the kind and clever people who have contributed to this thread. I can now remove the DRM from my eReader purchases and not have to remember the dozen or so permutations of my name and credit card numbers!
|
![]() |
![]() |
![]() |
#139 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Feb 2010
Device: Kindle 2
|
I've been fighting with converting a suspected DRM .pdb to html, and then using Calibre to get to mobi for my kindle 2. I've gotten this error with ereader2html, however, "incorrect ereader version 10 (error 1)" which as far as I have found means that the file in not DRM-protected. However, when I try to convert the file using Calibre to mobi - I get an error message that just lists strings of variables. Has anyone see this before?
|
![]() |
![]() |
![]() |
#140 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 241
Karma: 129881
Join Date: Jan 2009
Location: SoCal
Device: Kindle Paperwhite
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#141 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 231
Karma: 1591305
Join Date: Nov 2008
Location: Savannah, GA USA
Device: Kindle Paperwhite 2, Aluratek Libre Pro
|
Hi there folks,
I use mobidedrm on a fairly regular basis and have started using ereader2html, I feel confident in my ability to use the command prompt window and in knowing the little things that need to be done to remove drm, but this python script is vexing me. To say that it works inconsistently would be an understatement. I usually have to try three or four times before the book is actually stripped of drm...my latest try is on a book that I just purchased from B&N... I cut and paste the downloaded book from my download folder and into a folder for my ereader books and then open the book in my computer's ereader software so that I can key in my name and card number to "unlock" the book before I attempt to strip the drm. I am getting an error that says: "IndexError: string index out of range" It seems to create the folder with an uncomplete html version of the book, but it is unreadable and seems to have simply started the process. I do not understand why this is, nor why I can not routinely use this script to remove drm without issue... my command looks like this: "eReader2html003.py Name_Of_Book.pdb Name_Of_Book.html "My Name" 12345678" Am I doing something wrong? I have stripped the drm off of two other B&N purchases, so I don't know what's going on with this one...Any ideas? |
![]() |
![]() |
![]() |
#142 |
reader
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
This should be outdir, i.e. a folder name. The folder does not have to exist, but it should be a folder (just for that one ebook) because there may be images as well a .html file.
A "dir" is a directory (in Unix/Linux), which is just another name for folder. So "outdir" from the scripts usage message is somewhat clear to a Linux user, but not to a Windows user. Last edited by wallcraft; 02-05-2010 at 11:51 PM. |
![]() |
![]() |
![]() |
#143 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 551
Karma: 1121392
Join Date: May 2008
Location: USA
Device: HTC One M8
|
Quote:
I had lots of trouble at first too, and ended up with a rather convoluted (but reliable) way of doing it with ActivePython. Not sure how much detail it's OK to go into here, but it involves placing book files in the Python25 directory and working via the Pythonwin edit window... oh, and I shorten book names to a single word, although by now I'm a bit fuzzy on why I found that necessary. Last edited by wayrad; 02-06-2010 at 08:49 AM. |
|
![]() |
![]() |
![]() |
#144 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,732
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi,
Might I suggest you ask for help on the "Dark Reverser's New Blog" (a Google search term). People there have helped many others in the past and there are now experimental graphical user interface versions of these programs that all you do is unzip and double-click (assuming you have python installed) to run them. On windows there will soon be versions that you unzip and double-click without needing any python installed at all (precompiled with py2exe). I am sure they would appreciate your testing the gui scripts so add your comment to the mess at Dark Reverser's New Blog (I recommend using the rss 2.0 feed link at the very very top of that page to actually see the posts in some sort of order) and I am sure someone will point you to the new easier to use tools (or post them for you) so that you can give things a try. BTW: ereader2htmlv03.py is very very old and will not handle books with footnotes, and sidebars and things. The versions at the end of the comments on the Dark Reverser's new blog are the most recent. Hope this helps. KevinH |
![]() |
![]() |
![]() |
#145 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 231
Karma: 1591305
Join Date: Nov 2008
Location: Savannah, GA USA
Device: Kindle Paperwhite 2, Aluratek Libre Pro
|
ok, here is the update...
Firstly the use of an outdir is not needed as the script creates its own folder in the current directory (which is evident by the other two books which I removed drm from). I did attempt the outdir idea just to be sure, but ended up with the same error. Second, I downloaded the newer version of the ereader2html.py, but still end up with the same error. The error starts of with a traceback and then a long string of file sections completed by the IndexError: string index out of range as I stated I have had unresolvable issues only with this ebook...I even retried the previously successful files and had no problems...this one book is driving me nuts. if the process works for other books, then what in the world would make this single book different? |
![]() |
![]() |
![]() |
#146 |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 551
Karma: 1121392
Join Date: May 2008
Location: USA
Device: HTC One M8
|
Oh wow. I just downloaded tools.zip and tried the Ereader part...it's absolutely the bee's knees.
![]() ![]() |
![]() |
![]() |
![]() |
#147 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 231
Karma: 1591305
Join Date: Nov 2008
Location: Savannah, GA USA
Device: Kindle Paperwhite 2, Aluratek Libre Pro
|
Ok, so in the end I figured out that this particular book (The Road by Cormac McCarthy) was somehow different...I bought a few other cheap books from B&N to experiment on and could strip DRM using ereader2html no problem, but the one I wanted wouldn't work.
I ended up using ereader2pml and then converting it to LRF using Calibre. I don't know why ereader2pml worked, but not ereader2html. In the end I still got what I wanted, and I couldn't have done it without the suggestions that you folks gave me, so thank you. |
![]() |
![]() |
![]() |
#148 |
The Dank Side of the Moon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 35,896
Karma: 119230421
Join Date: Sep 2009
Location: Denver, CO
Device: Kindle2; Kindle Fire
|
Glad you got it worked out!
|
![]() |
![]() |
![]() |
#149 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Dec 2009
Location: Calgary, Alberta
Device: jetBook Lite
|
Quote:
|
|
![]() |
![]() |
![]() |
#150 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Mar 2010
Location: Montevallo, AL
Device: MyTouch and Aldiko
|
Quote:
Why should it be this flippin hard to buy a book and read it on the device of my choosing?! |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with python (ereader2html) stuff? | diana.stout | Reading and Management | 4 | 05-30-2010 08:48 AM |
ereader2html error. | GatorDeb | Workshop | 13 | 10-10-2009 08:15 AM |
Error in eReader2Html - Help? | rleguillow | Other formats | 2 | 07-05-2009 04:11 PM |
How to change ereader2html.txt to ereader2html.py? | jodier | Workshop | 8 | 01-26-2009 11:09 AM |
Need help with ereader2html. | GatorDeb | Workshop | 6 | 09-27-2008 11:40 AM |