View Single Post
Old 10-09-2013, 10:15 AM   #6
Perkin
Guru
Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.Perkin calls his or her ebook reader Vera.
 
Perkin's Avatar
 
Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
Quote:
Originally Posted by kovidgoyal View Post
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

Last edited by Perkin; 10-09-2013 at 10:18 AM.
Perkin is offline