View Single Post
Old 08-01-2009, 06:25 PM   #1
GatorDeb
Evangelist
GatorDeb , Klaatu Barada Niktu!GatorDeb , Klaatu Barada Niktu!GatorDeb , Klaatu Barada Niktu!GatorDeb , Klaatu Barada Niktu!GatorDeb , Klaatu Barada Niktu!GatorDeb , Klaatu Barada Niktu!GatorDeb , Klaatu Barada Niktu!GatorDeb , Klaatu Barada Niktu!GatorDeb , Klaatu Barada Niktu!GatorDeb , Klaatu Barada Niktu!GatorDeb , Klaatu Barada Niktu!
 
Posts: 447
Karma: 5365
Join Date: Dec 2007
Location: Sin City
Device: PW2 + HDX 8.9
How To mass-convert ereader files into HTML and then into MOBI

Here are the steps on how to mass convert ereader into Kindle (no cover, just the book).

It keeps hyperlinks! You do lose images and the cover.

You are going to need:

THE ereader python script

Mobiperl: (download the appropriate one depending on your operating system, I.e. Windows users will want mobiperl-win-0.0.43.zip as of this writing (8/1/09))

https://dev.mobileread.com/dist/tompe/mobiperl/


First step, OPEN the ereader Python script in notepad.

Find this line:

file(os.path.join(outdir, 'book.html'),'wb').write(pml.process())

Change it to

file(os.path.join(outdir, outdir+'.html'),'wb').write(pml.process())

Put all your ereader files in a directory and go to the command prompt. Navigate to the directory with all the ereader files (your new ereader Python script should be here also).

Execute this command:

for %a in (*.pdb) do "ereader2html.py" %a "c:\completepath\%~na" "Name Last Name" Last8ofCC

Here's what you will get:

In that directory, you will create one directory per book that has the images. You can delete the directories, save them, whatever you want to do with them.

Most importantly, you will have BookName.html files, as opposed to just "book.html" files. Your output files will carry each book's name.

Now copy html2mobi from the Mobiperl zip into the directory with all the HTML files.

Now in your command prompt execute:

for %a in (*.html) do html2mobi.exe %a

And that is how you mass convert ereader to Kindle
GatorDeb is offline   Reply With Quote