Re: Requirements feasibility plan
Marcello Perathoner <marcello-ULrl/Sucve/[email protected]>
| Newsgroups | gmane.culture.literature.e-books.gutenberg.volunteers |
|---|---|
| Message-ID | <[email protected]> |
On 10/31/2012 06:13 PM, Robert Gibbins wrote:
> On Oct 8th Lee Passey wrote:
>> 4. Book titles should be marked with the<h1> element, "part" titles
>> should be marked with the<h2> element, chapter titles should be marked
>> with the<h3> element, "section" titles should be marked with the<h4>
>> element, and "sub-section" titles should be marked with the<h5>
>> element. If a title is composed of both a main title and a subtitle, the
>> subtitle should be distinguished from the main title by adding
>> "class='subtitle'" as an attribute of the title element. Author's names
>> in book titles should be indicated by<h1 class="author">.
>
> My question is whether writing, for example:
>
> <h3>CHAPTER 12</h3>
> <h3 class="subtitle">"WOULD YOU?"</h3>
>
> as I think Lee is suggesting above, has any advantages (or disadvantages)
> over what I currently do which is:
>
> <h3>CHAPTER 12</h3>
> <div class="chapter-title">"WOULD YOU?"</div>
The first one is horrible. Because HTML infers structure from headings,
it says, you have an empty section titled "chapter 12" followed by a
section titled "would you?" epubmaker would build 2 toc entries.
The second is better, but it says, that the section is titled "Chapter
12". The toc entry would be "Chapter 12" only.
The best options is:
span.subtitle { display: block; font-size: smaller }
<h3>Chapter 12 <span class="subtitle">Would You?</span></h3>
Also, books do not always follow the part / chapter / section /
subsection / paragraph scheme, so it is stupid to prescribe that h2
should always be used to mark a part, etc. The best option is to enclose
the chapter in a div and put a class on the div, while numbering the
headings in consecutive order:
div.chapter { page-break-before: always }
h2 { padding-top: 1em }
span.subtitle { display: block; font-size: smaller }
<div class="chapter" id="chapter12">
<h2>Chapter 12 <span class="subtitle">Would You?</span></h2>
...
</div>
Regards
--
Marcello Perathoner
[email protected]
_______________________________________________
gutvol-d mailing list
gutvol-d-4LCm/o+qPMZ96Xl/[email protected]
http://lists.pglaf.org/mailman/listinfo/gutvol-d