- From: poot <cvsmail@w3.org>
- Date: Thu, 6 May 2010 05:23:01 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Captions - Stage 9: The beginnings of the syntax and parser rules for WebSRT. (whatwg r5079) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4080&r2=1.4081&f=h http://html5.org/tools/web-apps-tracker?from=5078&to=5079 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.4080 retrieving revision 1.4081 diff -u -d -r1.4080 -r1.4081 --- Overview.html 5 May 2010 08:23:57 -0000 1.4080 +++ Overview.html 5 May 2010 20:22:45 -0000 1.4081 @@ -22776,13 +22776,66 @@ <h5 id="websrt"><span class="secno">4.8.10.11 </span>WebSRT</h5><p>The WebSRT format (Web Subtitle Resource Tracks) is a format - intended for marking up external timed track resources.<h6 id="syntax-0"><span class="secno">4.8.10.11.1 </span>Syntax</h6><p class="XXX">... + intended for marking up external timed track resources.<h6 id="syntax-0"><span class="secno">4.8.10.11.1 </span>Syntax</h6><p>A <dfn id="websrt-file">WebSRT file</dfn> must consist of a <a href="#websrt-file-body">WebSRT file + body</a> encoded as UTF-8.<p>A <dfn id="websrt-file-body">WebSRT file body</dfn> consists of zero or more <a href="#websrt-cue" title="WebSRT cue">WebSRT cues</a> separated from each other by + two or more <a href="#websrt-line-terminator" title="WebSRT line terminator">WebSRT line + terminators</a>.<p>A <dfn id="websrt-cue">WebSRT cue</dfn> consists of the following components, in + the given order:<ol><li>Optionally, a <a href="#websrt-cue-identifier">WebSRT cue identifier</a>.</li> + <li><a href="#websrt-cue-timings">WebSRT cue timings</a>.</li> + <li>Optionally, <a href="#websrt-cue-settings">WebSRT cue settings</a>.</li> + <li>A <a href="#websrt-line-terminator">WebSRT line terminator</a>.</li> + <li>Optionally, a <a href="#websrt-voice-declaration">WebSRT voice declaration</a>.</li> + <li>One or more <a href="#websrt-cue-text-line" title="WebSRT cue text line">WebSRT cue text lines</a>, each separated from the next by a <a href="#websrt-line-terminator">WebSRT line terminator</a>.</li> + <li>Zero or more <a href="#websrt-line-terminator" title="WebSRT line terminator">WebSRT line terminators</a>.</li> + </ol><p>A <dfn id="websrt-line-terminator">WebSRT line terminator</dfn> consists of one of the + following:<ul class="brief"><li>A U+000D CARRIAGE RETURN U+000A LINE FEED (CRLF) character pair.</li> + <li>A single U+000A LINE FEED (LF) character.</li> + <li>A single U+000D CARRIAGE RETURN (CR) character.</li> + </ul><p>A <dfn id="websrt-cue-identifier">WebSRT cue identifier</dfn> is any sequence of one or more + characters not containing the substring "<code title="">--></code>" + (U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS, U+003E GREATER-THAN + SIGN).<p>The <dfn id="websrt-cue-timings">WebSRT cue timings</dfn> part of a <a href="#websrt-cue">WebSRT + cue</a> consists of the following components, in the given + order:<ol><li>A <a href="#websrt-timestamp">WebSRT timestamp</a> representing the start time + offset of the cue.</li> - <h6 id="parsing-0"><span class="secno">4.8.10.11.2 </span>Parsing</h6><p class="XXX">... + <li>Optionally, a U+0020 SPACE character.</li> + <li>The string "<code title="">--></code>" (U+002D HYPHEN-MINUS, + U+002D HYPHEN-MINUS, U+003E GREATER-THAN SIGN).</li> + <li>Optionally, a U+0020 SPACE character.</li> - <h5 id="user-interface"><span class="secno">4.8.10.12 </span>User interface</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>The <dfn id="attr-media-controls" title="attr-media-controls"><code>controls</code></dfn> + <li>A <a href="#websrt-timestamp">WebSRT timestamp</a> representing the end time + offset of the cue.</li> + + </ol><p>The <dfn id="websrt-cue-settings">WebSRT cue settings</dfn> part of a <a href="#websrt-cue">WebSRT + cue</a> consists of the following components, in the given + order:<ol><li class="XXX">... + + </ol><p class="XXX"><dfn id="websrt-voice-declaration">WebSRT voice declaration</dfn>; <dfn id="websrt-cue-text-line">WebSRT cue text line</dfn>; <dfn id="websrt-timestamp">WebSRT timestamp</dfn><div class="impl"> + + <h6 id="parsing-0"><span class="secno">4.8.10.11.2 </span>Parsing</h6> + + <p>A <dfn id="websrt-parser">WebSRT parser</dfn>, given an input byte stream, must + convert the bytes into Unicode characters by interpreting them as + UTF-8. Bytes or sequences of bytes that are not valid UTF-8 + sequences must be interpreted as a U+FFFD REPLACEMENT CHARACTER. All + U+0000 NULL characters must be replaced by U+FFFD REPLACEMENT + CHARACTERs.</p> + + <p>The Unicode characters from a string that must be parsed + according to the following algorithm:</p> + + <ol><li><p>Let <var title="">input</var> be the string being + parsed.</li> + + <li><p>Let <var title="">position</var> be a pointer into <var title="">input</var>, initially pointing at the start of the + string.</li> + + <li><p class="XXX">...</li> + + </ol></div><h5 id="user-interface"><span class="secno">4.8.10.12 </span>User interface</h5><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>The <dfn id="attr-media-controls" title="attr-media-controls"><code>controls</code></dfn> attribute is a <a href="#boolean-attribute">boolean attribute</a>. If present, it indicates that the author has not provided a scripted controller and would like the user agent to provide its own set of controls.<div class="impl"> @@ -64012,7 +64065,7 @@ - <h4 id="other-elements-attributes-and-apis"><span class="secno">11.3.4 </span>Other elements, attributes and APIs</h4><p class="XXX annotation"><span><a href="http://www.w3.org/html/wg/tracker/issues/82">ISSUE-82</a> (profile-disambiguation) blocks progress to Last Call</span></p> <!-- alphabetical by name and attribute --> + <h4 id="other-elements-attributes-and-apis"><span class="secno">11.3.4 </span>Other elements, attributes and APIs</h4> <!-- alphabetical by name and attribute --> <p>User agents must treat <code><a href="#acronym">acronym</a></code> elements in a manner equivalent to <code><a href="#the-abbr-element">abbr</a></code> elements.</p>
Received on Wednesday, 5 May 2010 20:23:29 UTC