View Single Post
Old 09-02-2008, 09:34 PM   #9
scruffy
Enthusiast
scruffy has a complete set of Star Wars action figures.scruffy has a complete set of Star Wars action figures.scruffy has a complete set of Star Wars action figures.scruffy has a complete set of Star Wars action figures.
 
Posts: 29
Karma: 324
Join Date: Mar 2008
Device: ebookwise, n800, tablet, etc
Quote:
Originally Posted by ashkulz View Post
Also, for #3: I think it'd be possible to check that impmake exists on the path (e.g. using impmake -v) and if so, doing the html2imp conversion [or else bailing out]. For bundling, impmake depends on eBook Publisher so that'd be required to be bundled. What do you think?
I think there are a few options...

1) impmake

1a) or maybe using lit2sb (ie the perl script that Nick extracted/tweaked see https://www.mobileread.com/forums/showthread.php?t=28138 )

1b) or any other tool that needs the SBPublisher.Builder to make an imp.

Since Calibre can generate a opf and a cover image, a reduced version of lit2sb (ie ignoring the lit extract code parts) should suffice. Requires windows for SBPublisher, so it's not cross platform. [That hasn't stopped other tools like PDFRead from this answer, just don't continue on to creating an IMP on non-windows platforms... stop with the html/OPF/Cover, which is near exactly where Calibre stands today.]

2) Convert code (written in VB?) into python from
http://krausyaoj.tripod.com/reb1200.htm
License is open enough to allow using hunks of code wholesale likely, and at the end, hopefully we have a python native imp builder. (subst Perl or other language for Python if you wish.)

3?) rbmake: http://rbmake.sourceforge.net/rbmake.html
Completely opensource, and has the advantage of supporting older Rocket readers. But converting from rb to imp isn't trivial, though... so this isn't really a good answer, since it would require using something else to convert to imp still... but might be worth considering, if someone wanted the older readers to work with Calibre in the future.
scruffy is offline   Reply With Quote