06-07-2013, 03:27 PM | #1 |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
NCX TOC section headings
Does anyone know of a way to add a section heading in an NCX TOC that will pass ePubcheck? The TOC I am building has a list of tables and images that are linked to, and the client wants a section heading entitled "Tables" and "Images." In Sigil I merely edited the TOC to add an entry that didn't link to anything and Sigil was fine with it, and it showed up fine in the nav menu when I tested the ePub, but unfortunately ePubcheck has an issue with it.
Any ideas? Michelle |
06-07-2013, 03:37 PM | #2 |
Resident Curmudgeon
Posts: 73,943
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You have to have a link for the ToC to be valid. What you can do is link to the first table and the first image.
|
Advert | |
|
06-07-2013, 03:41 PM | #3 |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Seems like a reasonable compromise.
thanks. Michelle |
06-07-2013, 05:25 PM | #4 |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Drats, no can do. ePubcheck will not allow two entries in the TOC to point to the same target. So I cannot have the heading -- Tables, for example -- point to the same table that is then listed as the first entry in that category.
Any other options? Michelle |
06-07-2013, 05:27 PM | #5 | |
Resident Curmudgeon
Posts: 73,943
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Advert | |
|
06-07-2013, 05:39 PM | #6 |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Unfortunately, then there is no way to specify the title of the first table.
Michelle |
06-07-2013, 06:56 PM | #7 |
Resident Curmudgeon
Posts: 73,943
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Tables (first table title)
Images (first image title) |
06-07-2013, 07:13 PM | #8 |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
In the end that's exactly what I did; not ideal but no real other options.
Michelle |
06-07-2013, 07:15 PM | #9 |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
What I had also tried was Tables <line break code> then the first table title. Again, worked in the actual devices but ePubcheck was having none of it: no line breaks allowed.
Michelle |
06-07-2013, 09:55 PM | #10 |
Resident Curmudgeon
Posts: 73,943
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I have another idea. I don't know if this will work but it may. Give it a try, nothing to lose.
Create an ID next to the first table and next to the first image. Use these extra IDs for the top level and then you may be able to start level 2 with the first table & first image. So for the first table and first image, you'd have two different IDs and for the rest, just one ID. |
06-08-2013, 01:43 AM | #11 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Why not use a hidden element to point to in the TOC?
|
06-08-2013, 11:30 AM | #12 | |
Read, don't parrot.
Posts: 224
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
|
Quote:
Michelle Last edited by eggheadbooks1; 06-08-2013 at 11:43 AM. |
|
06-08-2013, 05:56 PM | #13 |
Resident Curmudgeon
Posts: 73,943
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Because those ToC entries could be selected and thus cause the display of these hidden elements. At least by having the extra ID, if the level one entries are selected by mistake, all that will happen if they will just go to the first table or the first image instead of a hidden element.
|
06-08-2013, 05:57 PM | #14 |
Resident Curmudgeon
Posts: 73,943
Karma: 128903250
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I didn't think of it myself until after you said the double entries was flagging an error. Had to think of a way to put in a different entry that would not be causing a problem. Now that we have such, I may very well use it when needed.
|
Tags |
epubcheck, headings, ncx, toc |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindler previewer not recognizing toc.ncx file, my html toc, or the start point... | petercrowell | Kindle Formats | 2 | 05-01-2012 08:14 AM |
Issue With Chapter Headings and TOC | yoss15 | Kindle Formats | 5 | 02-07-2012 01:54 PM |
Inline TOC from toc.ncx | elmago79 | Kindle Formats | 38 | 03-25-2011 12:56 PM |
Use Regex to Code an Inline TOC, from an External TOC's .ncx File | mostlynovels | ePub | 2 | 03-16-2011 12:15 PM |