View Single Post
Old 03-28-2017, 10:14 PM   #9
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
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, but this is definitely the right place to ask such a question.
Maybe a class "sigil_in_toc" or "sigil_include_in_toc"?

In HTML5, it seems like the title attribute is now allowable in any tag (XHTML1.1 + HTML 4.01 allowed a subset):

https://www.w3schools.com/tags/att_global_title.asp

although its overuse may interfere with accessibility:

https://www.paciellogroup.com/blog/2...use-and-abuse/
https://www.w3.org/TR/html/dom.html#the-title-attribute

Maybe non-<h#> could only be included in Sigil's auto-TOC if you use a combination of both a specific sigil class + title:

Code:
<p><span class="sigil_include_in_toc" title="Monetary Theory">Monetary Theory.</span> Monetary theory in the 1860s was reliant upon [...]</p>
Quote:
Originally Posted by jcsalomon View Post
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.
Hmmmm... do you have a screenshot of how it looks in the original book? You may be able to change the display of the <h2> headings slightly while still getting the point across (maybe using a float?).

I would still lean heavily towards the solutions using <h#> tags for chapter titles.

Side Note: There was only a handful of books I worked on that I can recall which had sidebar/inline headings... I discussed one at length years ago in the topic, "A better workflow":

https://www.mobileread.com/forums/sh...96#post3029896

although in my specific case they were slightly superfluous subheadings and not actual main chapter titles (so it didn't matter too much that I used <span> instead of <h3>).

Luckily the book has been retypeset many times over the years, so you can see multiple ways different typographers tackled the same issue:

Original Publication (1941): Attachment 134015
My Sidebar EPUB: Attachment 134016
My Inline EPUB: Attachment 134017
Routledge (2008): Click image for larger version

Name:	Routledge2008Hayek.png
Views:	236
Size:	122.0 KB
ID:	155855

Some later printings even removed the subheadings entirely (I would have to go hunting through my files for comparison images).

Quote:
Originally Posted by Notjohn View Post
Amazon seems to have a policy of ignoring prefaces, forewords, acknowledgements, indeed anything that in a traditionally designed book would have "front matter" paginated in lower case roman numerals. I think you would do best to call it something other than "preface" -- say "Marker" or "A Thought" -- in the H heading, followed by your epigram in a conventional paragraph.
I agree. Amazon's backend probably looks specifically for a set of keywords like "Preface" so it can avoid placing the SRL there.

Last edited by Tex2002ans; 03-28-2017 at 10:23 PM.
Tex2002ans is offline   Reply With Quote