[html5] r5720 - [giowt] (0) Fix the WebSRT parser to handle line breaks in cue text.

whatwg at whatwg.org whatwg at whatwg.org
Wed Dec 15 12:49:28 PST 2010


Author: ianh
Date: 2010-12-15 12:49:26 -0800 (Wed, 15 Dec 2010)
New Revision: 5720

Modified:
   complete.html
   index
   source
Log:
[giowt] (0) Fix the WebSRT parser to handle line breaks in cue text.

Modified: complete.html
===================================================================
--- complete.html	2010-12-14 02:07:11 UTC (rev 5719)
+++ complete.html	2010-12-15 20:49:26 UTC (rev 5720)
@@ -221,7 +221,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1>Web Applications 1.0</h1>
-    <h2 class="no-num no-toc">Draft Standard — 14 December 2010</h2>
+    <h2 class="no-num no-toc">Draft Standard — 15 December 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>-->
@@ -230,7 +230,6 @@
     <dt>One-page version:</dt>
     <dd><a href=http://www.whatwg.org/specs/web-apps/current-work/complete.html>http://www.whatwg.org/specs/web-apps/current-work/complete.html</a></dd>
     <dt>Version history:</dt>
-    <dd>Twitter messages (non-editorial changes only): <a href=http://twitter.com/WHATWG>http://twitter.com/WHATWG</a></dd>
     <dd>Commit-Watchers mailing list: <a href=http://lists.whatwg.org/listinfo.cgi/commit-watchers-whatwg.org>http://lists.whatwg.org/listinfo.cgi/commit-watchers-whatwg.org</a></dd>
     <dd>Interactive Web interface: <a href=http://html5.org/tools/web-apps-tracker>http://html5.org/tools/web-apps-tracker</a></dd>
     <dd>Subversion interface: <a href=http://svn.whatwg.org/>http://svn.whatwg.org/</a></dd>
@@ -29463,11 +29462,24 @@
    <li><p>Let <var title="">cue text</var> be the empty
    string.</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><i>Cue text loop</i>: 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>cue text
+   processing</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 discard <var title="">cue</var> and jump
+   to the step labeled <i>cue text processing</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 text processing</i>.</li>
 
@@ -71892,7 +71904,6 @@
 
 
 
-
   <h3 id=event-definitions-0><span class=secno>10.1 </span>Event definitions</h3>
 
   <p>Messages in <a href=#server-sent-events>server-sent events</a>, <a href=#network>Web

Modified: index
===================================================================
--- index	2010-12-14 02:07:11 UTC (rev 5719)
+++ index	2010-12-15 20:49:26 UTC (rev 5720)
@@ -225,7 +225,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1>HTML5 (including next generation additions still in development)</h1>
-    <h2 class="no-num no-toc">Draft Standard — 14 December 2010</h2>
+    <h2 class="no-num no-toc">Draft Standard — 15 December 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>-->
@@ -29444,11 +29444,24 @@
    <li><p>Let <var title="">cue text</var> be the empty
    string.</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><i>Cue text loop</i>: 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>cue text
+   processing</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 discard <var title="">cue</var> and jump
+   to the step labeled <i>cue text processing</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 text processing</i>.</li>
 
@@ -69720,7 +69733,6 @@
 
 
 
-
   <h3 id=event-definitions-0><span class=secno>9.1 </span>Event definitions</h3>
 
   <p>Messages in <span>server-sent events</span>, <span>Web

Modified: source
===================================================================
--- source	2010-12-14 02:07:11 UTC (rev 5719)
+++ source	2010-12-15 20:49:26 UTC (rev 5720)
@@ -32159,11 +32159,30 @@
    <li><p>Let <var title="">cue text</var> be the empty
    string.</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><i>Cue text loop</i>: 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>cue text
+   processing</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 discard <var title="">cue</var> and jump
+   to the step labeled <i>cue text processing</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 text processing</i>.</p></li>
 




More information about the Commit-Watchers mailing list