epubjs
Version:
Render ePub documents in the browser, across many devices
46 lines (44 loc) • 3.47 kB
HTML
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Chapter 2. Building a Better EPUB: Fundamental Accessibility</title>
<link rel="stylesheet" type="text/css" href="css/epub.css" />
<meta name="dat-origPath" value="/html/body/section/section" /><link rel="prev" href="./ch02_0.html" /><link rel="next" href="./ch02_2.html" /></head><body>
<p data-origPath="/html/body/section/section/p[6]">These general forms allow markup grammars, like HTML5, to be created without
element counts in the thousands to address every possible need. A generalized
element retains the form of greatest applicability at the expense of specifics,
in other words. The HTML5 grammar, for example, solves the problem of a
multitude of structural containers with only slightly differing purposes by
introducing the <code class="literal">section</code> element.</p>
<p data-origPath="/html/body/section/section/p[7]">But what help is generalized markup to a person, let alone a reading system, let
alone to an assistive technology trying to use the markup to facilitate reading?
Try making sense of a markup file by reading just the element names and see how
far you get; a reading system isn’t going to fare any better despite a
developer’s best efforts. HTML5 may now allow you to group related content in a
<code class="literal">section</code> element, for example, but without
reading the prose for clues all you know is that you’ve encountered a seemingly
random group of content called section. This is structure without semantics.</p>
<p data-origPath="/html/body/section/section/p[8]">You might think to make out the importance of the content by sneaking a peek
ahead at the section’s heading—assuming it has one—but unless the heading
contains some keyword like “part” or “chapter” you still won’t know why the
section was added or how the content is important to the ebook as a whole. And
cheating really isn’t fair, as making applications perform heuristic tests like
looking at content can be no small challenge. This is both the power and failing
of trying to process generalized markup languages and do meaningful things with
what you find: you don’t have to account for a lot, but you also don’t often get
a lot to work with.</p>
<p data-origPath="/html/body/section/section/p[9]">Getting back to our analogy, though, it’s fair to say we’re all philosopher kings
when it comes to the true nature of books; we aren’t typically interested in,
and don’t typically notice, generalized forms when reading. But, whether we
realize it or not, we rely on our reading systems being able to make sense of
these structures to facilitate our reading, and much more so when deprived of
sensory interactions with the device and content. When ebooks contain only
generalized structures, reading systems are limited to presenting only the basic
visual form of the book. Dumb data makes for dumb reading experiences, as
reading systems cannot play the necessary role of facilitator when given
little-to-nothing to work with. And that’s why not everyone can read all digital
content.</p>
</body>
</html>