[html5] r5127 - [giowt] (0) Captions - Stage 14.1: The tokeniser for WebSRT text cues.
whatwg at whatwg.org
whatwg at whatwg.org
Thu Jul 1 12:33:46 PDT 2010
Author: ianh
Date: 2010-07-01 12:33:44 -0700 (Thu, 01 Jul 2010)
New Revision: 5127
Modified:
complete.html
index
source
Log:
[giowt] (0) Captions - Stage 14.1: The tokeniser for WebSRT text cues.
Modified: complete.html
===================================================================
--- complete.html 2010-07-01 01:06:25 UTC (rev 5126)
+++ complete.html 2010-07-01 19:33:44 UTC (rev 5127)
@@ -27672,11 +27672,210 @@
<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>Let <var title="">result</var> be a <a href=#list-of-websrt-node-objects>List of WebSRT
+ Node Objects</a>, initially empty.</li>
- <li class=XXX>...</li>
+ <li><p><i>Loop</i>: If <var title="">position</var> is past the end of
+ <var title="">input</var>, return <var title="">result</var> and
+ abort these steps.</li>
+ <li><p>Let <var title="">token</var> be the result of invoking the
+ <a href=#websrt-cue-text-tokeniser>WebSRT cue text tokeniser</a>.</li>
+
+ <li><p>Invoke the <a href=#websrt-cue-text-tree-constructor>WebSRT cue text tree
+ constructor</a>.</li>
+
+ <li><p>Jump to the step labeled <i>loop</i>.</li>
+
+ </ol><p>The <dfn id=websrt-cue-text-tokeniser>WebSRT cue text tokeniser</dfn> is as follows. It emits
+ a token, which is either a string (whose value is a sequence of
+ Unicode characters), a start tag (with a tag name), or an end tag
+ (with a tag name).</p>
+
+ <ol><li><p>Let <var title="">input</var> and <var title="">position</var> be the same variables as those of the same
+ name in the algorithm that invoked these steps.</li>
+
+ <li><p>Let <var title="">tokeniser state</var> be <a href=#websrt-data-state>WebSRT data
+ state</a>.</li>
+
+ <li><p>Let <var title="">result</var> be the empty string.</li>
+
+ <li><p>Let <var title="">escape</var> be the empty string.</li>
+
+ <li><p><i>Loop</i>: If <var title="">position</var> is past the end of
+ <var title="">input</var>, let <var title="">c</var> be an
+ end-of-file marker. Otherwise, let <var title="">c</var> be the
+ character in <var title="">input</var> pointed to by <var title="">position</var>.</li>
+
+ <li>
+
+ <p>Jump to the state given by <var title="">tokeniser
+ state</var>:</p>
+
+ <dl><dt><dfn id=websrt-data-state>WebSRT data state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var title="">c</var>:</p>
+
+ <dl><dt>U+0026 AMPERSAND (&)</dt>
+ <dd>
+ <p>Set <var title="">escape</var> to <var title="">c</var>,
+ set <var title="">tokeniser state</var> to the <a href=#websrt-escape-state>WebSRT
+ escape state</a>, and jump to the step labeled
+ <i>next</i>.</p>
+ </dd>
+
+ <dt>U+003C LESS-THAN SIGN (<)</dt>
+ <dd>
+ <p>If <var title="">result</var> is the empty string, then set
+ <var title="">tokeniser state</var> to the <a href=#websrt-tag-state>WebSRT tag
+ state</a> and jump to the step labeled <i>next</i>.</p>
+ <p>Otherwise, return a string token whose value is <var title="">result</var> and abort these steps.</p>
+ </dd>
+
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Return a string token whose value is <var title="">result</var> and abort these steps.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Append <var title="">c</var> to <var title="">result</var>
+ and jump to the step labeled <i>next</i>.</p>.
+ </dd>
+
+ </dl></dd>
+
+ <dt><dfn id=websrt-escape-state>WebSRT escape state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var title="">c</var>:</p>
+
+ <dl><dt>U+003B SEMICOLON character (;)</dt>
+ <dd>
+
+ <p>First, examine the value of <var title="">escape</var>:</p>
+
+ <p>If <var title="">escape</var> is the string "<code title="">&</code>", then append a U+0026 AMPERSAND
+ character (&) to <var title="">result</var>.</p>
+
+ <p>If <var title="">escape</var> is the string "<code title=""><</code>", then append a U+003C LESS-THAN SIGN
+ character (<) to <var title="">result</var>.</p>
+
+ <p>Otherwise, append <var title="">escape</var> followed by a
+ U+003B SEMICOLON character (;) to <var title="">result</var>.</p>
+
+ <p>Then, in any case, set <var title="">tokeniser state</var>
+ to the <a href=#websrt-data-state>WebSRT data state</a>, and jump to the step
+ labeled <i>next</i>.</p>
+
+ </dd>
+
+ <dt>Characters in the range U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL LETTER Z</dt>
+ <dt>Characters in the range U+0041 LATIN CAPITAL LETTER A to U+005A LATIN CAPITAL LETTER Z</dt>
+ <dt>Characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9)</dt>
+ <dd>
+ <p>Append <var title="">c</var> to <var title="">escape</var>
+ and jump to the step labeled <i>next</i>.</p>
+ </dd>
+
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Append <var title="">escape</var> to <var title="">result</var>, return a string token whose value is
+ <var title="">result</var>, and abort these steps.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Append <var title="">escape</var> to <var title="">result</var>, set <var title="">tokeniser state</var>
+ to the <a href=#websrt-data-state>WebSRT data state</a>, and jump to the step
+ labeled <i>next</i>.</p>
+ </dd>
+
+ </dl></dd>
+
+ <dt><dfn id=websrt-tag-state>WebSRT tag state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var title="">c</var>:</p>
+
+ <dl><dt>U+003E GREATER-THAN SIGN character (>)</dt>
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Return a start tag whose tag name is the empty string and
+ abort these steps.</p>
+ </dd>
+
+ <dt>U+002F SOLIDUS character (/)</dt>
+ <dd>
+ <p>Set <var title="">tokeniser state</var> to the <a href=#websrt-end-tag-state>WebSRT
+ end tag state</a>, and jump to the step labeled
+ <i>next</i>.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Set <var title="">result</var> to <var title="">c</var>,
+ set <var title="">tokeniser state</var> to the <a href=#websrt-start-tag-state>WebSRT
+ start tag state</a>, and jump to the step labeled
+ <i>next</i>.</p>
+ </dd>
+
+ </dl></dd>
+
+ <dt><dfn id=websrt-start-tag-state>WebSRT start tag state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var title="">c</var>:</p>
+
+ <dl><dt>U+003E GREATER-THAN SIGN character (>)</dt>
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Return a start tag whose tag name is <var title="">result</var> and abort these steps.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Append <var title="">c</var> to <var title="">result</var>
+ and jump to the step labeled <i>next</i>.</p>
+ </dd>
+
+ </dl></dd>
+
+ <dt><dfn id=websrt-end-tag-state>WebSRT end tag state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var title="">c</var>:</p>
+
+ <dl><dt>U+003E GREATER-THAN SIGN character (>)</dt>
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Return an end tag whose tag name is <var title="">result</var> and abort these steps.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Append <var title="">c</var> to <var title="">result</var>
+ and jump to the step labeled <i>next</i>.</p>
+ </dd>
+
+ </dl></dd>
+
+ </dl></li>
+
+ <li><p><i>Next</i>: Advance <var title="">position</var> to the next
+ character in <var title="">input</var>.</li>
+
+ </ol><p>The <dfn id=websrt-cue-text-tree-constructor>WebSRT cue text tree constructor</dfn> is as
+ follows:</p>
+
+ <ol><li class=XXX>...</li>
+
</ol><h6 id=websrt-cue-text-dom-construction-rules><span class=secno>4.8.10.11.4 </span><dfn>WebSRT cue text DOM construction rules</dfn></h6>
<p class=XXX>...</p>
Modified: index
===================================================================
--- index 2010-07-01 01:06:25 UTC (rev 5126)
+++ index 2010-07-01 19:33:44 UTC (rev 5127)
@@ -27599,11 +27599,210 @@
<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>Let <var title="">result</var> be a <a href=#list-of-websrt-node-objects>List of WebSRT
+ Node Objects</a>, initially empty.</li>
- <li class=XXX>...</li>
+ <li><p><i>Loop</i>: If <var title="">position</var> is past the end of
+ <var title="">input</var>, return <var title="">result</var> and
+ abort these steps.</li>
+ <li><p>Let <var title="">token</var> be the result of invoking the
+ <a href=#websrt-cue-text-tokeniser>WebSRT cue text tokeniser</a>.</li>
+
+ <li><p>Invoke the <a href=#websrt-cue-text-tree-constructor>WebSRT cue text tree
+ constructor</a>.</li>
+
+ <li><p>Jump to the step labeled <i>loop</i>.</li>
+
+ </ol><p>The <dfn id=websrt-cue-text-tokeniser>WebSRT cue text tokeniser</dfn> is as follows. It emits
+ a token, which is either a string (whose value is a sequence of
+ Unicode characters), a start tag (with a tag name), or an end tag
+ (with a tag name).</p>
+
+ <ol><li><p>Let <var title="">input</var> and <var title="">position</var> be the same variables as those of the same
+ name in the algorithm that invoked these steps.</li>
+
+ <li><p>Let <var title="">tokeniser state</var> be <a href=#websrt-data-state>WebSRT data
+ state</a>.</li>
+
+ <li><p>Let <var title="">result</var> be the empty string.</li>
+
+ <li><p>Let <var title="">escape</var> be the empty string.</li>
+
+ <li><p><i>Loop</i>: If <var title="">position</var> is past the end of
+ <var title="">input</var>, let <var title="">c</var> be an
+ end-of-file marker. Otherwise, let <var title="">c</var> be the
+ character in <var title="">input</var> pointed to by <var title="">position</var>.</li>
+
+ <li>
+
+ <p>Jump to the state given by <var title="">tokeniser
+ state</var>:</p>
+
+ <dl><dt><dfn id=websrt-data-state>WebSRT data state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var title="">c</var>:</p>
+
+ <dl><dt>U+0026 AMPERSAND (&)</dt>
+ <dd>
+ <p>Set <var title="">escape</var> to <var title="">c</var>,
+ set <var title="">tokeniser state</var> to the <a href=#websrt-escape-state>WebSRT
+ escape state</a>, and jump to the step labeled
+ <i>next</i>.</p>
+ </dd>
+
+ <dt>U+003C LESS-THAN SIGN (<)</dt>
+ <dd>
+ <p>If <var title="">result</var> is the empty string, then set
+ <var title="">tokeniser state</var> to the <a href=#websrt-tag-state>WebSRT tag
+ state</a> and jump to the step labeled <i>next</i>.</p>
+ <p>Otherwise, return a string token whose value is <var title="">result</var> and abort these steps.</p>
+ </dd>
+
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Return a string token whose value is <var title="">result</var> and abort these steps.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Append <var title="">c</var> to <var title="">result</var>
+ and jump to the step labeled <i>next</i>.</p>.
+ </dd>
+
+ </dl></dd>
+
+ <dt><dfn id=websrt-escape-state>WebSRT escape state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var title="">c</var>:</p>
+
+ <dl><dt>U+003B SEMICOLON character (;)</dt>
+ <dd>
+
+ <p>First, examine the value of <var title="">escape</var>:</p>
+
+ <p>If <var title="">escape</var> is the string "<code title="">&</code>", then append a U+0026 AMPERSAND
+ character (&) to <var title="">result</var>.</p>
+
+ <p>If <var title="">escape</var> is the string "<code title=""><</code>", then append a U+003C LESS-THAN SIGN
+ character (<) to <var title="">result</var>.</p>
+
+ <p>Otherwise, append <var title="">escape</var> followed by a
+ U+003B SEMICOLON character (;) to <var title="">result</var>.</p>
+
+ <p>Then, in any case, set <var title="">tokeniser state</var>
+ to the <a href=#websrt-data-state>WebSRT data state</a>, and jump to the step
+ labeled <i>next</i>.</p>
+
+ </dd>
+
+ <dt>Characters in the range U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL LETTER Z</dt>
+ <dt>Characters in the range U+0041 LATIN CAPITAL LETTER A to U+005A LATIN CAPITAL LETTER Z</dt>
+ <dt>Characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9)</dt>
+ <dd>
+ <p>Append <var title="">c</var> to <var title="">escape</var>
+ and jump to the step labeled <i>next</i>.</p>
+ </dd>
+
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Append <var title="">escape</var> to <var title="">result</var>, return a string token whose value is
+ <var title="">result</var>, and abort these steps.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Append <var title="">escape</var> to <var title="">result</var>, set <var title="">tokeniser state</var>
+ to the <a href=#websrt-data-state>WebSRT data state</a>, and jump to the step
+ labeled <i>next</i>.</p>
+ </dd>
+
+ </dl></dd>
+
+ <dt><dfn id=websrt-tag-state>WebSRT tag state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var title="">c</var>:</p>
+
+ <dl><dt>U+003E GREATER-THAN SIGN character (>)</dt>
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Return a start tag whose tag name is the empty string and
+ abort these steps.</p>
+ </dd>
+
+ <dt>U+002F SOLIDUS character (/)</dt>
+ <dd>
+ <p>Set <var title="">tokeniser state</var> to the <a href=#websrt-end-tag-state>WebSRT
+ end tag state</a>, and jump to the step labeled
+ <i>next</i>.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Set <var title="">result</var> to <var title="">c</var>,
+ set <var title="">tokeniser state</var> to the <a href=#websrt-start-tag-state>WebSRT
+ start tag state</a>, and jump to the step labeled
+ <i>next</i>.</p>
+ </dd>
+
+ </dl></dd>
+
+ <dt><dfn id=websrt-start-tag-state>WebSRT start tag state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var title="">c</var>:</p>
+
+ <dl><dt>U+003E GREATER-THAN SIGN character (>)</dt>
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Return a start tag whose tag name is <var title="">result</var> and abort these steps.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Append <var title="">c</var> to <var title="">result</var>
+ and jump to the step labeled <i>next</i>.</p>
+ </dd>
+
+ </dl></dd>
+
+ <dt><dfn id=websrt-end-tag-state>WebSRT end tag state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var title="">c</var>:</p>
+
+ <dl><dt>U+003E GREATER-THAN SIGN character (>)</dt>
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Return an end tag whose tag name is <var title="">result</var> and abort these steps.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Append <var title="">c</var> to <var title="">result</var>
+ and jump to the step labeled <i>next</i>.</p>
+ </dd>
+
+ </dl></dd>
+
+ </dl></li>
+
+ <li><p><i>Next</i>: Advance <var title="">position</var> to the next
+ character in <var title="">input</var>.</li>
+
+ </ol><p>The <dfn id=websrt-cue-text-tree-constructor>WebSRT cue text tree constructor</dfn> is as
+ follows:</p>
+
+ <ol><li class=XXX>...</li>
+
</ol><h6 id=websrt-cue-text-dom-construction-rules><span class=secno>4.8.10.11.4 </span><dfn>WebSRT cue text DOM construction rules</dfn></h6>
<p class=XXX>...</p>
Modified: source
===================================================================
--- source 2010-07-01 01:06:25 UTC (rev 5126)
+++ source 2010-07-01 19:33:44 UTC (rev 5127)
@@ -30074,10 +30074,256 @@
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>Let <var title="">result</var> be a <span>List of WebSRT
+ Node Objects</span>, initially empty.</p></li>
+ <li><p><i>Loop</i>: If <var title="">position</var> is past the end of
+ <var title="">input</var>, return <var title="">result</var> and
+ abort these steps.</p></li>
+
+ <li><p>Let <var title="">token</var> be the result of invoking the
+ <span>WebSRT cue text tokeniser</span>.</p></li>
+
+ <li><p>Invoke the <span>WebSRT cue text tree
+ constructor</span>.</p></li>
+
+ <li><p>Jump to the step labeled <i>loop</i>.</p></li>
+
+ </ol>
+
+ <p>The <dfn>WebSRT cue text tokeniser</dfn> is as follows. It emits
+ a token, which is either a string (whose value is a sequence of
+ Unicode characters), a start tag (with a tag name), or an end tag
+ (with a tag name).</p>
+
+ <ol>
+
+ <li><p>Let <var title="">input</var> and <var
+ title="">position</var> be the same variables as those of the same
+ name in the algorithm that invoked these steps.</p></li>
+
+ <li><p>Let <var title="">tokeniser state</var> be <span>WebSRT data
+ state</span>.</p></li>
+
+ <li><p>Let <var title="">result</var> be the empty string.</p></li>
+
+ <li><p>Let <var title="">escape</var> be the empty string.</p></li>
+
+ <li><p><i>Loop</i>: If <var title="">position</var> is past the end of
+ <var title="">input</var>, let <var title="">c</var> be an
+ end-of-file marker. Otherwise, let <var title="">c</var> be the
+ character in <var title="">input</var> pointed to by <var
+ title="">position</var>.</p></li>
+
+ <li>
+
+ <p>Jump to the state given by <var title="">tokeniser
+ state</var>:</p>
+
+ <dl>
+
+ <dt><dfn>WebSRT data state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var
+ title="">c</var>:</p>
+
+ <dl>
+
+ <dt>U+0026 AMPERSAND (&)</dt>
+ <dd>
+ <p>Set <var title="">escape</var> to <var title="">c</var>,
+ set <var title="">tokeniser state</var> to the <span>WebSRT
+ escape state</span>, and jump to the step labeled
+ <i>next</i>.</p>
+ </dd>
+
+ <dt>U+003C LESS-THAN SIGN (<)</dt>
+ <dd>
+ <p>If <var title="">result</var> is the empty string, then set
+ <var title="">tokeniser state</var> to the <span>WebSRT tag
+ state</span> and jump to the step labeled <i>next</i>.</p>
+ <p>Otherwise, return a string token whose value is <var
+ title="">result</var> and abort these steps.</p>
+ </dd>
+
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Return a string token whose value is <var
+ title="">result</var> and abort these steps.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Append <var title="">c</var> to <var title="">result</var>
+ and jump to the step labeled <i>next</i>.</p>.
+ </dd>
+
+ </dl>
+
+ </dd>
+
+ <dt><dfn>WebSRT escape state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var
+ title="">c</var>:</p>
+
+ <dl>
+
+ <dt>U+003B SEMICOLON character (;)</dt>
+ <dd>
+
+ <p>First, examine the value of <var title="">escape</var>:</p>
+
+ <p>If <var title="">escape</var> is the string "<code
+ title="">&</code>", then append a U+0026 AMPERSAND
+ character (&) to <var title="">result</var>.</p>
+
+ <p>If <var title="">escape</var> is the string "<code
+ title=""><</code>", then append a U+003C LESS-THAN SIGN
+ character (<) to <var title="">result</var>.</p>
+
+ <p>Otherwise, append <var title="">escape</var> followed by a
+ U+003B SEMICOLON character (;) to <var
+ title="">result</var>.</p>
+
+ <p>Then, in any case, set <var title="">tokeniser state</var>
+ to the <span>WebSRT data state</span>, and jump to the step
+ labeled <i>next</i>.</p>
+
+ </dd>
+
+ <dt>Characters in the range U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL LETTER Z</dt>
+ <dt>Characters in the range U+0041 LATIN CAPITAL LETTER A to U+005A LATIN CAPITAL LETTER Z</dt>
+ <dt>Characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9)</dt>
+ <dd>
+ <p>Append <var title="">c</var> to <var title="">escape</var>
+ and jump to the step labeled <i>next</i>.</p>
+ </dd>
+
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Append <var title="">escape</var> to <var
+ title="">result</var>, return a string token whose value is
+ <var title="">result</var>, and abort these steps.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Append <var title="">escape</var> to <var
+ title="">result</var>, set <var title="">tokeniser state</var>
+ to the <span>WebSRT data state</span>, and jump to the step
+ labeled <i>next</i>.</p>
+ </dd>
+
+ </dl>
+
+ </dd>
+
+ <dt><dfn>WebSRT tag state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var
+ title="">c</var>:</p>
+
+ <dl>
+
+ <dt>U+003E GREATER-THAN SIGN character (>)</dt>
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Return a start tag whose tag name is the empty string and
+ abort these steps.</p>
+ </dd>
+
+ <dt>U+002F SOLIDUS character (/)</dt>
+ <dd>
+ <p>Set <var title="">tokeniser state</var> to the <span>WebSRT
+ end tag state</span>, and jump to the step labeled
+ <i>next</i>.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Set <var title="">result</var> to <var title="">c</var>,
+ set <var title="">tokeniser state</var> to the <span>WebSRT
+ start tag state</span>, and jump to the step labeled
+ <i>next</i>.</p>
+ </dd>
+
+ </dl>
+
+ </dd>
+
+ <dt><dfn>WebSRT start tag state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var
+ title="">c</var>:</p>
+
+ <dl>
+
+ <dt>U+003E GREATER-THAN SIGN character (>)</dt>
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Return a start tag whose tag name is <var
+ title="">result</var> and abort these steps.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Append <var title="">c</var> to <var title="">result</var>
+ and jump to the step labeled <i>next</i>.</p>
+ </dd>
+
+ </dl>
+
+ </dd>
+
+ <dt><dfn>WebSRT end tag state</dfn></dt>
+
+ <dd>
+
+ <p>Jump to the entry that matches the value of <var
+ title="">c</var>:</p>
+
+ <dl>
+
+ <dt>U+003E GREATER-THAN SIGN character (>)</dt>
+ <dt>End-of-file marker</dt>
+ <dd>
+ <p>Return an end tag whose tag name is <var
+ title="">result</var> and abort these steps.</p>
+ </dd>
+
+ <dt>Anything else</dt>
+ <dd>
+ <p>Append <var title="">c</var> to <var title="">result</var>
+ and jump to the step labeled <i>next</i>.</p>
+ </dd>
+
+ </dl>
+
+ </dd>
+
+ </dl>
+
+ </li>
+
+ <li><p><i>Next</i>: Advance <var title="">position</var> to the next
+ character in <var title="">input</var>.</p></li>
+
+ </ol>
+
+ <p>The <dfn>WebSRT cue text tree constructor</dfn> is as
+ follows:</p>
+
+ <ol>
+
<li class="XXX">...</li>
</ol>
More information about the Commit-Watchers
mailing list