[html5] r5114 - [giow] (0) Captions - Stage 11.6: Parsing bad cues in WebSRT.

whatwg at whatwg.org whatwg at whatwg.org
Mon Jun 28 17:08:17 PDT 2010


Author: ianh
Date: 2010-06-28 17:08:16 -0700 (Mon, 28 Jun 2010)
New Revision: 5114

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Captions - Stage 11.6: Parsing bad cues in WebSRT.

Modified: complete.html
===================================================================
--- complete.html	2010-06-26 00:55:41 UTC (rev 5113)
+++ complete.html	2010-06-29 00:08:16 UTC (rev 5114)
@@ -209,7 +209,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <hgroup><h1>Web Applications 1.0</h1>
-    <h2 class="no-num no-toc">Draft Standard — 26 June 2010</h2>
+    <h2 class="no-num no-toc">Draft Standard — 28 June 2010</h2>
    </hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -26929,6 +26929,9 @@
    <li><p>If the character indicated by <var title="">position</var>
    is a U+000D CARRIAGE RETURN (CR) character, advance <var title="">position</var> to the next character in <var title="">input</var>.</li>
 
+   <li><p>If <var title="">position</var> is past the end of <var title="">input</var>, then discard <var title="">cue</var> and jump
+   to the step labeled <i>end</i>.</li>
+
    <li><p>If the character indicated by <var title="">position</var>
    is a U+000A LINE FEED (LF) character, advance <var title="">position</var> to the next character in <var title="">input</var>.</li>
 
@@ -26959,13 +26962,34 @@
 
    <li><p>Jump to the step labeled <i>cue loop</i>.</li>
 
+
    <li><p><i>Bad cue</i>: Discard <var title="">cue</var>.</li>
 
-   <li><p class=XXX>read until the next blank line; if you hit the
-   end of the file jump to <i>end</i>.</li>
+   <li><p><i>Bad cue loop</i>: <p>If <var title="">position</var> is
+   past the end of <var title="">input</var>, then jump to the step
+   labeled <i>end</i>.</li>
 
-   <li><p>Jump to the step labeled <i>cue loop</i>.</li>
+   <li><p>If the character indicated by <var title="">position</var>
+   is a U+000D CARRIAGE RETURN (CR) character, advance <var title="">position</var> to the next character in <var title="">input</var>.</li>
 
+   <li><p>If <var title="">position</var> is past the end of <var title="">input</var>, then jump to the step labeled
+   <i>end</i>.</li>
+
+   <li><p>If the character indicated by <var title="">position</var>
+   is a U+000A LINE FEED (LF) character, advance <var title="">position</var> to the next character in <var title="">input</var>.</li>
+
+   <li><p><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 loop</i>.</li>
+
+   <li><p>Otherwise, jump to the step labeled <i>bad cue
+   loop</i>.</li>
+
+
    <li><p><i>End</i>: The file has ended. Abort these steps. The
    <a href=#websrt-parser>WebSRT parser</a> has finished.</li>
 

Modified: index
===================================================================
--- index	2010-06-26 00:55:41 UTC (rev 5113)
+++ index	2010-06-29 00:08:16 UTC (rev 5114)
@@ -213,7 +213,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <hgroup><h1>HTML5 (including next generation additions still in development)</h1>
-    <h2 class="no-num no-toc">Draft Standard — 26 June 2010</h2>
+    <h2 class="no-num no-toc">Draft Standard — 28 June 2010</h2>
    </hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -26862,6 +26862,9 @@
    <li><p>If the character indicated by <var title="">position</var>
    is a U+000D CARRIAGE RETURN (CR) character, advance <var title="">position</var> to the next character in <var title="">input</var>.</li>
 
+   <li><p>If <var title="">position</var> is past the end of <var title="">input</var>, then discard <var title="">cue</var> and jump
+   to the step labeled <i>end</i>.</li>
+
    <li><p>If the character indicated by <var title="">position</var>
    is a U+000A LINE FEED (LF) character, advance <var title="">position</var> to the next character in <var title="">input</var>.</li>
 
@@ -26892,13 +26895,34 @@
 
    <li><p>Jump to the step labeled <i>cue loop</i>.</li>
 
+
    <li><p><i>Bad cue</i>: Discard <var title="">cue</var>.</li>
 
-   <li><p class=XXX>read until the next blank line; if you hit the
-   end of the file jump to <i>end</i>.</li>
+   <li><p><i>Bad cue loop</i>: <p>If <var title="">position</var> is
+   past the end of <var title="">input</var>, then jump to the step
+   labeled <i>end</i>.</li>
 
-   <li><p>Jump to the step labeled <i>cue loop</i>.</li>
+   <li><p>If the character indicated by <var title="">position</var>
+   is a U+000D CARRIAGE RETURN (CR) character, advance <var title="">position</var> to the next character in <var title="">input</var>.</li>
 
+   <li><p>If <var title="">position</var> is past the end of <var title="">input</var>, then jump to the step labeled
+   <i>end</i>.</li>
+
+   <li><p>If the character indicated by <var title="">position</var>
+   is a U+000A LINE FEED (LF) character, advance <var title="">position</var> to the next character in <var title="">input</var>.</li>
+
+   <li><p><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 loop</i>.</li>
+
+   <li><p>Otherwise, jump to the step labeled <i>bad cue
+   loop</i>.</li>
+
+
    <li><p><i>End</i>: The file has ended. Abort these steps. The
    <a href=#websrt-parser>WebSRT parser</a> has finished.</li>
 

Modified: source
===================================================================
--- source	2010-06-26 00:55:41 UTC (rev 5113)
+++ source	2010-06-29 00:08:16 UTC (rev 5114)
@@ -29196,6 +29196,10 @@
    title="">position</var> to the next character in <var
    title="">input</var>.</p></li>
 
+   <li><p>If <var title="">position</var> is past the end of <var
+   title="">input</var>, then discard <var title="">cue</var> and jump
+   to the step labeled <i>end</i>.</p></li>
+
    <li><p>If the character indicated by <var title="">position</var>
    is a U+000A LINE FEED (LF) character, advance <var
    title="">position</var> to the next character in <var
@@ -29229,13 +29233,39 @@
 
    <li><p>Jump to the step labeled <i>cue loop</i>.</p></li>
 
+
    <li><p><i>Bad cue</i>: Discard <var title="">cue</var>.</p></li>
 
-   <li><p class="XXX">read until the next blank line; if you hit the
-   end of the file jump to <i>end</i>.</p></li>
+   <li><p><i>Bad cue loop</i>: <p>If <var title="">position</var> is
+   past the end of <var title="">input</var>, then jump to the step
+   labeled <i>end</i>.</p></li>
 
-   <li><p>Jump to the step labeled <i>cue loop</i>.</p></li>
+   <li><p>If the character indicated by <var title="">position</var>
+   is a U+000D CARRIAGE RETURN (CR) character, advance <var
+   title="">position</var> to the next character in <var
+   title="">input</var>.</p></li>
 
+   <li><p>If <var title="">position</var> is past the end of <var
+   title="">input</var>, then jump to the step labeled
+   <i>end</i>.</p></li>
+
+   <li><p>If the character indicated by <var title="">position</var>
+   is a U+000A LINE FEED (LF) character, advance <var
+   title="">position</var> to the next character in <var
+   title="">input</var>.</p></li>
+
+   <li><p><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 loop</i>.</p></li>
+
+   <li><p>Otherwise, jump to the step labeled <i>bad cue
+   loop</i>.</p></li>
+
+
    <li><p><i>End</i>: The file has ended. Abort these steps. The
    <span>WebSRT parser</span> has finished.</p></li>
 




More information about the Commit-Watchers mailing list