View Single Post
Old 09-02-2008, 10:14 PM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,400
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I think I good solution is to add the infrastructure to allow users to add their own custom OPF -> output format tool via an option to "Add external tool"

Once the infrastructure is in place it will be easy to add profiles for imp and mobi based on impmake and mobigen.

Unfortunately, all my current calibre hacking time is allocated to other things, so the only way this will get done is if someone contributes a patch.

the way I envison it working is via "recipes" for tools. A recipe should define the command line options the tool accepts (at the very least a way to define the output file). Calibre can have a nice GUI to aid in the creation of recipes. Once a recipe is created, calibre will create a generic config dialog (like the LRF config dialog) based on the defined options and a user specified path to the actual binary and then it will be able to run the tool to convert any of the supported iinput formats into the desired output format (calibre already has code to generate an OPF file given an HTML file + metadata). calibre can ship with built-inrecipes for a couple of well known tools like mobigen and impmake.
kovidgoyal is offline   Reply With Quote