View Single Post
Old 03-30-2017, 01:28 AM   #1
GrannyGrump
Obsessively Dedicated...
GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.GrannyGrump ought to be getting tired of karma fortunes by now.
 
GrannyGrump's Avatar
 
Posts: 3,221
Karma: 35037583
Join Date: May 2011
Location: PA {back in the usa!}
Device: Sony PRS-T2, ADE on PC
Lazy user wants to know... TOC generation

Is there any way to force the Sigil TOC auto-generation to use *all* the existing ID tags?

I always add my own ID codes to headings. I note that when the TOC is auto-generated, if the ID is at the top of the (x)html page, Sigil will omit that ID from the link, and only use the file name.

Thus, if I have coded a page so:
Quote:
[line 5] <h4 id="a01-23">Hoodoo McFiggin’s Christmas</h4>

[line 80]<h4 id="a01-24">The Life of John Smith</h4>

The html TOC will look like this (toc.ncx information is similar):
Quote:
<div class="sgc-toc-level-2">
<a href="../Text/A01b-LitLapses.html">Hoodoo McFiggin’s Christmas</a>
</div>

<div class="sgc-toc-level-2">
<a href="../Text/A01b-LitLapses.html#a01-24">The Life of John Smith</a>
</div>
I use the TOC information to create index or other pages needing links. Because I use AutoHotKey scripts, I rely on character-count to get the required link info.

Is there any way to get ALL the IDs to appear, or is it only possible to manually edit to replace them?
(I think I know what the answer is, but hope springs eternal.)
GrannyGrump is offline   Reply With Quote