View Single Post
Old 08-13-2013, 04:48 AM   #77
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Quote:
Originally Posted by ibu View Post
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.
Agama is offline   Reply With Quote