|
|
#1 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84
Karma: 6698
Join Date: Sep 2022
Location: South Africa
Device: kindle pw10
|
TOC question
Why do some books require a nav.xhtml file when there is already a toc.ncx file?
I have one book that gives an error if there is no nav.xhtml file and it gets created when I create a TOC from files. Other books do not require the file even when deleted. Thanks |
|
|
|
|
|
#2 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 531
Karma: 2268308
Join Date: Nov 2015
Device: none
|
A navigation document is required for EPUB3 books (check the version attribute for <package> in the OPF file.)
|
|
|
|
|
|
#3 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84
Karma: 6698
Join Date: Sep 2022
Location: South Africa
Device: kindle pw10
|
Thanks Sarmat
The version is 3. The .opf contains entries for both files. <item id="nav" href="../nav.xhtml" media-type="application/xhtml+xml" properties="nav"/> <item href="toc.ncx" id="ncx" media-type="application/x-dtbncx+xml"/> Why does it need both. Also when opening the file in Foliate the navigation does not work but does in e-book viewer. |
|
|
|
|
|
#4 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84
Karma: 6698
Join Date: Sep 2022
Location: South Africa
Device: kindle pw10
|
Done some reading and think I have sorted it out.
epub2 requires a toc.ncx file. epub3 requires a toc.xhtml file and can also have a toc.ncx file. This right? Does not explain why the navigation in Foliate does not work with an epub3 file. Foliate problem? Thanks |
|
|
|
|
|
#5 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,072
Karma: 6361556
Join Date: Nov 2009
Device: many
|
If Foliate does not use the NAV when properly specified in the OPF manifest, then it simply is not an epub 3 compliant reader. It probably just supports epub 2. Older readers like that are why some epub devs include a fully parallel NCX and OPF guide in their epub 3s to make them more compatible with old epub2 only readers.
Perhaps a good epub3 reader that handles epub2 would be an improvement. If so try Thorium. It exists for Windows, Mac, and Linux desktops and is very spec compliant. |
|
|
|
|
|
#6 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48,126
Karma: 174315444
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
If you have tested it with another epub renderer, it's likely a Foliate problem. Have you posted on the issues section on it's GitHub page? Personally, I've been using Thorium as an epub reader with Linux. |
|
|
|
|
|
|
#7 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 84
Karma: 6698
Join Date: Sep 2022
Location: South Africa
Device: kindle pw10
|
Thanks David, Kevin.
Have just installed Thorium. Simple and the navigation works with the problem file. Problem solved. ![]() Phil |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TOC Question | phossler | Editor | 7 | 08-25-2014 07:53 AM |
| TOC question | Bigbyte | Conversion | 3 | 09-26-2011 03:03 PM |
| Another TOC question, I think | Jabby | Sigil | 0 | 11-23-2010 11:18 AM |
| 6.0 TOC question | Amalthia | Calibre | 3 | 07-30-2009 01:45 PM |
| toc question | zelda_pinwheel | IMP | 4 | 01-18-2008 11:49 AM |