Quote:
Originally Posted by kovidgoyal
There is no raw html. This is an ebook editor, in other words you give it an ebook already in epub or azw3. And adding an import tool to process html files into epub with no changes is trivial calibre already does that, try adding an html file to calibre you will get a zip, with all linked files, images, styles and an autogenerated opf with no changes made anywhere (except for link rewriting). Just rename that zip to .epub and add in the boilerplate META-INF/content.xml and mimetype files and there you go -- an epub from html.
|
Just tried and works.
created empty book
imported html - calibre zipped it and all resources
had to rezip (as *.epub) contents (with stored mimetype file)
the META-INF/container.xml file was already there
I then had to split and create toc in Sigil (as I would have done anyway)
So that seems to easily done and creates an epub as Sigil would have done (minus the sub-folder structure) without the usual calibre style/markup conversion alterations.
If this was streamlined and given as 'import as epub' when dropping the original html into calibre, that would be quite acceptable.
Then having the 'tweak-epub-sigil' to edit the epub would/should be as easy to use as sigil as it is now.
Edit: the content.opf includes and references a non-existent toc.ncx file