Thread: pdftoiliad
View Single Post
Old 07-05-2008, 12:52 AM   #4
IanHelgesen
Member
IanHelgesen has a complete set of Star Wars action figures.IanHelgesen has a complete set of Star Wars action figures.IanHelgesen has a complete set of Star Wars action figures.
 
IanHelgesen's Avatar
 
Posts: 20
Karma: 270
Join Date: Feb 2008
Device: Irex Iliad
I've finished inital epub support. If you already have the software installed, all you need to do is download epub.py.txt, remove the .txt extension, and drop it in the modules directory. I've also attached the complete package. This has worked beautifully for the Baen library, converted from .lit using ConvertLit and OEBtoePub (see attached screenshot). It will also pick up author and title from ePubs downloaded from Feedbooks.com, although these will lack cover thumbnails.

Notes on epub support:

Page count: Currently, page counts are not calculated. Pages are a bit of a fuzzy subject with reflowable formats, so this is more difficult to do. I do plan to attempt to add this in a later version (using FBReader's definition of a page).

Cover art: As far as I have been able to find (please correct me if I've missed something), epub does not specify a standard for cover art. This makes reliable thumbnailing a bit difficult. Currently this script first checks for lines created when using ConvertLit and OEBtoePub to create an ePub file from a .lit. If these are not found, the first image referenced in the .opf manifest will be used. If no images are in this list, no icon will be made.

Metadata: ePub metadata is generally filled out correctly, so this does not attempt the heuristics I used with PDFs.
Attached Thumbnails
Click image for larger version

Name:	Baen_Contentlister.png
Views:	386
Size:	160.3 KB
ID:	14091  
Attached Files
File Type: txt epub.py.txt (2.3 KB, 326 views)
File Type: gz sendtoiliad.tar.gz (6.1 KB, 349 views)
IanHelgesen is offline   Reply With Quote