Skip to content

Commit

Permalink
[e] (0) Remove some text from W3C version as requested by a11y task f…
Browse files Browse the repository at this point in the history
…orce.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=11207

git-svn-id: http://svn.whatwg.org/webapps@5688 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 30, 2010
1 parent 9619ddb commit 6e3d951
Show file tree
Hide file tree
Showing 3 changed files with 214 additions and 69 deletions.
94 changes: 71 additions & 23 deletions complete.html
Expand Up @@ -24833,18 +24833,21 @@ <h4 id=the-track-element><span class=secno>4.8.9 </span>The <dfn><code>track</co

</div>

<!--TTSRT-->
<p>If the elements's <a href=#track-url>track URL</a> identifies a
<a href=#websrt>WebSRT</a> resource, and the element's <code title=attr-track-kind><a href=#attr-track-kind>kind</a></code> attribute is not in the <a href=#attr-track-kind-metadata title=attr-track-kind-metadata>metadata</a> state, then the
<a href=#websrt>WebSRT</a> file must be a <a href=#websrt-file-using-cue-text>WebSRT file using cue
text</a>.</p>
<!--TTSRT-->

<p>If the elements's <a href=#track-url>track URL</a> identifies a
<a href=#websrt>WebSRT</a> resource, then the <dfn id=attr-track-charset title=attr-track-charset><code>charset</code></dfn> attribute may
<p>If the elements's <a href=#track-url>track URL</a> identifies a resource
that <dfn id=supports-external-timed-track-character-encoding-overrides>supports external timed track character encoding
overrides</dfn>, then the <dfn id=attr-track-charset title=attr-track-charset><code>charset</code></dfn> attribute may
be specified. If the attribute is set, its value must be a valid
character encoding name, must be an <a href=#ascii-case-insensitive>ASCII
case-insensitive</a> match for the <a href=#preferred-mime-name>preferred MIME
name</a> for that encoding, and must match the character encoding
of the <a href=#websrt>WebSRT</a> file. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>
of the resource in question. <a href=#refsIANACHARSET>[IANACHARSET]</a></p>

<p>The <dfn id=attr-track-srclang title=attr-track-srclang><code>srclang</code></dfn>
attribute gives the language of the timed track data. The value must
Expand Down Expand Up @@ -27117,9 +27120,13 @@ <h5 id=playing-the-media-resource><span class=secno>4.8.10.8 </span>Playing the

<li><p>Run the <a href=#rules-for-updating-the-timed-track-rendering>rules for updating the timed track
rendering</a> of each of the <a href=#timed-track title="timed track">timed
tracks</a> in <var title="">affected tracks</var> that are <a href=#timed-track-showing title="timed track showing">showing</a> (e.g., for <a href=#timed-track title="timed track">timed tracks</a> based on
<a href=#websrt>WebSRT</a>, the <a href=#rules-for-updating-the-display-of-websrt-timed-tracks>rules for updating the display of
WebSRT timed tracks</a>).</li>
tracks</a> in <var title="">affected tracks</var> that are <a href=#timed-track-showing title="timed track showing">showing</a>.
<!--TTSRT-->
For example, for <a href=#timed-track title="timed track">timed tracks</a>
based on <a href=#websrt>WebSRT</a>, the <a href=#rules-for-updating-the-display-of-websrt-timed-tracks>rules for updating the
display of WebSRT timed tracks</a>.
<!--TTSRT-->
</li>
<!--KEEP-START w3c-html--><!--TT-->

</ol><!--KEEP-END w3c-html--><!--TT--><p>For the purposes of the algorithm above, a <a href=#timed-track-cue>timed track
Expand Down Expand Up @@ -27471,8 +27478,12 @@ <h6 id=timed-track-model><span class=secno>4.8.10.10.1 </span>Timed track model<

<p>A list of <a href=#timed-track-cue title="timed track cue">timed track
cues</a>, along with <dfn id=rules-for-updating-the-timed-track-rendering>rules for updating the timed track
rendering</dfn> (e.g., for <a href=#websrt>WebSRT</a>, the <a href=#rules-for-updating-the-display-of-websrt-timed-tracks>rules
for updating the display of WebSRT timed tracks</a>).</p>
rendering</dfn>.
<!--TTSRT-->
For example, for <a href=#websrt>WebSRT</a>, the <a href=#rules-for-updating-the-display-of-websrt-timed-tracks>rules for updating
the display of WebSRT timed tracks</a>.
<!--TTSRT-->
</p>

<p>The <a href=#timed-track-list-of-cues title="timed track list of cues">list of cues of a
timed track</a> can change dynamically, either because the
Expand Down Expand Up @@ -27543,6 +27554,7 @@ <h6 id=timed-track-model><span class=secno>4.8.10.10.1 </span>Timed track model<
consecutive lines displayed to the right of each other<!-- used for
mongolian -->).</p>

<!--TTSRT-->
<p>If the <a href=#timed-track-cue-writing-direction title="timed track cue writing direction">writing
direction</a> is <a href=#timed-track-cue-horizontal-writing-direction title="timed track cue horizontal
writing direction">horizontal</a>, then <a href=#timed-track-cue-line-position title="timed
Expand All @@ -27557,9 +27569,11 @@ <h6 id=timed-track-model><span class=secno>4.8.10.10.1 </span>Timed track model<
video, and <a href=#timed-track-cue-text-position title="timed track cue text position">text
position</a> and <a href=#timed-track-cue-size title="timed track cue size">size</a>
percentages are relative to the height of the video.</p>
<!--TTSRT-->

</dd>

<!--TTSRT-->
<dt><dfn id=timed-track-cue-snap-to-lines-flag title="timed track cue snap-to-lines flag">A snap-to-lines flag</dfn>
<dd>
<p>A boolean indicating whether the <a href=#timed-track-cue-line-position title="timed track cue
Expand Down Expand Up @@ -27587,6 +27601,7 @@ <h6 id=timed-track-model><span class=secno>4.8.10.10.1 </span>Timed track model<
by the <a href=#timed-track-cue-writing-direction title="timed track cue writing direction">writing
direction</a>.</p>
</dd>
<!--TTSRT-->

<dt><dfn id=timed-track-cue-size title="timed track cue size">A size</dfn>
<dd>
Expand All @@ -27596,6 +27611,7 @@ <h6 id=timed-track-model><span class=secno>4.8.10.10.1 </span>Timed track model<
track cue writing direction">writing direction</a>.</p>
</dd>

<!--TTSRT-->
<dt><dfn id=timed-track-cue-alignment title="timed track cue alignment">An alignment</dfn>
<dd>
<p>An alignment for the text of each line of the cue, either <dfn id=timed-track-cue-start-alignment title="timed track cue start alignment">start alignment</dfn> (the
Expand All @@ -27607,6 +27623,7 @@ <h6 id=timed-track-model><span class=secno>4.8.10.10.1 </span>Timed track model<
depends on the Unicode bidirectional algorithm and the <a href=#timed-track-cue-writing-direction title="timed track cue writing direction">writing
direction</a>. <a href=#refsBIDI>[BIDI]</a></p>
</dd>
<!--TTSRT-->

<dt><dfn id=timed-track-cue-voice-identifier title="timed track cue voice identifier">A voice identifier</dfn>
<dd>
Expand Down Expand Up @@ -27650,10 +27667,12 @@ <h6 id=timed-track-model><span class=secno>4.8.10.10.1 </span>Timed track model<
incident, the user agent must, after having unset the flag for all
the affected cues, apply the <a href=#rules-for-updating-the-timed-track-rendering>rules for updating the timed
track rendering</a> of those <a href=#timed-track title="timed track">timed
tracks</a> (e.g., for <a href=#timed-track title="timed track">timed
tracks</a> based on <a href=#websrt>WebSRT</a>, the <a href=#rules-for-updating-the-display-of-websrt-timed-tracks>rules for
updating the display of WebSRT timed tracks</a>).</p>

tracks</a>.
<!--TTSRT-->
For example, for <a href=#timed-track title="timed track">timed tracks</a>
based on <a href=#websrt>WebSRT</a>, the <a href=#rules-for-updating-the-display-of-websrt-timed-tracks>rules for updating the
display of WebSRT timed tracks</a>.</p>
<!--TTSRT-->
</dd>

<dt>The <dfn id=timed-track-cue-display-state title="timed track cue display state">display state</dfn>
Expand Down Expand Up @@ -27913,8 +27932,11 @@ <h6 id=sourcing-out-of-band-timed-tracks><span class=secno>4.8.10.10.3 </span>So
unsupported (this causes the load to fail, as described below). If
a type is obtained, and represents a supported timed track format,
then the resource's data must be passed to the appropriate parser
(e.g. the <a href=#websrt-parser>WebSRT parser</a> if the <a href=#content-type title=Content-Type>Content Type metadata</a> is
<code><a href=#text/srt>text/srt</a></code>) as it is received, with the <a href=#timed-track-list-of-cues>timed
<!--TTSRT-->
(e.g. the <a href=#websrt-parser>WebSRT parser</a> if the <a href=#content-type title=Content-Type>Content Type metadata</a> is
<code><a href=#text/srt>text/srt</a></code>)
<!--TTSRT-->
as it is received, with the <a href=#timed-track-list-of-cues>timed
track list of cues</a> being used for that parser's output. If
the <code><a href=#the-track-element>track</a></code> element has a <code title=attr-track-charset><a href=#attr-track-charset>charset</a></code> attribute that specifies
a supported character encoding, then that encoding must be given
Expand Down Expand Up @@ -28004,6 +28026,7 @@ <h6 id=sourcing-out-of-band-timed-tracks><span class=secno>4.8.10.10.3 </span>So
</ol></div>


<!--TTSRT-->
<div class=impl>

<h6 id=guidelines-for-exposing-cues-in-various-formats-as-timed-track-cues><span class=secno>4.8.10.10.4 </span><dfn>Guidelines for exposing cues</dfn> in various formats as
Expand Down Expand Up @@ -28071,6 +28094,7 @@ <h6 id=guidelines-for-exposing-cues-in-various-formats-as-timed-track-cues><span
</dd>

</dl></div>
<!--TTSRT-->


<h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
Expand Down Expand Up @@ -28374,10 +28398,13 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
<a href=#timed-track-readiness-state>timed track readiness state</a> to the <a href=#timed-track-loaded>timed track
loaded</a> state, its <a href=#timed-track-mode>timed track mode</a> to the
<a href=#timed-track-hidden>timed track hidden</a> mode, and its <a href=#timed-track-list-of-cues>timed track
list of cues</a> to an empty list, associated with the
list of cues</a> to an empty list.
<!--TTSRT-->
Associate the <a href=#timed-track-list-of-cues>timed track list of cues</a> with the
<a href=#rules-for-updating-the-display-of-websrt-timed-tracks>rules for updating the display of WebSRT timed tracks</a>
as its <a href=#rules-for-updating-the-timed-track-rendering>rules for updating the timed track
rendering</a>.</p>
as its <a href=#rules-for-updating-the-timed-track-rendering>rules for updating the timed track rendering</a>.
<!--TTSRT-->
</p>

</li>

Expand Down Expand Up @@ -28525,7 +28552,10 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>

</div>

<hr><pre class=idl>[<a href=#dom-timedtrackcue title=dom-TimedTrackCue>Constructor</a>(in DOMString id, in double startTime, in double endTime, in DOMString text, in optional DOMString settings, in optional DOMString voice, in optional boolean pauseOnExit)]
<hr><pre class=idl>
<!--TTSRT-->
[<a href=#dom-timedtrackcue title=dom-TimedTrackCue>Constructor</a>(in DOMString id, in double startTime, in double endTime, in DOMString text, in optional DOMString settings, in optional DOMString voice, in optional boolean pauseOnExit)]
<!--TTSRT-->
interface <dfn id=timedtrackcue>TimedTrackCue</dfn> {
readonly attribute <a href=#timedtrack>TimedTrack</a> <a href=#dom-timedtrackcue-track title=dom-TimedTrackCue-track>track</a>;
readonly attribute DOMString <a href=#dom-timedtrackcue-id title=dom-TimedTrackCue-id>id</a>;
Expand All @@ -28534,12 +28564,14 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
readonly attribute double <a href=#dom-timedtrackcue-endtime title=dom-TimedTrackCue-endTime>endTime</a>;
readonly attribute boolean <a href=#dom-timedtrackcue-pauseonexit title=dom-TimedTrackCue-pauseOnExit>pauseOnExit</a>;

<!--TTSRT-->
readonly attribute DOMString <a href=#dom-timedtrackcue-direction title=dom-TimedTrackCue-direction>direction</a>;
readonly attribute boolean <a href=#dom-timedtrackcue-snaptolines title=dom-TimedTrackCue-snapToLines>snapToLines</a>;
readonly attribute long <a href=#dom-timedtrackcue-lineposition title=dom-TimedTrackCue-linePosition>linePosition</a>;
readonly attribute long <a href=#dom-timedtrackcue-textposition title=dom-TimedTrackCue-textPosition>textPosition</a>;
readonly attribute long <a href=#dom-timedtrackcue-size title=dom-TimedTrackCue-size>size</a>;
readonly attribute DOMString <a href=#dom-timedtrackcue-alignment title=dom-TimedTrackCue-alignment>alignment</a>;
<!--TTSRT-->

readonly attribute DOMString <a href=#dom-timedtrackcue-voice title=dom-TimedTrackCue-voice>voice</a>;
DOMString <a href=#dom-timedtrackcue-getcueassource() title=dom-TimedTrackCue-getCueAsSource()>getCueAsSource</a>();
Expand All @@ -28549,7 +28581,7 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrackcue-onexit title=handler-TimedTrackCue-onexit>onexit</a>;
};</pre>

<dl class=domintro><dt><var title="">cue</var> = new <code title=dom-TimedTrackCue><a href=#dom-timedtrackcue>TimedTrackCue</a></code>( <var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> [, <var title="">settings</var> [, <var title="">voice</var> [, <var title="">pauseOnExit</var> ] ] ] )</dt>
<dl class=domintro><!--TTSRT--><dt><var title="">cue</var> = new <code title=dom-TimedTrackCue><a href=#dom-timedtrackcue>TimedTrackCue</a></code>( <var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> [, <var title="">settings</var> [, <var title="">voice</var> [, <var title="">pauseOnExit</var> ] ] ] )</dt>
<dd>
<p>Returns a new <code><a href=#timedtrackcue>TimedTrackCue</a></code> object, for use with the <code title=dom-MutableTimedTrack-addCue><a href=#dom-mutabletimedtrack-addcue>addCue()</a></code> method.</p>
<p>The <var title="">id</var> argument sets the <a href=#timed-track-cue-identifier>timed track cue identifier</a>.</p>
Expand All @@ -28560,6 +28592,7 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
<p>The <var title="">voice</var> argument sets the <a href=#timed-track-cue-voice-identifier>timed track cue voice identifier</a>. If omitted, the empty string is assumed.</p>
<p>The <var title="">pauseOnExit</var> argument sets the <a href=#timed-track-cue-pause-on-exit-flag>timed track cue pause-on-exit flag</a>. If omitted, false is assumed.</p>
</dd>
<!--TTSRT-->

<dt><var title="">cue</var> . <a href=#dom-timedtrackcue-track title=dom-TimedTrackCue-track>track</a></dt>
<dd>
Expand Down Expand Up @@ -28588,6 +28621,7 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
<p>Returns true if the <a href=#timed-track-cue-pause-on-exit-flag>timed track cue pause-on-exit flag</a> is set, false otherwise.</p>
</dd>

<!--TTSRT-->
<dt><var title="">cue</var> . <a href=#dom-timedtrackcue-direction title=dom-TimedTrackCue-direction>direction</a></dt>
<dd>
<p>Returns a string representing the <a href=#timed-track-cue-writing-direction>timed track cue writing direction</a>, as follows:</p>
Expand Down Expand Up @@ -28631,6 +28665,7 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
<dt>If it is <a href=#timed-track-cue-end-alignment title="timed track cue end alignment">end alignment</a></dt>
<dd><p>The string "<code title="">end</code>".</dd>
</dl></dd>
<!--TTSRT-->

<dt><var title="">cue</var> . <a href=#dom-timedtrackcue-voice title=dom-TimedTrackCue-voice>voice</a></dt>
<dd>
Expand All @@ -28649,6 +28684,7 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>

</dl><div class=impl>

<!--TTSRT-->
<p>The <dfn id=dom-timedtrackcue title=dom-TimedTrackCue><code>TimedTrackCue(<var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var>, <var title="">settings</var>, <var title="">voice</var>, <var title="">pauseOnExit</var>)</code></dfn> constructor, when invoked,
must run the following steps:</p>

Expand Down Expand Up @@ -28716,7 +28752,7 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
<li><p>Return the <code><a href=#timedtrackcue>TimedTrackCue</a></code> object representing
<var title="">cue</var>.</li>

</ol><p>The <dfn id=dom-timedtrackcue-track title=dom-TimedTrackCue-track><code>track</code></dfn>
</ol><!--TTSRT--><p>The <dfn id=dom-timedtrackcue-track title=dom-TimedTrackCue-track><code>track</code></dfn>
attribute must return the <code><a href=#timedtrack>TimedTrack</a></code> object of the
<a href=#timed-track>timed track</a> with which the <a href=#timed-track-cue>timed track cue</a>
that the <code><a href=#timedtrackcue>TimedTrackCue</a></code> object represents is associated,
Expand Down Expand Up @@ -28748,6 +28784,7 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
direction</a> of the <a href=#timed-track-cue>timed track cue</a> that the
<code><a href=#timedtrackcue>TimedTrackCue</a></code> object represents.</p>

<!--TTSRT-->
<p>The <dfn id=dom-timedtrackcue-snaptolines title=dom-TimedTrackCue-snapToLines><code>snapToLines</code></dfn>
attribute must return true if the <a href=#timed-track-cue-snap-to-lines-flag>timed track cue
snap-to-lines flag</a> of the <a href=#timed-track-cue>timed track cue</a> that
Expand Down Expand Up @@ -28798,6 +28835,7 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
attribute must return the <a href=#timed-track-cue-alignment>timed track cue alignment</a> of
the <a href=#timed-track-cue>timed track cue</a> that the <code><a href=#timedtrackcue>TimedTrackCue</a></code>
object represents.</p>
<!--TTSRT-->

<p>The <dfn id=dom-timedtrackcue-voice title=dom-TimedTrackCue-voice><code>voice</code></dfn>
attribute must return the <a href=#timed-track-cue-voice-identifier>timed track cue voice
Expand All @@ -28811,9 +28849,13 @@ <h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
method must convert the <a href=#timed-track-cue-text>timed track cue text</a> to a
<code><a href=#documentfragment>DocumentFragment</a></code> for the <a href=#media-element>media element</a>'s
<code><a href=#document>Document</a></code>, using the appropriate rules for doing
so. (For example, for <a href=#websrt>WebSRT</a>, those rules are the
so.
<!--TTSRT-->
For example, for <a href=#websrt>WebSRT</a>, those rules are the
<a href=#websrt-cue-text-parsing-rules>WebSRT cue text parsing rules</a> and the <a href=#websrt-cue-text-dom-construction-rules>WebSRT cue
text DOM construction rules</a>.)</p>
text DOM construction rules</a>.
<!--TTSRT-->
</p>

</div>

Expand Down Expand Up @@ -29120,7 +29162,13 @@ <h6 id=syntax-0><span class=secno>4.8.10.11.1 </span>Syntax</h6>
<li>If the last end tag string was not omitted: Optionally, a <a href=#websrt-line-terminator>WebSRT line terminator</a>.</li>
<li>If the last end tag string was not omitted: Zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters, each optionally followed by a <a href=#websrt-line-terminator>WebSRT line terminator</a>.</li>
<li>The string "<code title="">&lt;/ruby&gt;</code>".</li>
</ol><div class=impl>
</ol><p>For historical reasons, <a href=#websrt-file title="WebSRT file">WebSRT
files</a> <a href=#supports-external-timed-track-character-encoding-overrides title="supports external timed track character
encoding overrides">support external timed track character encoding
overrides</a>.</p>


<div class=impl>

<h6 id=parsing-0><span class=secno>4.8.10.11.2 </span>Parsing</h6>

Expand Down

0 comments on commit 6e3d951

Please sign in to comment.