![]() |
#1 |
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
How to insert automatically valid id's in ToC headings?
![]() A few hundred of headings I want to make clickable to chapters and back. This (unusual in such a book) possibility of reverting to the ToC is intended to serve a comprehensive understanding of the chapters. Anyway, further explanations why this seems necessary would go too far. The manual (boring) way to insert id's I know: I look for the smart way. To insert fix id's with S&R to headings leads to Check book/ Error: Dublicate id: The id xyz is present on more than one element in Inhalt.html. This is not allowed. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,630
Karma: 85000001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
OK. To follow your advice means to me a delay to complete the books (6 items, 6000 regular pages) for days or weeks. But that's not the problem.
Since I allow myself the question: Does a text editor generate the ID numbers? That's the work of a random generator (calibre got one, but isn't usable here, or?). Since LibreOffice and Word are similar, even in case you use latter, please explain the procedure (in few words). |
![]() |
![]() |
![]() |
#4 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,422
Karma: 133807966
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
In most ePub, you don't need an ID for ToC headers because most ToC headers are th start of a new file. You only need an ID if your ToC entry is jumping somplace other than the start of a file.
|
![]() |
![]() |
![]() |
#5 |
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
Click on II. Bar opens the chapter concerned. II. Bar (ToC) Click on How I insert in the list Inhalt (means Content or ToC) for hundreds of items (headings) different ID's? Inserting identical ID's with S&R is easy, but no possibility (produce error message Dublicate id). By the way: How is to manage the size of images (in mobileread forum)? Last edited by chaot; 01-27-2017 at 02:30 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,196
Karma: 57978778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
IIRC the TOC tool will generate additional anchors (if needed) when using H# tags as markers. (I prefer the per file method, so the filename is sufficient)
Now if you are desiring an active jump to HTML TOC, you will need to code that by using existing content as the key, you can calculate targets with REGEX You can always pad numeric only (42) values with an alpha prefix (LUE42) to keep things valid |
![]() |
![]() |
![]() |
#7 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,422
Karma: 133807966
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I know some Readers, pulling up the ToC is slower bcause of the ID tags. So if you don't 100% need any ID tag in the ToC, do not put it in. Only put in the ID tags you 100% need.
|
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
![]() |
![]() |
![]() |
#9 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,422
Karma: 133807966
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I find when chapter headers are made into links, it looks to me like whoever made the eBook has no clue how to make a good looking eBook. It's awful.
Kindles have an easy way to get to the ToC and ePub have an eay way to get to the NCX ToC. So really, there is no need for the cchapter headers to be links. You don't need chapter headers to be links and if you are jumping to the beginning of the file, you don't need or want an ID. ID's can slow the ToC down if you have IDs you do not need. Please post that you understand this. |
![]() |
![]() |
![]() |
#10 |
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
I still sort out what I know and what I have to ask. It is the sheer amount of headlines (about 1500 or more, and they are all HEADLINES) that makes me despair. You lose control very quickly.
|
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,422
Karma: 133807966
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Are these all places you can start a new flow (XML file)? If so, you won't need any IDs. If they are not, used IDs where you need to and do not use an ID where you don't (the start of a new flow).
|
![]() |
![]() |
![]() |
#12 | ||||
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
Quote:
That would be my suggestion! In these books the ToC is of less help, because of the sheer amount of headlines. The ToC, shown in my Tolino ereader includes about 80 pages, 8 entries per page. For navigation in the book (in the ereader) I need other instruments. I got an idea. You too? Quote:
Code:
Instead of <a href="xyz.html#uCZEvuprkBTfz9FrYC7Blz5">Title</a> to use <a href="xyz.html#Title">Title</a> Quote:
Quote:
Last edited by chaot; 01-31-2017 at 07:17 AM. |
||||
![]() |
![]() |
![]() |
#13 | |
Head of lunatic asylum
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 349
Karma: 77620
Join Date: Jun 2012
Location: UTC +1
Device: Tolino Vision 3HD
|
Hi Jon! The book (together 6 books (Werke 1-6)) contains the entire work of a former journalist (Joseph Roth).
Inhalt Book 2 File Preview shows clickable titles of individual reports (each a few pages long). E.g. entries 1924 & Politische Lyrik are supra-titles (for ordering the stuff). In File Browser the entries are arranged according to certain ordering characteristics (e.g., time units (years), political or geographic reference (and max 260 KB)(partly for my orientation while editing the book). My initial idea, making also the titles of the individual chapters clickable back to the table of contents (Inhalt), I gave (partly) up. Because of the slowed down system if too many ID's, you mentioned, then also, because at the moment the implementation would still stress my skills. Quote:
EDIT: It's possible to do that in a way unpossible to see it's a link (black, not underscored), you know!? Last edited by chaot; 01-31-2017 at 07:36 AM. |
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,511
Karma: 74358018
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
|
![]() |
![]() |
![]() |
#15 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 75,422
Karma: 133807966
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Given that this is an ePub, there is a better solution than making headers into links. What you can do is put in a link for the internal ToC in the NCX. Then all you do is go to the external ToC and select the contents link and you'll be at the internal ToC. That is what would work best.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can insert a citation automatically? | calven | Calibre | 3 | 01-21-2016 05:30 AM |
How can insert a footnote automatically? | calven | Editor | 0 | 12-29-2015 07:52 PM |
NCX TOC section headings | eggheadbooks1 | ePub | 13 | 06-08-2013 05:57 PM |
Issue With Chapter Headings and TOC | yoss15 | Kindle Formats | 5 | 02-07-2012 01:54 PM |