View Single Post
Old 03-29-2020, 07:01 PM   #13
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,125
Karma: 169815798
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by hymie View Post
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.

Last edited by DNSB; 03-29-2020 at 07:08 PM.
DNSB is offline   Reply With Quote