[html5] r5119 - [ac] (0) Captions - Stage 11.8: Finishing off the WebSRT syntax definition
whatwg at whatwg.org
whatwg at whatwg.org
Tue Jun 29 12:23:22 PDT 2010
Author: ianh
Date: 2010-06-29 12:23:21 -0700 (Tue, 29 Jun 2010)
New Revision: 5119
Modified:
complete.html
index
source
Log:
[ac] (0) Captions - Stage 11.8: Finishing off the WebSRT syntax definition
Modified: complete.html
===================================================================
--- complete.html 2010-06-29 17:49:12 UTC (rev 5118)
+++ complete.html 2010-06-29 19:23:21 UTC (rev 5119)
@@ -26689,7 +26689,8 @@
</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>
+ SIGN), nor containing any U+000A LINE FEED (LF) characters or U+000D
+ CARRIAGE RETURN (CR) characters.</p>
<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
@@ -26742,7 +26743,12 @@
<li>Three characters in the range U+0030 DIGIT ZERO (0) to U+0039
DIGIT NINE (9), representing the thousandths of a second <var title="">seconds-frac</var> as a base ten integer.</li>
- </ol><p>The <dfn id=websrt-cue-settings>WebSRT cue settings</dfn> part of a <a href=#websrt-cue>WebSRT
+ </ol><p>Each <a href=#websrt-timestamp>WebSRT timestamp</a> in a <a href=#websrt-file>WebSRT file</a>
+ must represent a time greater than than all the times represented by
+ <a href=#websrt-timestamp title="WebSRT timestamp">WebSRT timestamps</a> earlier in
+ the file.</p>
+
+ <p>The <dfn id=websrt-cue-settings>WebSRT cue settings</dfn> part of a <a href=#websrt-cue>WebSRT
cue</a> consists of zero or more of the following components, in
any order, separated from each other by one or more U+0020 SPACE
characters or U+0009 CHARACTER TABULATION (tab) characters. Each
@@ -26797,11 +26803,82 @@
<ol><li>A U+0041 LATIN CAPITAL LETTER A character.</li>
<li>A U+003A COLON character (:).</li>
<li>One of the following strings: "<code title="">start</code>", "<code title="">middle</code>", "<code title="">end</code>"</li>
- </ol><p class=XXX><dfn id=websrt-voice-declaration>WebSRT voice declaration</dfn>; <dfn id=websrt-cue-text-line>WebSRT cue text line</dfn></p>
+ </ol><p>A <dfn id=websrt-voice-declaration>WebSRT voice declaration</dfn> consists of the following
+ components, in the order given:</p>
+ <ol><li>A U+003C LESS-THAN SIGN character (<).</li>
+ <li>One of the following:
+ <ul class=brief><li>One character in the range U+0031 DIGIT ONE (1) to U+0039
+ DIGIT NINE (9), followed by zero or more characters in the range
+ U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9)
+ <li>The string "<code title="">narrator</code>".</li>
+ <li>The string "<code title="">music</code>".</li>
+ <li>The string "<code title="">sound</code>".</li> <!-- for audio fx descriptions -->
+ <li>The string "<code title="">comment</code>".</li> <!-- for annotations -->
+ <li>The string "<code title="">credit</code>".</li>
+ </ul></li>
+ <li>A U+003E GREATER-THAN SIGN character (>).</li>
+ </ol><p>A <dfn id=websrt-cue-text-line>WebSRT cue text line</dfn> consists of one or more of the
+ following components, in any order:</p>
- <div class=impl>
+ <ul><li>A <a href=#websrt-cue-text-span>WebSRT cue text span</a>, representing text of the cue.</li>
+ <li>A <a href=#websrt-cue-amp-escape>WebSRT cue amp escape</a>, representing a "&" character in the text of the cue.</li>
+ <li>A <a href=#websrt-cue-lt-escape>WebSRT cue lt escape</a>, representing a "<" character in the text of the cue.</li>
+ <li>A <a href=#websrt-cue-timestamp>WebSRT cue timestamp</a>.</li>
+ <li>A <a href=#websrt-cue-italics-span>WebSRT cue italics span</a>.</li>
+ <li>A <a href=#websrt-cue-bold-span>WebSRT cue bold span</a>.</li>
+ <li>A <a href=#websrt-cue-ruby-span>WebSRT cue ruby span</a>.</li>
+ </ul><p>A <dfn id=websrt-cue-text-span>WebSRT cue text span</dfn> consists of one or more
+ characters other than U+000A LINE FEED (LF) characters, U+000D
+ CARRIAGE RETURN (CR) characters, U+0026 AMPERSAND characters (&),
+ and U+003C LESS-THAN SIGN characters (<).</p>
+ <p>A <dfn id=websrt-cue-amp-escape>WebSRT cue amp escape</dfn> is the five character string
+ consisting of a U+0026 AMPERSAND character (&), a U+0061 LATIN SMALL
+ LETTER A character, a U+006D LATIN SMALL LETTER M character, a
+ U+0070 LATIN SMALL LETTER P character, and a U+003B SEMICOLON
+ character (;).
+
+ <p>A <dfn id=websrt-cue-lt-escape>WebSRT cue lt escape</dfn> is the five character string
+ consisting of a U+0026 AMPERSAND character (&), a U+006C LATIN SMALL
+ LETTER L character, a U+0074 LATIN SMALL LETTER T character, and a
+ U+003B SEMICOLON character (;).
+
+ <p>A <dfn id=websrt-cue-timestamp>WebSRT cue timestamp</dfn> consists of a U+003C LESS-THAN
+ SIGN character (<), followed by a <a href=#websrt-timestamp>WebSRT timestamp</a>
+ representing the time that the given point in the cue becomes
+ active, followed by a U+003E GREATER-THAN SIGN character (>).</p>
+
+ <p>A <dfn id=websrt-cue-italics-span>WebSRT cue italics span</dfn> consists of a U+003C
+ LESS-THAN SIGN character (<), a U+0069 LATIN SMALL LETTER I
+ character, and a U+003E GREATER-THAN SIGN character (>), then a
+ <a href=#websrt-cue-text-line>WebSRT cue text line</a> representing the italicized text, and finally a U+003C LESS-THAN
+ SIGN character (<), a U+002F SOLIDUS character (/), a U+0069 LATIN
+ SMALL LETTER I character, and a U+003E GREATER-THAN SIGN character
+ (>).</p>
+
+ <p>A <dfn id=websrt-cue-bold-span>WebSRT cue bold span</dfn> consists of a U+003C LESS-THAN
+ SIGN character (<), a U+0062 LATIN SMALL LETTER B character, and a
+ U+003E GREATER-THAN SIGN character (>), then a <a href=#websrt-cue-text-line>WebSRT cue text
+ line</a> representing the bolded text, and finally a U+003C
+ LESS-THAN SIGN character (<), a U+002F SOLIDUS character (/), a
+ U+0062 LATIN SMALL LETTER B character, and a U+003E GREATER-THAN
+ SIGN character (>).</p>
+
+ <p>A <dfn id=websrt-cue-ruby-span>WebSRT cue ruby span</dfn> consists of the following
+ components, in the order given:</p>
+
+ <ol><li>The string "<code title=""><ruby></code>".</li>
+ <li>One or more occurances of the following group of components, in the order given:
+ <ol><li>A <a href=#websrt-cue-text-line>WebSRT cue text line</a>, representing the ruby base.</li>
+ <li>The string "<code title=""><rt></code>".</li>
+ <li>A <a href=#websrt-cue-text-line>WebSRT cue text line</a>, representing the ruby text component of th ruby annotation.</li>
+ <li>The string "<code title=""></rt></code>".</li>
+ </ol></li>
+ <li>Zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters.</li>
+ <li>The string "<code title=""></ruby></code>".</li>
+ </ol><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 and a
Modified: index
===================================================================
--- index 2010-06-29 17:49:12 UTC (rev 5118)
+++ index 2010-06-29 19:23:21 UTC (rev 5119)
@@ -26616,7 +26616,8 @@
</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>
+ SIGN), nor containing any U+000A LINE FEED (LF) characters or U+000D
+ CARRIAGE RETURN (CR) characters.</p>
<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
@@ -26669,7 +26670,12 @@
<li>Three characters in the range U+0030 DIGIT ZERO (0) to U+0039
DIGIT NINE (9), representing the thousandths of a second <var title="">seconds-frac</var> as a base ten integer.</li>
- </ol><p>The <dfn id=websrt-cue-settings>WebSRT cue settings</dfn> part of a <a href=#websrt-cue>WebSRT
+ </ol><p>Each <a href=#websrt-timestamp>WebSRT timestamp</a> in a <a href=#websrt-file>WebSRT file</a>
+ must represent a time greater than than all the times represented by
+ <a href=#websrt-timestamp title="WebSRT timestamp">WebSRT timestamps</a> earlier in
+ the file.</p>
+
+ <p>The <dfn id=websrt-cue-settings>WebSRT cue settings</dfn> part of a <a href=#websrt-cue>WebSRT
cue</a> consists of zero or more of the following components, in
any order, separated from each other by one or more U+0020 SPACE
characters or U+0009 CHARACTER TABULATION (tab) characters. Each
@@ -26724,11 +26730,82 @@
<ol><li>A U+0041 LATIN CAPITAL LETTER A character.</li>
<li>A U+003A COLON character (:).</li>
<li>One of the following strings: "<code title="">start</code>", "<code title="">middle</code>", "<code title="">end</code>"</li>
- </ol><p class=XXX><dfn id=websrt-voice-declaration>WebSRT voice declaration</dfn>; <dfn id=websrt-cue-text-line>WebSRT cue text line</dfn></p>
+ </ol><p>A <dfn id=websrt-voice-declaration>WebSRT voice declaration</dfn> consists of the following
+ components, in the order given:</p>
+ <ol><li>A U+003C LESS-THAN SIGN character (<).</li>
+ <li>One of the following:
+ <ul class=brief><li>One character in the range U+0031 DIGIT ONE (1) to U+0039
+ DIGIT NINE (9), followed by zero or more characters in the range
+ U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9)
+ <li>The string "<code title="">narrator</code>".</li>
+ <li>The string "<code title="">music</code>".</li>
+ <li>The string "<code title="">sound</code>".</li> <!-- for audio fx descriptions -->
+ <li>The string "<code title="">comment</code>".</li> <!-- for annotations -->
+ <li>The string "<code title="">credit</code>".</li>
+ </ul></li>
+ <li>A U+003E GREATER-THAN SIGN character (>).</li>
+ </ol><p>A <dfn id=websrt-cue-text-line>WebSRT cue text line</dfn> consists of one or more of the
+ following components, in any order:</p>
- <div class=impl>
+ <ul><li>A <a href=#websrt-cue-text-span>WebSRT cue text span</a>, representing text of the cue.</li>
+ <li>A <a href=#websrt-cue-amp-escape>WebSRT cue amp escape</a>, representing a "&" character in the text of the cue.</li>
+ <li>A <a href=#websrt-cue-lt-escape>WebSRT cue lt escape</a>, representing a "<" character in the text of the cue.</li>
+ <li>A <a href=#websrt-cue-timestamp>WebSRT cue timestamp</a>.</li>
+ <li>A <a href=#websrt-cue-italics-span>WebSRT cue italics span</a>.</li>
+ <li>A <a href=#websrt-cue-bold-span>WebSRT cue bold span</a>.</li>
+ <li>A <a href=#websrt-cue-ruby-span>WebSRT cue ruby span</a>.</li>
+ </ul><p>A <dfn id=websrt-cue-text-span>WebSRT cue text span</dfn> consists of one or more
+ characters other than U+000A LINE FEED (LF) characters, U+000D
+ CARRIAGE RETURN (CR) characters, U+0026 AMPERSAND characters (&),
+ and U+003C LESS-THAN SIGN characters (<).</p>
+ <p>A <dfn id=websrt-cue-amp-escape>WebSRT cue amp escape</dfn> is the five character string
+ consisting of a U+0026 AMPERSAND character (&), a U+0061 LATIN SMALL
+ LETTER A character, a U+006D LATIN SMALL LETTER M character, a
+ U+0070 LATIN SMALL LETTER P character, and a U+003B SEMICOLON
+ character (;).
+
+ <p>A <dfn id=websrt-cue-lt-escape>WebSRT cue lt escape</dfn> is the five character string
+ consisting of a U+0026 AMPERSAND character (&), a U+006C LATIN SMALL
+ LETTER L character, a U+0074 LATIN SMALL LETTER T character, and a
+ U+003B SEMICOLON character (;).
+
+ <p>A <dfn id=websrt-cue-timestamp>WebSRT cue timestamp</dfn> consists of a U+003C LESS-THAN
+ SIGN character (<), followed by a <a href=#websrt-timestamp>WebSRT timestamp</a>
+ representing the time that the given point in the cue becomes
+ active, followed by a U+003E GREATER-THAN SIGN character (>).</p>
+
+ <p>A <dfn id=websrt-cue-italics-span>WebSRT cue italics span</dfn> consists of a U+003C
+ LESS-THAN SIGN character (<), a U+0069 LATIN SMALL LETTER I
+ character, and a U+003E GREATER-THAN SIGN character (>), then a
+ <a href=#websrt-cue-text-line>WebSRT cue text line</a> representing the italicized text, and finally a U+003C LESS-THAN
+ SIGN character (<), a U+002F SOLIDUS character (/), a U+0069 LATIN
+ SMALL LETTER I character, and a U+003E GREATER-THAN SIGN character
+ (>).</p>
+
+ <p>A <dfn id=websrt-cue-bold-span>WebSRT cue bold span</dfn> consists of a U+003C LESS-THAN
+ SIGN character (<), a U+0062 LATIN SMALL LETTER B character, and a
+ U+003E GREATER-THAN SIGN character (>), then a <a href=#websrt-cue-text-line>WebSRT cue text
+ line</a> representing the bolded text, and finally a U+003C
+ LESS-THAN SIGN character (<), a U+002F SOLIDUS character (/), a
+ U+0062 LATIN SMALL LETTER B character, and a U+003E GREATER-THAN
+ SIGN character (>).</p>
+
+ <p>A <dfn id=websrt-cue-ruby-span>WebSRT cue ruby span</dfn> consists of the following
+ components, in the order given:</p>
+
+ <ol><li>The string "<code title=""><ruby></code>".</li>
+ <li>One or more occurances of the following group of components, in the order given:
+ <ol><li>A <a href=#websrt-cue-text-line>WebSRT cue text line</a>, representing the ruby base.</li>
+ <li>The string "<code title=""><rt></code>".</li>
+ <li>A <a href=#websrt-cue-text-line>WebSRT cue text line</a>, representing the ruby text component of th ruby annotation.</li>
+ <li>The string "<code title=""></rt></code>".</li>
+ </ol></li>
+ <li>Zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters.</li>
+ <li>The string "<code title=""></ruby></code>".</li>
+ </ol><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 and a
Modified: source
===================================================================
--- source 2010-06-29 17:49:12 UTC (rev 5118)
+++ source 2010-06-29 19:23:21 UTC (rev 5119)
@@ -28895,7 +28895,8 @@
<p>A <dfn>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>
+ SIGN), nor containing any U+000A LINE FEED (LF) characters or U+000D
+ CARRIAGE RETURN (CR) characters.</p>
<p>The <dfn>WebSRT cue timings</dfn> part of a <span>WebSRT
cue</span> consists of the following components, in the given
@@ -28967,6 +28968,11 @@
</ol>
+ <p>Each <span>WebSRT timestamp</span> in a <span>WebSRT file</span>
+ must represent a time greater than than all the times represented by
+ <span title="WebSRT timestamp">WebSRT timestamps</span> earlier in
+ the file.</p>
+
<p>The <dfn>WebSRT cue settings</dfn> part of a <span>WebSRT
cue</span> consists of zero or more of the following components, in
any order, separated from each other by one or more U+0020 SPACE
@@ -29046,9 +29052,93 @@
<li>One of the following strings: "<code title="">start</code>", "<code title="">middle</code>", "<code title="">end</code>"</li>
</ol>
- <p class="XXX"><dfn>WebSRT voice declaration</dfn>; <dfn>WebSRT cue text line</dfn></p>
+ <p>A <dfn>WebSRT voice declaration</dfn> consists of the following
+ components, in the order given:</p>
+ <ol>
+ <li>A U+003C LESS-THAN SIGN character (<).</li>
+ <li>One of the following:
+ <ul class="brief">
+ <li>One character in the range U+0031 DIGIT ONE (1) to U+0039
+ DIGIT NINE (9), followed by zero or more characters in the range
+ U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9)
+ <li>The string "<code title="">narrator</code>".</li>
+ <li>The string "<code title="">music</code>".</li>
+ <li>The string "<code title="">sound</code>".</li> <!-- for audio fx descriptions -->
+ <li>The string "<code title="">comment</code>".</li> <!-- for annotations -->
+ <li>The string "<code title="">credit</code>".</li>
+ </ul>
+ </li>
+ <li>A U+003E GREATER-THAN SIGN character (>).</li>
+ </ol>
+ <p>A <dfn>WebSRT cue text line</dfn> consists of one or more of the
+ following components, in any order:</p>
+
+ <ul>
+ <li>A <span>WebSRT cue text span</span>, representing text of the cue.</li>
+ <li>A <span>WebSRT cue amp escape</span>, representing a "&" character in the text of the cue.</li>
+ <li>A <span>WebSRT cue lt escape</span>, representing a "<" character in the text of the cue.</li>
+ <li>A <span>WebSRT cue timestamp</span>.</li>
+ <li>A <span>WebSRT cue italics span</span>.</li>
+ <li>A <span>WebSRT cue bold span</span>.</li>
+ <li>A <span>WebSRT cue ruby span</span>.</li>
+ </ul>
+
+ <p>A <dfn>WebSRT cue text span</dfn> consists of one or more
+ characters other than U+000A LINE FEED (LF) characters, U+000D
+ CARRIAGE RETURN (CR) characters, U+0026 AMPERSAND characters (&),
+ and U+003C LESS-THAN SIGN characters (<).</p>
+
+ <p>A <dfn>WebSRT cue amp escape</dfn> is the five character string
+ consisting of a U+0026 AMPERSAND character (&), a U+0061 LATIN SMALL
+ LETTER A character, a U+006D LATIN SMALL LETTER M character, a
+ U+0070 LATIN SMALL LETTER P character, and a U+003B SEMICOLON
+ character (;).
+
+ <p>A <dfn>WebSRT cue lt escape</dfn> is the five character string
+ consisting of a U+0026 AMPERSAND character (&), a U+006C LATIN SMALL
+ LETTER L character, a U+0074 LATIN SMALL LETTER T character, and a
+ U+003B SEMICOLON character (;).
+
+ <p>A <dfn>WebSRT cue timestamp</dfn> consists of a U+003C LESS-THAN
+ SIGN character (<), followed by a <span>WebSRT timestamp</span>
+ representing the time that the given point in the cue becomes
+ active, followed by a U+003E GREATER-THAN SIGN character (>).</p>
+
+ <p>A <dfn>WebSRT cue italics span</dfn> consists of a U+003C
+ LESS-THAN SIGN character (<), a U+0069 LATIN SMALL LETTER I
+ character, and a U+003E GREATER-THAN SIGN character (>), then a
+ <span>WebSRT cue text line</span> representing the italicized text, and finally a U+003C LESS-THAN
+ SIGN character (<), a U+002F SOLIDUS character (/), a U+0069 LATIN
+ SMALL LETTER I character, and a U+003E GREATER-THAN SIGN character
+ (>).</p>
+
+ <p>A <dfn>WebSRT cue bold span</dfn> consists of a U+003C LESS-THAN
+ SIGN character (<), a U+0062 LATIN SMALL LETTER B character, and a
+ U+003E GREATER-THAN SIGN character (>), then a <span>WebSRT cue text
+ line</span> representing the bolded text, and finally a U+003C
+ LESS-THAN SIGN character (<), a U+002F SOLIDUS character (/), a
+ U+0062 LATIN SMALL LETTER B character, and a U+003E GREATER-THAN
+ SIGN character (>).</p>
+
+ <p>A <dfn>WebSRT cue ruby span</dfn> consists of the following
+ components, in the order given:</p>
+
+ <ol>
+ <li>The string "<code title=""><ruby></code>".</li>
+ <li>One or more occurances of the following group of components, in the order given:
+ <ol>
+ <li>A <span>WebSRT cue text line</span>, representing the ruby base.</li>
+ <li>The string "<code title=""><rt></code>".</li>
+ <li>A <span>WebSRT cue text line</span>, representing the ruby text component of th ruby annotation.</li>
+ <li>The string "<code title=""></rt></code>".</li>
+ </ol>
+ </li>
+ <li>Zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters.</li>
+ <li>The string "<code title=""></ruby></code>".</li>
+ </ol>
+
<div class="impl">
<h6>Parsing</h6>
More information about the Commit-Watchers
mailing list