Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 01-26-2023, 05:32 AM   #1
skil-phil
Connoisseur
skil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animals
 
skil-phil's Avatar
 
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
skil-phil is offline   Reply With Quote
Old 01-26-2023, 05:43 AM   #2
Sarmat89
Fanatic
Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.Sarmat89 ought to be getting tired of karma fortunes by now.
 
Posts: 516
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.)
Sarmat89 is offline   Reply With Quote
Advert
Old 01-26-2023, 05:57 AM   #3
skil-phil
Connoisseur
skil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animals
 
skil-phil's Avatar
 
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.
skil-phil is offline   Reply With Quote
Old 01-26-2023, 07:25 AM   #4
skil-phil
Connoisseur
skil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animals
 
skil-phil's Avatar
 
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
skil-phil is offline   Reply With Quote
Old 01-26-2023, 11:55 AM   #5
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,760
Karma: 5706256
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.
KevinH is offline   Reply With Quote
Advert
Old 01-26-2023, 12:00 PM   #6
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: 46,168
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by skil-phil View Post
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
That is correct. The toc.ncx file in an epub3 is for backwards compatibility if you open the book on an epub2 device.

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.
DNSB is offline   Reply With Quote
Old 01-26-2023, 11:18 PM   #7
skil-phil
Connoisseur
skil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animalsskil-phil is kind to children and small, furry animals
 
skil-phil's Avatar
 
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
skil-phil is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOC Question phossler Editor 7 08-25-2014 06:53 AM
TOC question Bigbyte Conversion 3 09-26-2011 02:03 PM
Another TOC question, I think Jabby Sigil 0 11-23-2010 10:18 AM
6.0 TOC question Amalthia Calibre 3 07-30-2009 12:45 PM
toc question zelda_pinwheel IMP 4 01-18-2008 10:49 AM


All times are GMT -4. The time now is 08:52 PM.


MobileRead.com is a privately owned, operated and funded community.