View Single Post
Old 03-28-2017, 08:09 PM   #8
jcsalomon
Zealot
jcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheesejcsalomon can extract oil from cheese
 
jcsalomon's Avatar
 
Posts: 98
Karma: 1204
Join Date: Jun 2012
Device: Bookari (née Mantano Reader) on Android; Kindle Fire HD
Quote:
Originally Posted by DiapDealer View Post
I'm not entirely following the question. You WANT the entry to be in the ToC, in seems, but why exactly do you not want to use the "title" attribute to set the ToC text?
Oh, I’d be very glad to set the ToC text with the "title" attribute; what I’m trying to avoid is non-semantic use of <h1> tags.

(Or an empty <h1 title="Preface"></h1> set; I could be misunderstanding what I’m reading, but it seems leaving the element empty might have bad effects, though I’ve not seen this in my own testing.)

Quote:
Originally Posted by DiapDealer View Post
The question asked as to whether there is a complementary class name like "sigil_not_in_toc" that can be used to cause non-header tags to be included in TOC generation is certainly relevant to Sigil. The answer is no […].

@jcsalomon: There's nothing like that for auto TOC generation, but you can use the TOC editor (after the TOC is generated) to manually add a non-header tag entry to the TOC. You'd have to remember to re-add it if you ever re-generated the TOC, but it's possible to achieve.
Thanks. This is obscure enough that I won’t ask for such a feature to be added (and I’ll ask elsewhere in the forums about the semantically best way to indicate this), but I’d have used it if the feature was already there.
jcsalomon is offline   Reply With Quote