View Single Post
Old 04-30-2012, 05:36 AM   #2
m4mmon
Enthusiast
m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.m4mmon is my name, but call me Ishmael.
 
Posts: 49
Karma: 107174
Join Date: Mar 2012
Device: PB631, PB741, PB840
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.
Attached Files
File Type: zip CLI_tests.zip (64.9 KB, 465 views)

Last edited by m4mmon; 05-05-2012 at 02:08 AM.
m4mmon is offline   Reply With Quote