Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 12-02-2009, 07:31 PM   #136
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
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:
Originally Posted by KevinH View Post
Hi,

Actually erdr2pml.py does no html conversion at all. It just has the capability to unpack the **all** of the sections in the .pdb file. All of these extras can be discarded since they are actually recreated by Dropbook when dropping the pml file on. Most have already been commented out. So you can safely comment out chapters.txt and the link information too if you so desire.

As for the footnotes and sidebars, they are converted to pml markup and not xml code. Unless something has changed Dropbook did not handle either sidebars or footnotes done via xml properly? Has that changed? If so, then then the comments in the code can easily be used to put in the xml code for Dropbook.

Your change to clean up high chars in file for Mac OS is quite useful. Thanks.

It is too bad this damn thing can't be properly hosted and developed just like any other piece of open source software.

Oh well.

KevinH
I believe it can so long as there is no DRM removal code included.

Dale
DaleDe is offline   Reply With Quote
Old 12-02-2009, 09:10 PM   #137
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,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
KevinH is online now   Reply With Quote
Advert
Old 12-29-2009, 01:30 AM   #138
ChristopherTD
Addict
ChristopherTD ought to be getting tired of karma fortunes by now.ChristopherTD ought to be getting tired of karma fortunes by now.ChristopherTD ought to be getting tired of karma fortunes by now.ChristopherTD ought to be getting tired of karma fortunes by now.ChristopherTD ought to be getting tired of karma fortunes by now.ChristopherTD ought to be getting tired of karma fortunes by now.ChristopherTD ought to be getting tired of karma fortunes by now.ChristopherTD ought to be getting tired of karma fortunes by now.ChristopherTD ought to be getting tired of karma fortunes by now.ChristopherTD ought to be getting tired of karma fortunes by now.ChristopherTD ought to be getting tired of karma fortunes by now.
 
ChristopherTD's Avatar
 
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!
ChristopherTD is offline   Reply With Quote
Old 02-02-2010, 10:59 PM   #139
guesswho602
Junior Member
guesswho602 began at the beginning.
 
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?
guesswho602 is offline   Reply With Quote
Old 02-05-2010, 04:00 PM   #140
Jane A
Addict
Jane A 's soul has travelled the oceans between the stars.Jane A 's soul has travelled the oceans between the stars.Jane A 's soul has travelled the oceans between the stars.Jane A 's soul has travelled the oceans between the stars.Jane A 's soul has travelled the oceans between the stars.Jane A 's soul has travelled the oceans between the stars.Jane A 's soul has travelled the oceans between the stars.Jane A 's soul has travelled the oceans between the stars.Jane A 's soul has travelled the oceans between the stars.Jane A 's soul has travelled the oceans between the stars.Jane A 's soul has travelled the oceans between the stars.
 
Posts: 241
Karma: 129881
Join Date: Jan 2009
Location: SoCal
Device: Kindle Paperwhite
Quote:
Originally Posted by guesswho602 View Post
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?
If I actually try to convert a DRM'd file on Calibre it just warns me that the file is DRM protected. So I suspect your problem does not have anything to do with DRM. Not sure that this actually helps...
Jane A is offline   Reply With Quote
Advert
Old 02-05-2010, 10:06 PM   #141
jabberwock_11
Addict
jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.
 
jabberwock_11's Avatar
 
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?
jabberwock_11 is offline   Reply With Quote
Old 02-05-2010, 11:49 PM   #142
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 jabberwock_11 View Post
Name_Of_Book.html
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.
wallcraft is offline   Reply With Quote
Old 02-06-2010, 08:41 AM   #143
wayrad
Fanatic
wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.
 
Posts: 551
Karma: 1121392
Join Date: May 2008
Location: USA
Device: HTC One M8
Quote:
Originally Posted by jabberwock_11 View Post
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.
There's no need to do that, you can strip DRM from a file that has never been opened.

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.
wayrad is offline   Reply With Quote
Old 02-06-2010, 10:45 AM   #144
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,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
KevinH is online now   Reply With Quote
Old 02-06-2010, 08:39 PM   #145
jabberwock_11
Addict
jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.
 
jabberwock_11's Avatar
 
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?
jabberwock_11 is offline   Reply With Quote
Old 02-06-2010, 08:42 PM   #146
wayrad
Fanatic
wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.wayrad ought to be getting tired of karma fortunes by now.
 
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.
wayrad is offline   Reply With Quote
Old 02-07-2010, 11:01 AM   #147
jabberwock_11
Addict
jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.jabberwock_11 ought to be getting tired of karma fortunes by now.
 
jabberwock_11's Avatar
 
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.
jabberwock_11 is offline   Reply With Quote
Old 02-07-2010, 11:14 AM   #148
kennyc
The Dank Side of the Moon
kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.
 
kennyc's Avatar
 
Posts: 35,896
Karma: 119230421
Join Date: Sep 2009
Location: Denver, CO
Device: Kindle2; Kindle Fire
Glad you got it worked out!
kennyc is offline   Reply With Quote
Old 02-10-2010, 09:55 PM   #149
deliiria
Junior Member
deliiria began at the beginning.
 
deliiria's Avatar
 
Posts: 2
Karma: 10
Join Date: Dec 2009
Location: Calgary, Alberta
Device: jetBook Lite
Quote:
Originally Posted by guesswho602 View Post
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?
I am also getting the same error on several new pdb books I just downloaded... you can open them in Calibre and copy the text and paste it to a new document in whatever word-processing software you use, but it's a big ol' pain the butt. bah.
deliiria is offline   Reply With Quote
Old 03-08-2010, 12:41 PM   #150
Almo0nd
Junior Member
Almo0nd began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2010
Location: Montevallo, AL
Device: MyTouch and Aldiko
Quote:
Originally Posted by wayrad View Post
Oh wow. I just downloaded tools.zip and tried the Ereader part...it's absolutely the bee's knees.
I have the tools, I have python, I paid for my book and downloaded it (a .pdb book from B&N) and I have no idea what the next step is. I have no programming knowledge.

Why should it be this flippin hard to buy a book and read it on the device of my choosing?!
Almo0nd is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:06 PM.


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