View Single Post
Old 07-31-2010, 05:10 PM   #3
pjoshua5000
Member
pjoshua5000 is clearly one to watchpjoshua5000 is clearly one to watchpjoshua5000 is clearly one to watchpjoshua5000 is clearly one to watchpjoshua5000 is clearly one to watchpjoshua5000 is clearly one to watchpjoshua5000 is clearly one to watchpjoshua5000 is clearly one to watchpjoshua5000 is clearly one to watchpjoshua5000 is clearly one to watchpjoshua5000 is clearly one to watch
 
Posts: 12
Karma: 10752
Join Date: Jul 2010
Device: none
Quote:
Originally Posted by jackie_w View Post
Welcome to the forum.

Does this work for you?

Set [Convert] - [Structure Detection] "Detect chapters at" to
//h:div[re:test(@class, "toc1", "i")]
The problem is not building the TOC. I can even get level 1 and level 2 TOC links—that is not a problem.

I want the text in the TOC to be what I want like "chapter 1" and the place it links to, to say what I want, like today's date. I try Sigil editor, but changing the text of the TOC change the text of that is in the document.

So if there was a way to tell Calibre, in the HTML file,that this is the text to be place in TOC, and to not put in as text in the document.

If I used this code below, suggest by kovidgoyal, Calibre will know that that is why you want you link to in the TOC, and the name of the TOC entry, without adding that text in the document.
Code:
<div class="toc1" style="display:none">
Chapter 1</div>

Last edited by pjoshua5000; 07-31-2010 at 05:15 PM.
pjoshua5000 is offline   Reply With Quote