I have an epub 3 that I want to be backwards compatible for older e-readers that expect an epub 2.
My table of contents is rendered in a toc.xhtml, as expected by an epub 3. In addition, I have an .ncx file listing the table of contents as expected by an epub 2. However, since my toc.xhtml is just a regular file like all the other content files, not a separate file like the .ncx one, I worry that older e-readers will try to render it as content.
It seems to me I have two options:
- Somehow tell older e-readers to ignore the toc.xhtml file so they don't render it (this is preferred)
- Somehow tell newer e-readers to render the toc.xhtml file (which I could then use to replace a table of contents I manually placed in the text for aesthetic reasons and for consistency with the print version of the book)
This article says that including the toc.xhtml file in the spine would render it, but that is not the case for me.
How do I do either one of the two options above?