Quote:
Originally Posted by hymie
I'm completely confused by what you're trying to say here.
If I take five HTML files and generate an EPUB, the EPUB will have a Table of Contents and a toc.ncx. If I take the same five HTML files and re-generate the EPUB, why wouldn't I expect the TOC be the same?
|
You did not say you were converting the same 5 files over and over. I will admit that that is a rather strange work flow and I have to wonder why anyone would do so. You've already converted the HTML files to epub so why not edit the epub using calibre's editor?
To quote your original post:
Quote:
Next time I use ebook-convert, how can I say "There is a file toc.ncx . Use it as the TOC" ?
|
This reads as if you were planning on re-using the same toc.ncx file for multiple conversions. Toc.ncx is not a generic file and
should not be re-used. The displayed TOC may look the same but the toc.ncx file will not be the same.
You might want to take the time to look at the documentation. Here's a link to the
Open Packaging Format (OPF) 2.0.1 v1.0.1 Section 2.4.1.2 as a starter.