05-27-2021, 12:01 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Aug 2020
Device: Kobo
|
Adding "folders/categories" in a TOC
Hello everyone,
First of all, sorry if this has been asked already but I couldn't find a solution using the search feature. I want to add some "titles/folders/categories" in my TOC without having them pointing to anything. I just want to add them to sort my TOC entries in a certain way. To make things clearer, here's what I wanna do: >Chapter 1 (pointing to chapter1.xhtml) >Title/folder/category 1 (not pointing to anything, just there for sorting purpose) >>Chapter 2 (pointing to chapter2.xhtml) >>Chapter 3 (pointing to chapter3.xhtml) >Chapter 4 (pointing to chapter4.xhtml) I tried to achieve this by simply placing my chapters 2 and 3 <navPoint> tags in a <navPoint> with <navLabel> and <text> but no <content> tag and it seems to be working (tested in ADE) but when I open the TOC in Calibre, a red dot appears instead of the usual green V next to the Title/folder/category 1 entry so I suspect my solution could be a problem on some devices. Is there a better way to achieve this? Thank you a lot in advance for your help. |
05-27-2021, 12:05 PM | #2 |
Resident Curmudgeon
Posts: 74,044
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I still don't get exactly what it is you want. Your NCX ToC has to have every entry pointing to someplace valid.
|
05-27-2021, 02:39 PM | #3 |
Well trained by Cats
Posts: 29,818
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Jon is correct. Only valid entries
Point your 'Part' (folder) to Chapter2.xhtml and Just Point the chapter entry to an Anchor inside the body. Chapter2.xhtml#top They will both LAND at the same place, but having an anchor for the second bit prevents it being called a 'duplicate' |
05-27-2021, 03:40 PM | #4 |
Junior Member
Posts: 5
Karma: 10
Join Date: Aug 2020
Device: Kobo
|
Thank you for your answers.
Making the "folder" entry point to a specific place of the book wouldn't make sense for the reader because the various entries I want to put in it are disseminated all over the book. How about using <content src="toc.ncx"/> for the folder entries? That way, it points to something that does exist, it removes the errors in the Calibre TOC editor and the reader won't be redirected anywhere if he taps it. Do you think that solution could be problem on some devices? |
06-01-2021, 08:05 PM | #5 | |
Resident Curmudgeon
Posts: 74,044
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
06-02-2021, 09:16 AM | #6 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I still don't understand WHAT you are trying to do. With all due respect, from what you've said thus far, it doesn't make any sense. You say that the puprose of the folders is to "sort your TOC in a certain way." Uh...why not order the TOC in that way, in the first place? What's the POINT of the folder, exactly? If the folder is nothing but a placeholder, why not use parts and group your TOC *as you want it*? Why...can you give an actual example, that might make sense to us? You're not getting much play here, because nobody understands the WHY or even the WHAT of waht you want to do. A real example would be helpful. Or make one up, using Dog Breeds as an example, or something... Hitch |
|
06-02-2021, 10:16 AM | #7 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I think the idea could be something like:
Spine order: - Day 1 - Day 2 - Day 3 - Day 4 - Day 5 "Folder" TOC: * Fun days - Day 1 - Day 4 * Boring days - Day 2 - Day 3 - Day 5 Where "-" are real links to actual sections in the book, and "*" are just TOC items that can be expanded/collapsed, but don't point anywhere in the book, because there's no appropriate place. |
06-02-2021, 10:49 AM | #8 |
Sigil Developer
Posts: 7,659
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Maybe use an index.xhtml or create an html toc and edit it any way you want?
The actual TOC (Nav or NCX) is supposed to be machine readable and the playorder reflects the spine order. Html tocs outside the nav do not have this constraint. Last edited by KevinH; 06-02-2021 at 01:01 PM. |
06-02-2021, 11:29 AM | #9 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
06-02-2021, 07:00 PM | #10 | |
Resident Curmudgeon
Posts: 74,044
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
It is a lot easier to use the NCX ToC. Why should I select the NCX ToC and then have to go to the HTML ToC when I already am in the ToC? |
|
06-02-2021, 07:28 PM | #11 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
Hitch |
|
06-02-2021, 08:20 PM | #12 |
Bibliophagist
Posts: 35,513
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Jon, in this case where the OP wants to place entries in the ToC in ways that are not permitted in the epub2 toc.ncx or epub3 nav.xhtml document, I don't see much as choice other than using a HTML ToC.
|
06-03-2021, 04:29 AM | #13 | |
Resident Curmudgeon
Posts: 74,044
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
In the NCX ToC,where space is wanted, put in an entry with non-breaking spaces and then point it to the same place (but using an ID) as the entry blow this. If this works, it will show as a blank line and if select it, it will go to the same place as the one below. |
|
06-03-2021, 04:39 AM | #14 |
Resident Curmudgeon
Posts: 74,044
Karma: 129333562
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
06-03-2021, 11:34 AM | #15 | |
Bookmaker & Cat Slave
Posts: 11,462
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
That's good to know, but I believe that the querent wanted to reorganize and reorder the items inside the "folder," as in Jellby's post, above and that's the part where the cow eats the cabbage--trying to "fool" with an NCX out of order. See what I mean? Hitch |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Embed the functions of "TOC Edit" into "TOC Tab"? | hhtmp88 | Plugins | 2 | 08-20-2020 02:09 PM |
"Tag" vs "adding new column" dilemma | peter0conor | Library Management | 8 | 05-05-2020 06:45 PM |
what's the difference between "compiled" and "converted" folders? | Gregg Bell | Kindle Formats | 8 | 04-01-2014 12:45 AM |
Custom column: "Updated date", when adding new "versions" of the same file? | enriquep | Library Management | 16 | 11-03-2011 10:46 AM |
Getting calibre to detect "Prologue" and "Epilogue" for TOC | sherman | Calibre | 2 | 09-20-2010 02:21 AM |