03-29-2009, 01:17 PM | #1 | |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
ereader2ereader in two steps
Required:
Dropbook/MakeBook (tools to make eReader books) ereader2html.py One time setup: Install DropBook or MakeBook (obsolete java command line tool) http://www.ereader.com/ereader/help/...k/download.htm Make changes to erader2html: Quote:
Insert after line 470 keep the same indent as line 470 os.makedirs(outdir + '\\book_img') Insert after line 476 keep the same indent as line 476 file(os.path.join(outdir + '\\book_img', name), 'wb').write(contents) Insert after line 479 keep the same indent as line 479 file(os.path.join(outdir, 'book.pml'),'wb').write(er.getText()) Now for the process: Step 1: Run the ereader2html tool. Step 2: Open DropBook. And drag and drop the book.pml file on the drop book application. (this step will produce a file book.pdb in the same directory) =X= Last edited by =X=; 12-16-2009 at 05:08 PM. Reason: error it's ereader2html.py not ereader2html.pl |
|
03-29-2009, 01:37 PM | #2 |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
This seems to be an update to version 0.03. I guess it could be renamed ereader2pml, although it is writing both html and pml.
Is there any reading software for eReader ebooks that only accepts DRM-free ebooks? Even if not, this allows changes to be made to the PML, e.g. to fix errors. |
Advert | |
|
03-29-2009, 05:25 PM | #3 | ||
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
I suppose a better approach would be to remove the lines that produce the html and rename it ereader2pml. Quote:
=X= |
||
03-30-2009, 02:15 AM | #4 | |
Wizard
Posts: 2,999
Karma: 300001
Join Date: Jan 2007
Location: Citrus Heights, California
Device: TWO Kindle 2s, one each Bookeen Cybook Gen3, Sony PRS-500, Axim X51V
|
Quote:
Strangest thing. I inserted the lines - as written - in the appropriate places, and, of course, Under Python 2.6 it don't work. Now eReader2HTML.py works fine, but the new version, which I renamed eReader2pml.py, seems to think all three lines are bad/wrong/flawed. What gives? Derek |
|
03-30-2009, 11:20 AM | #5 | |
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
Make sure you indent with a TAB and not with spaces, or else the script will not work. =X= |
|
Advert | |
|
03-30-2009, 02:44 PM | #6 |
Wizard
Posts: 2,999
Karma: 300001
Join Date: Jan 2007
Location: Citrus Heights, California
Device: TWO Kindle 2s, one each Bookeen Cybook Gen3, Sony PRS-500, Axim X51V
|
|
03-30-2009, 02:47 PM | #7 |
Wizard
Posts: 2,999
Karma: 300001
Join Date: Jan 2007
Location: Citrus Heights, California
Device: TWO Kindle 2s, one each Bookeen Cybook Gen3, Sony PRS-500, Axim X51V
|
|
03-30-2009, 02:53 PM | #8 |
Resident Curmudgeon
Posts: 74,015
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Any chance eReader2HTML.py can be modified so it will go eReader to HTML without having to have a DRM infected eReader file?
|
03-30-2009, 03:25 PM | #9 | ||
Wizard
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
Quote:
Quote:
https://www.mobileread.com/forums/sho...2&postcount=40 It actually does a better job converting eReader to HTML than the ereader2html.py script. =X= |
||
03-30-2009, 07:49 PM | #10 | |
Wizard
Posts: 2,999
Karma: 300001
Join Date: Jan 2007
Location: Citrus Heights, California
Device: TWO Kindle 2s, one each Bookeen Cybook Gen3, Sony PRS-500, Axim X51V
|
Quote:
Why, oh why, cannot people write these in C++, Java or Pascal (Delphi/FPC/Kylix)??? Derek |
|
04-01-2009, 08:58 PM | #11 | |
Connoisseur
Posts: 57
Karma: 307
Join Date: Oct 2008
Device: PalmOS PDA
|
Quote:
I programmed for many years in C++. I pray I never have to again. (C or C#, maybe.) In any case, library support is poor and nonportable for it. Pascal is an even worse choice. Java would have at least been portable, but I've always found the integration of Java with the unix environment to be hideously clunky, and again, the free software library availability is close to nonexistent. When Java gets the equivalent of CPAN or even PyPI, I'll re-evaluate it. What problem exactly are you having with Perl? |
|
04-02-2009, 01:32 AM | #12 | |
Wizard
Posts: 2,999
Karma: 300001
Join Date: Jan 2007
Location: Citrus Heights, California
Device: TWO Kindle 2s, one each Bookeen Cybook Gen3, Sony PRS-500, Axim X51V
|
Quote:
|
|
04-02-2009, 02:04 PM | #13 |
Wizard
Posts: 1,229
Karma: 543210
Join Date: Feb 2008
Location: Gatlinburg, Tennessee
Device: Kindles: Paperwhite Signature Ed., Oasis 2, Voyage
|
Can't agree at all WRT Python. Yes, it has issues with whitespace that some people freak out over, but the language makes it easy to produce clean, modular and very readable code.
|
04-03-2009, 06:10 PM | #14 | |
Connoisseur
Posts: 57
Karma: 307
Join Date: Oct 2008
Device: PalmOS PDA
|
Quote:
As for the portability of C/C++, I have to guess that either you haven't tried to write much cross-platform code yourself, or that you seem to be under the impression that it's a good idea to rewrite everything in the world except the standard libraries from scratch, because other than those standard libraries, the code is *not* trivially portable, particularly where a GUI is involved, and in fact there's a whole cottage industry (the autotools/libtool chain) built around trying to bang it into something that will plausibly compile and run even inside a Unix environment, much less between Unix/Windows/MacOS. You can't just grab KDE, stick it on a Windows box, and run 'nmake' (or at least, if you can, there's an entire project dedicated to attempting to port it that could use your help). Unless I go out of my way to use non-portable W32-only components in Perl, I can be reasonably confident that my code will not require substantial porting effort to be usable anywhere Perl runs. I can't say this about C, C++, or Pascal. C++ is particularly bad: you can't even guarantee that code written in C++ will continue to link with libraries of the same version on the same operating system after a compiler upgrade, because the ABI has changed twice in the last half decade alone! Java would be portable, but I find even well-written Java code difficult to read due to sheer verbosity, and again, there is no other language with as large a portable library collection as Perl. Python is only now catching up on the basics, Ruby is a long way off, and nobody else even seems to be trying. When I wrote EBook::Tools, I didn't have to write a ZIP format parser/extracter, a bit vector routine, an INI file parser, a UUID generator, a complex date manipulator, a mime-type detector, an HTML tree parser, an HTML text wrapper, an image parser, a PalmDB parser/writer, or an XML tree builder that allowed for custom search methods, or a GUI builder. I didn't have to come up with a mechanism by which my library could be easily embedded into a CGI script on a webserver. But quite seriously, if you can point me to a reliable method by which I can find portable versions of all of those components in C# (and by portable, I mean "an executable using them can be trivially cross-compiled or at least trivially recompiled and installed by the end-user with free software for any given Unix, MS Windows, and MacOSX"), I'll be happy to give it a close look. I understand that the Mono project has made great strides in recent years, so this might even be possible. I might even get over my distaste for all things Java if you can demonstrate that they do, in fact, have a decent library repository hidden away somewhere. I'll contemplate other languages, if you can demonstrate that they've got the properties I need. I'm a firm believer in using the right tool for any given project. In this case, I happen to believe that the right tool was Perl. Lecture aside, however, you didn't answer my question: what is it that you want to do with my library or the associated command-line tool that isn't working for you? Is it just that it isn't GUI-driven? I'm actually working on a GUI tool, but it's going very slowly as I started a new job and haven't had much time for hacking lately. |
|
04-14-2009, 12:46 PM | #15 | |
Zealot
Posts: 101
Karma: 218
Join Date: Aug 2008
Device: iPad
|
Quote:
I've been trying to find a way to do an ereader2pdb (just strip the drm), and your additional coding to the current ereader2html.py does the jobe nicely. I've compared the original purchased-drm-laden pdb with the resulting pdb created by this ereader2ereader (or ereader2pml.py as you suggested), and it is an apple-to-apple copy (on display), albeit difference in filesize. Again, thanks for the nice tool. tlpp |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Just Got A Kindle, Next Steps? | grechzoo | General Discussions | 17 | 05-23-2010 09:20 AM |
Best first steps with Kindle | ficbot | Amazon Kindle | 16 | 01-16-2010 06:20 PM |
Seriously thoughtful 1st steps to usefull AR being taken. | ahammer | Lounge | 5 | 09-02-2009 12:10 PM |
iLiad Please, help me with simple compiling first steps | Sunn Sunn | iRex Developer's Corner | 7 | 07-22-2008 04:11 PM |
interim conversion steps | ambertape | Sony Reader | 6 | 04-14-2008 01:34 PM |