Quote:
Originally Posted by paperwhite13
...
I could go back to InDesign and map the text styles properly, but I've made some edits in the epub directly, so I’d rather make the changes here, and I guess that’s what I was asking in the first place -- if it’s possible to change the relevant p classes to h1, h2 etc.
|
Yes, it is absolutely possible...and highly encouraged! Just remember to add the appropriate css for the h1, h2 to your stylesheet. This is where strong reg-fu comes in handy!
Quote:
Originally Posted by paperwhite13
I have to say I am less concerned with accessibility at the moment (there are almost no rules or laws to support it in my region and ebook market is shrinking anyway here), and more with wider compatibility, although I understand they go hand in hand. I don’t want to pick up bad habits, of course, but if using <em> everywhere instead of <i> or <span class="italic"> gets me wider compatibility, that’s what I'm after at the moment, even if in some places italic would be semantically correct instead of emphasis.
|
Understandable. I'm not sure what region you are in, but there are some regions that have already passed laws, like Europe, that mandate accessibility. If your book is going to one of the big distributers (Amazon, Kobo, etc) then they will probably require it. Luckily some enterprising programmers around here have created a plugin to automagically fix a lot of those accessibility concerns. If you use Sigil to edit your ePub then
here is the link to that plugin.
Quote:
Originally Posted by paperwhite13
I usually use a dinkus (* * *) for a section break, what would the semantically correct way to tag this? The little accessibility reading I've done suggests mapping this to <hr>, which would explain why many ebooks I've read have both a horizontal line, and a fleuron -- which I find a little annoying, strictly from a presentation point
|
<hr/> is the recommended method. I can only blame the programmers for showing both a line and the dinkus (didn't know it was called that!!
). Either the device/app programmers for not making their device function properly, or the book coder for not putting the proper css on their stylesheet.
Here is the method I use and I haven't seen it display both on my readers.
Edit:
The slight offset from center you see with the fleuron is because, in this example, I left the letter-spacing for all <hr>s. If you use a fleuron image, just remove the letter-spacing and the image will be perfectly centered.