I have found the missing step. Before converting the html to epub, I need to perform an html to OEB conversion first... So this is a 2-step conversion as I had suspected:
Code:
ebook-convert.exe book.htm oeb
ebook-convert.exe oeb\book.htm book.epub %opts%
So my problem is solved. If I had not been so "desperate", I would not have tried the first step, since documentation is clear about it:
Quote:
Finally, if output_file has no extension, then it is treated as a directory and an “open ebook” (OEB) consisting of HTML files is written to that directory. These files are the files that would normally have been passed to the output plugin.
|
Whatever the documentation tells, performing those two steps gives a slightly different result than this:
Code:
ebook-convert.exe book.htm book.epub %opts%
For those who do not believe this does make a difference, I have attached an archive containing a sample document, the batch that performs the conversions, and the resulting epub files.
Maybe someone will point a mistake or something, but since I have exactly the same result as when using calibre GUI to perform my conversion, I think my problem is solved.