![]() |
#1 |
Member
![]() Posts: 15
Karma: 50
Join Date: Aug 2012
Device: Kindle keyboard
|
Incorporating NCX file into Epub3 book for backward compatibility
I am getting requests for Epub3 files that still have an NCX file for backward compatibility. I am converting from original .docx files, with a simple hyperlink TOC added for in-book use. The converter uses "Heading1" and other signals to build the actual Epub3 TOC in the nav.xhtml file.
While the Epub3 conversion works well except for some minor after-conversion .xhtml edits needed, there doesn't seem to be any conversion option to seamlessly add an additional NCX file during the conversion process. I can tack an NCX file into the book using the TOC editor, but EpubCheck 4.1.1 has problems with it, and it reads in the Calibre viewer as two consecutive TOCs. Could the Calibre converter maybe add an option somewhere for "add NCX file to Epub3 for backward compatibility?" Or is there already one somewhere I've missed, like a plug-in? |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Deleted. Sorry... I missed the bit where you said you'd already tried the calibre TOC Editor.
I just tried adding an NCX to an epub3 using the TOC Editor. EpubCheck 4.1.1 doesn't have any problems with it and neither does the calibre Viewer. Last edited by jackie_w; 02-28-2019 at 05:04 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,693
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@tbrosz - I was about to suggest trying the ToC editor in Sigil, but I see jackie's updated her post.
But it might be worth a try if you can't get calibre to do it. BR |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 15
Karma: 50
Join Date: Aug 2012
Device: Kindle keyboard
|
Which specific box did you click on the "Generate TOC" commands?
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 15
Karma: 50
Join Date: Aug 2012
Device: Kindle keyboard
|
When I opened the file in Sigil, it actually automatically added an NCX file. Calibre didn't seem to like it, though, when I opened it over there again. I'm still exploring this.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
I think you're over-complicating it
![]() |
![]() |
![]() |
![]() |
#7 | |
Member
![]() Posts: 15
Karma: 50
Join Date: Aug 2012
Device: Kindle keyboard
|
Quote:
I have an NCX file, it passes the online Validator check, and it reads normally in the viewer. Talk about a hidden feature! I spent hours sweeping the menus for a button or a conversion setting to specifically do this. I will run this through to the publisher and see if it works for them. You are my hero of the day. How did you find this out in the first place? ![]() |
|
![]() |
![]() |
![]() |
#8 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,713
Karma: 5703586
Join Date: Nov 2009
Device: many
|
FWIW, Sigil will createan empty NCX for any epub3 without one, and there is a single epub3 menu "Generate NCX from Nav" thay you can use to populate that empty NCX right before saving if you so desire.
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
|
![]() |
![]() |
![]() |
#10 |
Member
![]() Posts: 11
Karma: 10
Join Date: Oct 2021
Device: none
|
Awesome, it worked for me as well.
However i would like Calibre to generate it when I convert a docx to epub through cli. Do anyone know if it is possible ? |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
table of content file link not add in toc.ncx file | bhambhu | Conversion | 0 | 01-14-2016 01:40 AM |
Help with toc.ncx file please | AlexBell | ePub | 7 | 09-04-2013 02:11 AM |
ncx file to html/xhtml file | javochase | Conversion | 1 | 06-23-2011 06:57 PM |
EPUB3 Compatibility | dpayment | PocketBook | 18 | 06-19-2011 08:33 AM |