[html5] r5112 - [c] (0) Captions - Stage 11.4: Finish defining the settings and timings part of [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Jun 25 14:40:01 PDT 2010


Author: ianh
Date: 2010-06-25 14:40:00 -0700 (Fri, 25 Jun 2010)
New Revision: 5112

Modified:
   complete.html
   index
   source
Log:
[c] (0) Captions - Stage 11.4: Finish defining the settings and timings part of the syntax.

Modified: complete.html
===================================================================
--- complete.html	2010-06-25 19:22:18 UTC (rev 5111)
+++ complete.html	2010-06-25 21:40:00 UTC (rev 5112)
@@ -26695,9 +26695,9 @@
 
   <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>Optionally, one or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters followed by <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>Optionally, a <a href=#websrt-voice-declaration>WebSRT voice declaration</a> followed by zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters.</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>
   </ol><p>A <dfn id=websrt-line-terminator>WebSRT line terminator</dfn> consists of one of the
   following:</p>
@@ -26714,30 +26714,109 @@
   cue</a> consists of the following components, in the given
   order:</p>
 
-  <ol><li>A <a href=#websrt-timestamp>WebSRT timestamp</a> representing the start time
+  <ol><!-- we could allow leading and trailing spaces and tabs, and make
+   the space between the arrow either optional or allow multiple
+   spaces or tabs --><li>A <a href=#websrt-timestamp>WebSRT timestamp</a> representing the start time
    offset of the cue.</li>
 
-   <li>Optionally, a U+0020 SPACE character.</li>
+   <li>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>
+   <li>A U+0020 SPACE character.</li>
 
    <li>A <a href=#websrt-timestamp>WebSRT timestamp</a> representing the end time
    offset of the cue.</li>
 
+  </ol><p>A <dfn id=websrt-timestamp>WebSRT timestamp</dfn> representing hour <var title="">hours</var>, minutes <var title="">minutes</var>, seconds
+  <var title="">seconds</var>, and thousandths of a second <var title="">seconds-frac</var>, consists of the following components,
+  in the given order:</p>
+
+  <ol><li>Optionally (required if <var title="">hour</var> is non-zero):
+
+    <ol><li>Two or more characters in the range U+0030 DIGIT ZERO (0) to
+     U+0039 DIGIT NINE (9), representing the <var title="">hours</var>
+     as a base ten integer.</li>
+
+     <li>A U+003A COLON character (:)</li>
+
+    </ol></li>
+
+   <li>Two characters in the range U+0030 DIGIT ZERO (0) to U+0039
+   DIGIT NINE (9), representing the <var title="">minutes</var> as a
+   base ten integer in the range 0 ≤ <var title="">minutes</var> ≤ 59.</li>
+
+   <li>A U+003A COLON character (:)</li>
+
+   <li>Two characters in the range U+0030 DIGIT ZERO (0) to U+0039
+   DIGIT NINE (9), representing the <var title="">seconds</var> as a
+   base ten integer in the range 0 ≤ <var title="">seconds</var> ≤ 59.</li>
+
+   <li>A U+003A COLON character (:)</li>
+
+   <li>Either a U+002E FULL STOP character (.) or a U+002C COMMA
+   character (,).</li>
+
+   <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, in the range
+   0 ≤ <var title="">second-frac</var> < 1000.</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:</p>
+  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
+  component must not be included more than once per <a href=#websrt-cue-settings>WebSRT cue
+  settings</a> string.</p>
 
-  <ol><li class=XXX>...
+  <ul class=brief><li>A <a href=#websrt-line-position-cue-setting>WebSRT line position cue setting</a>.</li>
+   <li>A <a href=#websrt-text-position-cue-setting>WebSRT text position cue setting</a>.</li>
+   <li>A <a href=#websrt-alignment-cue-setting>WebSRT alignment cue setting</a>.</li>
+   <li>A <a href=#websrt-size-cue-setting>WebSRT size cue setting</a>.</li>
+   <li>A <a href=#websrt-vertical-text-cue-setting>WebSRT vertical text cue setting</a>.</li>
+  </ul><p>A <dfn id=websrt-line-position-cue-setting>WebSRT line position cue setting</dfn> consists of the
+  following components, in the order given:</p>
 
-  </ol><p>A <dfn id=websrt-timestamp>WebSRT timestamp</dfn> consists of the following
-  components, in the given order:</p>
+  <ol><li><p>A U+004C LATIN CAPITAL LETTER L character.</li>
+   <li><p>A U+003A COLON character (:).</li>
+   <li>Either:
+    <dl><dt>To represent a specific position relative to the video frame</dt>
+     <dd>
+      <ol><li>One or more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).</li>
+       <li>A U+0025 PERCENT SIGN character (%).</li>
+      </ol></dd>
+     <dt>To represent a line number</dt>
+     <dd>
+      <ol><li>Optionally a U+002D HYPHEN-MINUS character (-).</li>
+       <li>One or more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).</li>
+      </ol></dd>
+    </dl></li>
+  </ol><p>A <dfn id=websrt-text-position-cue-setting>WebSRT text position cue setting</dfn> consists of the
+  following components, in the order given:</p>
 
-  <ol><li class=XXX>...
+  <ol><li>A U+0054 LATIN CAPITAL LETTER T character.</li>
+   <li>A U+003A COLON character (:).</li>
+   <li>One or more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).</li>
+   <li>A U+0025 PERCENT SIGN character (%).</li>
+  </ol><p>A <dfn id=websrt-alignment-cue-setting>WebSRT alignment cue setting</dfn> consists of the
+  following components, in the order given:</p>
 
+  <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>A <dfn id=websrt-size-cue-setting>WebSRT size cue setting</dfn> consists of the
+  following components, in the order given:</p>
+
+  <ol><li>A U+0053 LATIN CAPITAL LETTER S character.</li>
+   <li>A U+003A COLON character (:).</li>
+   <li>One or more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).</li>
+   <li>A U+0025 PERCENT SIGN character (%).</li>
+  </ol><p>A <dfn id=websrt-vertical-text-cue-setting>WebSRT vertical text cue setting</dfn> consists of the
+  following components, in the order given:</p>
+
+  <ol><li>A U+0044 LATIN CAPITAL LETTER D character.</li>
+   <li>A U+003A COLON character (:).</li>
+   <li>The string "<code title="">vertical</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>
 
 

Modified: index
===================================================================
--- index	2010-06-25 19:22:18 UTC (rev 5111)
+++ index	2010-06-25 21:40:00 UTC (rev 5112)
@@ -26628,9 +26628,9 @@
 
   <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>Optionally, one or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters followed by <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>Optionally, a <a href=#websrt-voice-declaration>WebSRT voice declaration</a> followed by zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters.</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>
   </ol><p>A <dfn id=websrt-line-terminator>WebSRT line terminator</dfn> consists of one of the
   following:</p>
@@ -26647,30 +26647,109 @@
   cue</a> consists of the following components, in the given
   order:</p>
 
-  <ol><li>A <a href=#websrt-timestamp>WebSRT timestamp</a> representing the start time
+  <ol><!-- we could allow leading and trailing spaces and tabs, and make
+   the space between the arrow either optional or allow multiple
+   spaces or tabs --><li>A <a href=#websrt-timestamp>WebSRT timestamp</a> representing the start time
    offset of the cue.</li>
 
-   <li>Optionally, a U+0020 SPACE character.</li>
+   <li>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>
+   <li>A U+0020 SPACE character.</li>
 
    <li>A <a href=#websrt-timestamp>WebSRT timestamp</a> representing the end time
    offset of the cue.</li>
 
+  </ol><p>A <dfn id=websrt-timestamp>WebSRT timestamp</dfn> representing hour <var title="">hours</var>, minutes <var title="">minutes</var>, seconds
+  <var title="">seconds</var>, and thousandths of a second <var title="">seconds-frac</var>, consists of the following components,
+  in the given order:</p>
+
+  <ol><li>Optionally (required if <var title="">hour</var> is non-zero):
+
+    <ol><li>Two or more characters in the range U+0030 DIGIT ZERO (0) to
+     U+0039 DIGIT NINE (9), representing the <var title="">hours</var>
+     as a base ten integer.</li>
+
+     <li>A U+003A COLON character (:)</li>
+
+    </ol></li>
+
+   <li>Two characters in the range U+0030 DIGIT ZERO (0) to U+0039
+   DIGIT NINE (9), representing the <var title="">minutes</var> as a
+   base ten integer in the range 0 ≤ <var title="">minutes</var> ≤ 59.</li>
+
+   <li>A U+003A COLON character (:)</li>
+
+   <li>Two characters in the range U+0030 DIGIT ZERO (0) to U+0039
+   DIGIT NINE (9), representing the <var title="">seconds</var> as a
+   base ten integer in the range 0 ≤ <var title="">seconds</var> ≤ 59.</li>
+
+   <li>A U+003A COLON character (:)</li>
+
+   <li>Either a U+002E FULL STOP character (.) or a U+002C COMMA
+   character (,).</li>
+
+   <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, in the range
+   0 ≤ <var title="">second-frac</var> < 1000.</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:</p>
+  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
+  component must not be included more than once per <a href=#websrt-cue-settings>WebSRT cue
+  settings</a> string.</p>
 
-  <ol><li class=XXX>...
+  <ul class=brief><li>A <a href=#websrt-line-position-cue-setting>WebSRT line position cue setting</a>.</li>
+   <li>A <a href=#websrt-text-position-cue-setting>WebSRT text position cue setting</a>.</li>
+   <li>A <a href=#websrt-alignment-cue-setting>WebSRT alignment cue setting</a>.</li>
+   <li>A <a href=#websrt-size-cue-setting>WebSRT size cue setting</a>.</li>
+   <li>A <a href=#websrt-vertical-text-cue-setting>WebSRT vertical text cue setting</a>.</li>
+  </ul><p>A <dfn id=websrt-line-position-cue-setting>WebSRT line position cue setting</dfn> consists of the
+  following components, in the order given:</p>
 
-  </ol><p>A <dfn id=websrt-timestamp>WebSRT timestamp</dfn> consists of the following
-  components, in the given order:</p>
+  <ol><li><p>A U+004C LATIN CAPITAL LETTER L character.</li>
+   <li><p>A U+003A COLON character (:).</li>
+   <li>Either:
+    <dl><dt>To represent a specific position relative to the video frame</dt>
+     <dd>
+      <ol><li>One or more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).</li>
+       <li>A U+0025 PERCENT SIGN character (%).</li>
+      </ol></dd>
+     <dt>To represent a line number</dt>
+     <dd>
+      <ol><li>Optionally a U+002D HYPHEN-MINUS character (-).</li>
+       <li>One or more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).</li>
+      </ol></dd>
+    </dl></li>
+  </ol><p>A <dfn id=websrt-text-position-cue-setting>WebSRT text position cue setting</dfn> consists of the
+  following components, in the order given:</p>
 
-  <ol><li class=XXX>...
+  <ol><li>A U+0054 LATIN CAPITAL LETTER T character.</li>
+   <li>A U+003A COLON character (:).</li>
+   <li>One or more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).</li>
+   <li>A U+0025 PERCENT SIGN character (%).</li>
+  </ol><p>A <dfn id=websrt-alignment-cue-setting>WebSRT alignment cue setting</dfn> consists of the
+  following components, in the order given:</p>
 
+  <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>A <dfn id=websrt-size-cue-setting>WebSRT size cue setting</dfn> consists of the
+  following components, in the order given:</p>
+
+  <ol><li>A U+0053 LATIN CAPITAL LETTER S character.</li>
+   <li>A U+003A COLON character (:).</li>
+   <li>One or more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).</li>
+   <li>A U+0025 PERCENT SIGN character (%).</li>
+  </ol><p>A <dfn id=websrt-vertical-text-cue-setting>WebSRT vertical text cue setting</dfn> consists of the
+  following components, in the order given:</p>
+
+  <ol><li>A U+0044 LATIN CAPITAL LETTER D character.</li>
+   <li>A U+003A COLON character (:).</li>
+   <li>The string "<code title="">vertical</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>
 
 

Modified: source
===================================================================
--- source	2010-06-25 19:22:18 UTC (rev 5111)
+++ source	2010-06-25 21:40:00 UTC (rev 5112)
@@ -28899,9 +28899,9 @@
   <ol>
    <li>Optionally, a <span>WebSRT cue identifier</span>.</li>
    <li><span>WebSRT cue timings</span>.</li>
-   <li>Optionally, <span>WebSRT cue settings</span>.</li>
+   <li>Optionally, one or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters followed by <span>WebSRT cue settings</span>.</li>
    <li>A <span>WebSRT line terminator</span>.</li>
-   <li>Optionally, a <span>WebSRT voice declaration</span>.</li>
+   <li>Optionally, a <span>WebSRT voice declaration</span> followed by zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters.</li>
    <li>One or more <span title="WebSRT cue text line">WebSRT cue text lines</span>, each separated from the next by a <span>WebSRT line terminator</span>.</li>
   </ol>
 
@@ -28925,40 +28925,151 @@
 
   <ol>
 
+   <!-- we could allow leading and trailing spaces and tabs, and make
+   the space between the arrow either optional or allow multiple
+   spaces or tabs -->
+
    <li>A <span>WebSRT timestamp</span> representing the start time
    offset of the cue.</li>
 
-   <li>Optionally, a U+0020 SPACE character.</li>
+   <li>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>
+   <li>A U+0020 SPACE character.</li>
 
    <li>A <span>WebSRT timestamp</span> representing the end time
    offset of the cue.</li>
 
   </ol>
 
+  <p>A <dfn>WebSRT timestamp</dfn> representing hour <var
+  title="">hours</var>, minutes <var title="">minutes</var>, seconds
+  <var title="">seconds</var>, and thousandths of a second <var
+  title="">seconds-frac</var>, consists of the following components,
+  in the given order:</p>
+
+  <ol>
+
+   <li>Optionally (required if <var title="">hour</var> is non-zero):
+
+    <ol>
+
+     <li>Two or more characters in the range U+0030 DIGIT ZERO (0) to
+     U+0039 DIGIT NINE (9), representing the <var title="">hours</var>
+     as a base ten integer.</li>
+
+     <li>A U+003A COLON character (:)</li>
+
+    </ol>
+
+   </li>
+
+   <li>Two characters in the range U+0030 DIGIT ZERO (0) to U+0039
+   DIGIT NINE (9), representing the <var title="">minutes</var> as a
+   base ten integer in the range 0 ≤ <var
+   title="">minutes</var> ≤ 59.</li>
+
+   <li>A U+003A COLON character (:)</li>
+
+   <li>Two characters in the range U+0030 DIGIT ZERO (0) to U+0039
+   DIGIT NINE (9), representing the <var title="">seconds</var> as a
+   base ten integer in the range 0 ≤ <var
+   title="">seconds</var> ≤ 59.</li>
+
+   <li>A U+003A COLON character (:)</li>
+
+   <li>Either a U+002E FULL STOP character (.) or a U+002C COMMA
+   character (,).</li>
+
+   <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, in the range
+   0 ≤ <var
+   title="">second-frac</var> < 1000.</li>
+
+  </ol>
+
   <p>The <dfn>WebSRT cue settings</dfn> part of a <span>WebSRT
-  cue</span> consists of the following components, in the given
-  order:</p>
+  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
+  characters or U+0009 CHARACTER TABULATION (tab) characters. Each
+  component must not be included more than once per <span>WebSRT cue
+  settings</span> string.</p>
 
+  <ul class="brief"> 
+   <li>A <span>WebSRT line position cue setting</span>.</li>
+   <li>A <span>WebSRT text position cue setting</span>.</li>
+   <li>A <span>WebSRT alignment cue setting</span>.</li>
+   <li>A <span>WebSRT size cue setting</span>.</li>
+   <li>A <span>WebSRT vertical text cue setting</span>.</li>
+  </ul>
+
+  <p>A <dfn>WebSRT line position cue setting</dfn> consists of the
+  following components, in the order given:</p>
+
   <ol>
+   <li><p>A U+004C LATIN CAPITAL LETTER L character.</p></li>
+   <li><p>A U+003A COLON character (:).</p></li>
+   <li>Either:
+    <dl>
+     <dt>To represent a specific position relative to the video frame</dt>
+     <dd>
+      <ol>
+       <li>One or more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).</li>
+       <li>A U+0025 PERCENT SIGN character (%).</li>
+      </ol>
+     </dd>
+     <dt>To represent a line number</dt>
+     <dd>
+      <ol>
+       <li>Optionally a U+002D HYPHEN-MINUS character (-).</li>
+       <li>One or more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).</li>
+      </ol>
+     </dd>
+    </dl>
+   </li>
+  </ol>
 
-   <li class="XXX">...
+  <p>A <dfn>WebSRT text position cue setting</dfn> consists of the
+  following components, in the order given:</p>
 
+  <ol>
+   <li>A U+0054 LATIN CAPITAL LETTER T character.</li>
+   <li>A U+003A COLON character (:).</li>
+   <li>One or more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).</li>
+   <li>A U+0025 PERCENT SIGN character (%).</li>
   </ol>
 
-  <p>A <dfn>WebSRT timestamp</dfn> consists of the following
-  components, in the given order:</p>
+  <p>A <dfn>WebSRT alignment cue setting</dfn> consists of the
+  following components, in the order given:</p>
 
   <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>
 
-   <li class="XXX">...
+  <p>A <dfn>WebSRT size cue setting</dfn> consists of the
+  following components, in the order given:</p>
 
+  <ol>
+   <li>A U+0053 LATIN CAPITAL LETTER S character.</li>
+   <li>A U+003A COLON character (:).</li>
+   <li>One or more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).</li>
+   <li>A U+0025 PERCENT SIGN character (%).</li>
   </ol>
 
+  <p>A <dfn>WebSRT vertical text cue setting</dfn> consists of the
+  following components, in the order given:</p>
+
+  <ol>
+   <li>A U+0044 LATIN CAPITAL LETTER D character.</li>
+   <li>A U+003A COLON character (:).</li>
+   <li>The string "<code title="">vertical</code>".</li>
+  </ol>
+
   <p class="XXX"><dfn>WebSRT voice declaration</dfn>; <dfn>WebSRT cue text line</dfn></p>
 
 




More information about the Commit-Watchers mailing list