UNPKG

epubjs

Version:

Render ePub documents in the browser, across many devices

39 lines (33 loc) 2.44 kB
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE html><html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Chapter&#xA0;3.&#xA0;It&#x2019;s Alive: Rich Content Accessibility</title> <link rel="stylesheet" type="text/css" href="css/epub.css" /> <meta name="dat-origPath" value="/html/body" /><link rel="prev" href="./ch03_2.html" /><link rel="next" href="./ch03s02_0.html" /></head><body> <p data-origPath="/html/body/section/section/section/p[13]">I mentioned the difference between subtitles and captions at the outset, but the <code class="literal">kind</code> attribute can additionally take the following two values of note:</p> <ul class="itemizedlist" data-origPath="/html/body/section/section/section/ul"> <li class="listitem"><p> descriptions — specifying this value indicates that the track contains a text description of the video. A descriptions track is designed to provide missing information to readers who can hear the audio but not see the video (which includes blind and low-vision readers, but also anyone for whom the video display is obscured or not available). The track is intended to be voiced by a text-to-speech engine. </p></li> <li class="listitem"><p> chapters — a chapters track includes navigational aid within the resource. If your audio or video is structured in a meaningful way (e.g., scenes), adding a chapters track will enable readers of all abilities to more easily navigate through it. </p></li> </ul> <p data-origPath="/html/body/section/section/section/p[14]">But now I’m going to trip you up a bit. The downside of the <code class="literal">track</code> element that I’ve been trying to hold off on is that it remains unsupported in browser cores as of writing (at least natively), which means EPUB readers also may not support tracks right away. There are some JavaScript libraries that claim to be able to provide support now (polyfills, as they’re colloquially called), but that assumes the reader has a JavaScript-enabled reading system.</p> <p data-origPath="/html/body/section/section/section/p[15]">Embedding the tracks directly in your video resources is, of course, another option if native support does not materialize right away.</p> </body> </html>