Quote:
Originally Posted by ibu
About the TOC: ePubs contain a lot redundant information.
Life of epub creators could be so much easier, when ereader would be able to create TOCs based on Hn on their own.
|
Although this may be considered redundant information it does enable a reader to access the toc quickly. If a toc had to be built on-the-fly when a book is opened then all the xhtml files would have to be parsed - and an assumption made about which tags to include. For my ePubs this would be H2 and H3 only but another producer may use H1..H4 or another producer may use <span class="toc1"> etc., etc.
Calibre allows you to define expressions which determine those tags which should contribute to the toc and their level in the toc, so this gives quite a lot of control without resorting to hand-coding.
Not sure what level of control Sigil gives you as I don't use it.