Quote:
Originally Posted by DiapDealer
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
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):
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
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.