Thread: .epub format
View Single Post
Old 06-30-2007, 06:35 PM   #13
MishaS
Connoisseur
MishaS is on a distinguished road
 
MishaS's Avatar
 
Posts: 79
Karma: 52
Join Date: Jul 2005
Location: Helsinki, Finland
Device: Nokia N810/Nokia E51
Quote:
Originally Posted by JSWolf View Post
Now that we have this, how do we use it?
Sorry, forgot to mention it

First of all, you should have python installed. The script only uses standard modules, so no additional components are required.

Let's say you've got a directory where you have a OEBPS conformant e-book (like you just exploded a book using ConvertLit). The the either of the following commands should do the trick:
Code:
python oeb2epub.py <path>/<to>/<e-book>
or
Code:
python oeb2epub.py <path>/<to>/<e-book> <output>.epub
In the first case oeb2pub.py will create a .epub file with the same name as directory: if you have your OEB book in /some/path/with/my/super-ebook script will create a file called /some/path/with/my/super-ebook.epub. In the second case you just specify where to put the resulting .epub file.
MishaS is offline   Reply With Quote