[html5] r5122 - [giow] (0) Captions - Stage 11.10: start voice and cue parsing

whatwg at whatwg.org whatwg at whatwg.org
Tue Jun 29 15:42:41 PDT 2010


Author: ianh
Date: 2010-06-29 15:42:40 -0700 (Tue, 29 Jun 2010)
New Revision: 5122

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Captions - Stage 11.10: start voice and cue parsing

Modified: complete.html
===================================================================
--- complete.html	2010-06-29 22:25:33 UTC (rev 5121)
+++ complete.html	2010-06-29 22:42:40 UTC (rev 5122)
@@ -27013,10 +27013,30 @@
    settings</a> from <var title="">line</var>, using <var title="">cue</var> for the results. If that fails, jump to the step
    labeled <i>bad cue</i>.</li>
 
-   <li><p class=XXX>...voice...</li>
+   <li><p>Let <var title="">cue text</var> be the empty
+   string.</li>
 
-   <li><p class=XXX>...cues...</li>
+   <li><p><i>Cue text loop</i>: <a href=#collect-a-sequence-of-characters>Collect a sequence of
+   characters</a> that are <em>not</em> U+000D CARRIAGE RETURN (CR)
+   or U+000A LINE FEED (LF) characters. Let <var title="">line</var>
+   be those characters, if any.</li>
 
+   <li><p>If <var title="">line</var> is the empty string, then jump
+   to the step labeled <i>cue text processing</i>.</li>
+
+   <li><p>If <var title="">cue text</var> is not empty, append a
+   U+000A LINE FEED (LF) character to <var title="">cue
+   text</var>.</li>
+
+   <li><p>Let <var title="">cue text</var> be the concatenation of
+   <var title="">cue text</var> and <var title="">line</var>.</li>
+
+   <li><p>Return to the step labeled <i>cue text loop</i>.</li>
+
+   <li><i>Cue text processing</i>: <a href=#collect-websrt-cue-voice-and-text>Collect WebSRT cue voice and
+   text</a> from <var title="">line</var>, using <var title="">cue</var> for the results. If that fails, jump to the step
+   labeled <i>bad cue</i>.</li>
+
    <li><p>Add <var title="">cue</var> to the <a href=#timed-track-list-of-cues>timed track list of
    cues</a> <var title="">output</var>.</li>
 
@@ -27408,6 +27428,23 @@
 
    <li><p>Return <var title="">result</var>.</li>
 
+  </ol><p>When the steps above say that a user agent is to <dfn id=collect-websrt-cue-voice-and-text>collect
+  WebSRT cue voice and text</dfn>, the user agent must run the
+  following steps:</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>If <var title="">position</var> is past the end of <var title="">input</var>, return an error and abort these
+   steps.</li>
+
+   <li><p class=XXX>...voice...</li>
+
+   <li><p class=XXX>...cues...</li>
+
   </ol></div>
 
 </div>

Modified: index
===================================================================
--- index	2010-06-29 22:25:33 UTC (rev 5121)
+++ index	2010-06-29 22:42:40 UTC (rev 5122)
@@ -26940,10 +26940,30 @@
    settings</a> from <var title="">line</var>, using <var title="">cue</var> for the results. If that fails, jump to the step
    labeled <i>bad cue</i>.</li>
 
-   <li><p class=XXX>...voice...</li>
+   <li><p>Let <var title="">cue text</var> be the empty
+   string.</li>
 
-   <li><p class=XXX>...cues...</li>
+   <li><p><i>Cue text loop</i>: <a href=#collect-a-sequence-of-characters>Collect a sequence of
+   characters</a> that are <em>not</em> U+000D CARRIAGE RETURN (CR)
+   or U+000A LINE FEED (LF) characters. Let <var title="">line</var>
+   be those characters, if any.</li>
 
+   <li><p>If <var title="">line</var> is the empty string, then jump
+   to the step labeled <i>cue text processing</i>.</li>
+
+   <li><p>If <var title="">cue text</var> is not empty, append a
+   U+000A LINE FEED (LF) character to <var title="">cue
+   text</var>.</li>
+
+   <li><p>Let <var title="">cue text</var> be the concatenation of
+   <var title="">cue text</var> and <var title="">line</var>.</li>
+
+   <li><p>Return to the step labeled <i>cue text loop</i>.</li>
+
+   <li><i>Cue text processing</i>: <a href=#collect-websrt-cue-voice-and-text>Collect WebSRT cue voice and
+   text</a> from <var title="">line</var>, using <var title="">cue</var> for the results. If that fails, jump to the step
+   labeled <i>bad cue</i>.</li>
+
    <li><p>Add <var title="">cue</var> to the <a href=#timed-track-list-of-cues>timed track list of
    cues</a> <var title="">output</var>.</li>
 
@@ -27335,6 +27355,23 @@
 
    <li><p>Return <var title="">result</var>.</li>
 
+  </ol><p>When the steps above say that a user agent is to <dfn id=collect-websrt-cue-voice-and-text>collect
+  WebSRT cue voice and text</dfn>, the user agent must run the
+  following steps:</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>If <var title="">position</var> is past the end of <var title="">input</var>, return an error and abort these
+   steps.</li>
+
+   <li><p class=XXX>...voice...</li>
+
+   <li><p class=XXX>...cues...</li>
+
   </ol></div>
 
 </div>

Modified: source
===================================================================
--- source	2010-06-29 22:25:33 UTC (rev 5121)
+++ source	2010-06-29 22:42:40 UTC (rev 5122)
@@ -29294,10 +29294,31 @@
    title="">cue</var> for the results. If that fails, jump to the step
    labeled <i>bad cue</i>.</p></li>
 
-   <li><p class="XXX">...voice...</p></li>
+   <li><p>Let <var title="">cue text</var> be the empty
+   string.</p></li>
 
-   <li><p class="XXX">...cues...</p></li>
+   <li><p><i>Cue text loop</i>: <span>Collect a sequence of
+   characters</span> that are <em>not</em> U+000D CARRIAGE RETURN (CR)
+   or U+000A LINE FEED (LF) characters. Let <var title="">line</var>
+   be those characters, if any.</p></li>
 
+   <li><p>If <var title="">line</var> is the empty string, then jump
+   to the step labeled <i>cue text processing</i>.</p></li>
+
+   <li><p>If <var title="">cue text</var> is not empty, append a
+   U+000A LINE FEED (LF) character to <var title="">cue
+   text</var>.</p></li>
+
+   <li><p>Let <var title="">cue text</var> be the concatenation of
+   <var title="">cue text</var> and <var title="">line</var>.</p></li>
+
+   <li><p>Return to the step labeled <i>cue text loop</i>.</p></li>
+
+   <li><i>Cue text processing</i>: <span>Collect WebSRT cue voice and
+   text</span> from <var title="">line</var>, using <var
+   title="">cue</var> for the results. If that fails, jump to the step
+   labeled <i>bad cue</i>.</p></li>
+
    <li><p>Add <var title="">cue</var> to the <span>timed track list of
    cues</span> <var title="">output</var>.</p></li>
 
@@ -29776,6 +29797,27 @@
 
   </ol>
 
+  <p>When the steps above say that a user agent is to <dfn>collect
+  WebSRT cue voice and text</dfn>, the user agent must run the
+  following steps:</p>
+
+  <ol>
+
+   <li><p>Let <var title="">input</var> be the string being
+   parsed.</p></li>
+
+   <li><p>Let <var title="">position</var> be a pointer into <var
+   title="">input</var>, initially pointing at the start of the
+   string.</p></li>
+
+   <li><p>If <var title="">position</var> is past the end of <var
+   title="">input</var>, return an error and abort these
+   steps.</p></li>
+
+   <li><p class="XXX">...voice...</p></li>
+
+   <li><p class="XXX">...cues...</p></li>
+
   </div>
 
 </div>




More information about the Commit-Watchers mailing list