Quote:
Originally Posted by foosion
That's very helpful. Thank you!
It appears that if I'm editing a commercial work for personal use, want to make the appearance more pleasing to me and don't use assistive technology, I could just enclose each part of the text in bare h# tags, style those as desired in the CSS and delete the rest. I could then generate a ToC from the h# tags, using a title attribute if desired, without needing any href or id.
Deleting the "excess" would make things simpler and easier to understand for me.
|
It is not all that difficult using regex/
TagMechanic/etc. to remove the unwanted elements. For me, it is more if they do not interfere with viewing the text, I do not worry about them. After all, I am not going to be looking at the innards of an ePub while reading it.
I also tend to use regex to combine the various elements of a multi-part header into a single title element. At the same time, I prefer to use one header tag and change the rest to <p> tags.
I do prefer simplicity but, at this time, I prefer not to trade the ability to use assistive technology for simplicity.
One recent book used h1, h2 and h3 for the chapter title information and yes, the author loved using all caps all too often:
Code:
<h1>CHAPTER ONE</h1>
<h2>IN WHICH WE SPEAK</h2>
<h3>OF THE VARIOUS NAMES OF GOD</h3>
becomes
Code:
<h3 title="Chapter One: In Which We Speak of the Various Names of God">CHAPTER ONE</h1>
<p class=subhead1>IN WHICH WE SPEAK</p>
<p class=subhead2>OF THE VARIOUS NAMES OF GOD</p>
My standard for header tags is <h1> is for books in a omnibus, <h2> is for parts in a book and <h3> is used for chapters. I have occasionally used h4 for subsections of a chapter. Only once have I used <h5> and <h6> and that was a fun bit of work on a university textbook where the author had lost his original manuscript and we had to convert and cleanup a PDF copy.