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.
|