Kovid
Sigil's feature of using title="Alternate Title", WHEN PRESENT, seems reasonable
--
A chapter heading: Chapter 1
with a subheading (possibly with different CSS styling) on a second line: Lost in the Code
I have used so REGEX to construct the title="\1 : \2", which Sigil picked up in the TOC generation Chapter 1 : Lost in the Code
--
When using Image based titles. As you noted using alt= is probably not a great idea as there may be lots of other images that don't belong in the TOC but still have an alt=
Using the sometimes hidden: <h3 title="Chapter 1"> </h3> is a easy workaround for a mixed methods book
In all case, my preference is towards helper tools rather than fully automatic features.
I frequently regenerate a TOC (until I get it just right! ). This may be why I lean towards using the single markup method
|