Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 11-16-2009, 09:19 PM   #121
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 shrktank View Post
where can I download and find the ereader2html.py?
The best place to start looking is the comments to the Dark Reverser's weblog. You want a recent version, so start from the end and work backwards. The most recent stable version is 0.07.

Scripts from pastebin download as .txt which needs to be renamed .py.
wallcraft is offline   Reply With Quote
Old 11-23-2009, 11:23 PM   #122
FizzyWater
You kids get off my lawn!
FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.
 
FizzyWater's Avatar
 
Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
My suggestion would be to keep your older versions as well. I have books the version 8/9 crash on that I have to run on the 3/4 versions.
FizzyWater is offline   Reply With Quote
Advert
Old 11-24-2009, 11:01 AM   #123
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,765
Karma: 6000000
Join Date: Nov 2009
Device: many
Re: Crashes

Regarding the crashes of the newer versions:

Do you think you could try the very latest erdr2pml.py and let people know if it still crashes as well. There were a number of fixes in 0.08 and 0.09 that only work for newer type books that might not have been properly protected from being invoked when used on the older books.

That have been fixed I am told but ... you never know.
KevinH is offline   Reply With Quote
Old 11-24-2009, 01:00 PM   #124
delphidb96
Wizard
delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.delphidb96 ought to be getting tired of karma fortunes by now.
 
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:
Originally Posted by KevinH View Post
Regarding the crashes of the newer versions:

Do you think you could try the very latest erdr2pml.py and let people know if it still crashes as well. There were a number of fixes in 0.08 and 0.09 that only work for newer type books that might not have been properly protected from being invoked when used on the older books.

That have been fixed I am told but ... you never know.
There's an erdr2pml.py??? And you're saying there's a v0.08 and v0.09 ereader2html.py? Wow! I am *SO* behind the times!

Derek
delphidb96 is offline   Reply With Quote
Old 11-24-2009, 01:34 PM   #125
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,898
Karma: 119230421
Join Date: Sep 2009
Location: Denver, CO
Device: Kindle2; Kindle Fire
I found a 0.9 at the usual place, not a .8 though

Have not tried it yet.
kennyc is offline   Reply With Quote
Advert
Old 11-25-2009, 05:01 PM   #126
FizzyWater
You kids get off my lawn!
FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.FizzyWater ought to be getting tired of karma fortunes by now.
 
FizzyWater's Avatar
 
Posts: 4,220
Karma: 73492664
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Oasis 2 and Libra H2O and half a dozen older models I can't let go of
Quote:
Originally Posted by KevinH View Post
Regarding the crashes of the newer versions:

Do you think you could try the very latest erdr2pml.py and let people know if it still crashes as well. There were a number of fixes in 0.08 and 0.09 that only work for newer type books that might not have been properly protected from being invoked when used on the older books.

That have been fixed I am told but ... you never know.

I'm willing to run the erdr2pml.py if I can find it on a non-torrent site. I don't do torrents. I can't read PML, though, so all I could tell you is if I got errors.

EDIT: Is this a part of Calibre 0.6? I still can't run that on my computer.

Last edited by FizzyWater; 11-25-2009 at 09:37 PM.
FizzyWater is offline   Reply With Quote
Old 11-27-2009, 04:25 PM   #127
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,765
Karma: 6000000
Join Date: Nov 2009
Device: many
Search for "Dark Reversers Blog" and read it (near the end) to fid links (non-torrent).

KevinH
KevinH is offline   Reply With Quote
Old 11-30-2009, 07:12 PM   #128
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
Line
Code:
imagedir = "images/"
needs to be changed with

Code:
imagedir = bookname + "_img/"
to work with dropbook
=X= is offline   Reply With Quote
Old 12-02-2009, 01:42 PM   #129
macr0t0r
Connoisseur
macr0t0r doesn't littermacr0t0r doesn't litter
 
macr0t0r's Avatar
 
Posts: 91
Karma: 108
Join Date: Jan 2008
Device: Palm Treo 680, Sony Reader
Hmmm....is there a reason that erdr2pml.py changes the footnotes to links? Also, what use are the chapters and links files? I don't believe that DropBook uses them.

As best as I can tell, erdr2pml.py seems mainly to support conversion to HTML rather than to recreate the original PML architecture. I've created a custom version, but as a USA citizen, I have little desire to even post in DarkReverser's blog.

- Jim
macr0t0r is offline   Reply With Quote
Old 12-02-2009, 01:55 PM   #130
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,955
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
As far as I can see you're right - the footnotes and sidebars have been converted to links to make the conversion to hTML simpler. As you say - it's easy enough to tweak the code to make them footnotes and sidebars again.

If you're on a Mac, there's another step that needs to be done. The Mac version of DropBook assumes the PML file is in Mac OS Roman encoding, whle internally, all ereader files use Windows Latin-1 encoding, so on a Mac it's important to re-encode the pml file before using DropBook.

Quote:
Originally Posted by macr0t0r View Post
Hmmm....is there a reason that erdr2pml.py changes the footnotes to links? Also, what use are the chapters and links files? I don't believe that DropBook uses them.

As best as I can tell, erdr2pml.py seems mainly to support conversion to HTML rather than to recreate the original PML architecture. I've created a custom version, but as a USA citizen, I have little desire to even post in DarkReverser's blog.

- Jim
pdurrant is offline   Reply With Quote
Old 12-02-2009, 02:23 PM   #131
macr0t0r
Connoisseur
macr0t0r doesn't littermacr0t0r doesn't litter
 
macr0t0r's Avatar
 
Posts: 91
Karma: 108
Join Date: Jan 2008
Device: Palm Treo 680, Sony Reader
Quote:
Originally Posted by pdurrant View Post
If you're on a Mac, there's another step that needs to be done. The Mac version of DropBook assumes the PML file is in Mac OS Roman encoding, whle internally, all ereader files use Windows Latin-1 encoding, so on a Mac it's important to re-encode the pml file before using DropBook.
I've been getting around that by explicitly coding the high-ascii characters:
https://www.mobileread.com/forums/sho...5&postcount=53

- Jim
macr0t0r is offline   Reply With Quote
Old 12-02-2009, 02:36 PM   #132
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,955
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Now that's a very clever idea. And it'll handle those few irritating characters that are in Windows Latin-1 but not in Mac OS Roman. Thanks!

Quote:
Originally Posted by macr0t0r View Post
I've been getting around that by explicitly coding the high-ascii characters:
https://www.mobileread.com/forums/sho...5&postcount=53
pdurrant is offline   Reply With Quote
Old 12-02-2009, 03:29 PM   #133
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,765
Karma: 6000000
Join Date: Nov 2009
Device: many
erdr2pml.py

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
KevinH is offline   Reply With Quote
Old 12-02-2009, 04:28 PM   #134
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 73,955
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by KevinH View Post
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.
Oh - I didn't know that might be a problem. I'll have to experiment sometime and see. Thanks.
pdurrant is offline   Reply With Quote
Old 12-02-2009, 04:29 PM   #135
macr0t0r
Connoisseur
macr0t0r doesn't littermacr0t0r doesn't litter
 
macr0t0r's Avatar
 
Posts: 91
Karma: 108
Join Date: Jan 2008
Device: Palm Treo 680, Sony Reader
DropBook handles the pseudo-XML markup for footnotes and sidebars perfectly. I do it all the time with my modified script. The problem was in the python converter:
Code:
smarker = '<sidebar id="sidebar-%s">\n'
This should be:
Code:
smarker = '<sidebar id="%s">\n'
Currently, the code has that stuff commented out and is doing this:
Code:
marker='\\t\\Q="sidebar-%s"' % id
Which is essentially turning a sidebar (or footnote) reference into a Link target. Very undesirable for Calibre since the updated PDB converter properly converts PML footnotes into ePub endnotes.

I'm at a crossroad on if I really want to contribute to the ereader "cleaning" project that DarkReverser has going. I like the eReader format for it's simplicity, semi-friendly DRM restrictions, and large device support. The last time a format was thoroughly defeated, it was dumped by the Publishers (Microsoft LIT). I'd prefer that didn't happen to the eReader format.

- Jim
macr0t0r 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 09:52 AM.


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