[html5] r5126 - [giow] (0) Captions - Stage 14: Define the output of parsing a WebSRT text cue.
whatwg at whatwg.org
whatwg at whatwg.org
Wed Jun 30 18:06:26 PDT 2010
Author: ianh
Date: 2010-06-30 18:06:25 -0700 (Wed, 30 Jun 2010)
New Revision: 5126
Modified:
complete.html
index
source
Log:
[giow] (0) Captions - Stage 14: Define the output of parsing a WebSRT text cue.
Modified: complete.html
===================================================================
--- complete.html 2010-06-30 19:40:56 UTC (rev 5125)
+++ complete.html 2010-07-01 01:06:25 UTC (rev 5126)
@@ -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 — 30 June 2010</h2>
+ <h2 class="no-num no-toc">Draft Standard — 1 July 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>-->
@@ -565,7 +565,8 @@
<ol>
<li><a href=#syntax-0><span class=secno>4.8.10.11.1 </span>Syntax</a></li>
<li><a href=#parsing-0><span class=secno>4.8.10.11.2 </span>Parsing</a></li>
- <li><a href=#websrt-cue-text-parsing-and-rendering-rules><span class=secno>4.8.10.11.3 </span>WebSRT cue text parsing and rendering rules</a></ol></li>
+ <li><a href=#websrt-cue-text-parsing-rules><span class=secno>4.8.10.11.3 </span>WebSRT cue text parsing rules</a></li>
+ <li><a href=#websrt-cue-text-dom-construction-rules><span class=secno>4.8.10.11.4 </span>WebSRT cue text DOM construction rules</a></ol></li>
<li><a href=#user-interface><span class=secno>4.8.10.12 </span>User interface</a></li>
<li><a href=#time-ranges><span class=secno>4.8.10.13 </span>Time ranges</a></li>
<li><a href=#mediaevents><span class=secno>4.8.10.14 </span>Event summary</a></li>
@@ -26597,7 +26598,7 @@
<dd>
<p>Should be set to false unless the format uses a rendering and
positioning model for cues that is largely consistent with the
- <a href=#websrt-cue-text-parsing-and-rendering-rules>WebSRT cue text parsing and rendering rules</a>.</p>
+ <a href=#websrt-cue-text-rendering-rules>WebSRT cue text rendering rules</a>.</p>
</dd>
<dt>The <a href=#timed-track-cue-line-position>timed track cue line position</a>
@@ -26606,9 +26607,9 @@
<dt>The <a href=#timed-track-cue-alignment>timed track cue alignment</a>
</dt></dt></dt><dd>
<p>If the the format uses a rendering and positioning model for
- cues that can be largely simulated using the <a href=#websrt-cue-text-parsing-and-rendering-rules>WebSRT cue text
- parsing and rendering rules</a>, then these should be set to
- the values that would give the same effect for <a href=#websrt>WebSRT</a>
+ cues that can be largely simulated using the <a href=#websrt-cue-text-rendering-rules>WebSRT cue text
+ rendering rules</a>, then these should be set to the values
+ that would give the same effect for <a href=#websrt>WebSRT</a>
cues. Otherwise, they should be set to zero.</p>
</dd>
@@ -26720,7 +26721,7 @@
<h5 id=websrt-0><span class=secno>4.8.10.11 </span>WebSRT</h5>
- <p>The <dfn id=websrt>WebSRT</dfn>s format (Web Subtitle Resource Tracks) is a
+ <p>The <dfn id=websrt>WebSRT</dfn> format (Web Subtitle Resource Tracks) is a
format intended for marking up external timed track resources.</p>
@@ -26745,7 +26746,7 @@
<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> followed by zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters.</li>
- <li><span title="WebSRT cue text line">WebSRT cue text</span>.</li>
+ <li><a href=#websrt-cue-text>WebSRT cue text</a>.</li>
</ol><p>A <dfn id=websrt-line-terminator>WebSRT line terminator</dfn> consists of one of the
following:</p>
@@ -27581,16 +27582,105 @@
steps.</li>
<li><p>Let the <a href=#timed-track-cue-text>timed track cue text</a> of <var title="">cue</var> be the substring of <var title="">input</var>
- from the position indicated by <var title="">input</var> to the end
- of the <var title="">input</var>, and let the rules for its
- interpretation be the <a href=#websrt-cue-text-parsing-and-rendering-rules>WebSRT cue text parsing and rendering
- rules</a> defined below.</li>
+ from the position indicated by <var title="">position</var> to the
+ end of the <var title="">input</var>, and let the rules for its
+ interpretation be the <a href=#websrt-cue-text-parsing-rules>WebSRT cue text parsing rules</a>,
+ the <a href=#websrt-cue-text-rendering-rules>WebSRT cue text rendering rules</a>, and the
+ <a href=#websrt-cue-text-dom-construction-rules>WebSRT cue text DOM construction rules</a>.</li>
- </ol><h6 id=websrt-cue-text-parsing-and-rendering-rules><span class=secno>4.8.10.11.3 </span><dfn>WebSRT cue text parsing and rendering rules</dfn></h6>
+ </ol><h6 id=websrt-cue-text-parsing-rules><span class=secno>4.8.10.11.3 </span><dfn>WebSRT cue text parsing rules</dfn></h6>
+ <p>A <dfn id=websrt-node-object>WebSRT Node Object</dfn> is a conceptual construct used to
+ represent components of <a href=#websrt-cue-text>WebSRT cue text</a> so that its
+ processing can be described without reference to the underlying
+ syntax.</p>
+
+ <p>There are two broad classes of <a href=#websrt-node-object title="WebSRT Node
+ Object">WebSRT Node Objects</a>: <a href=#websrt-internal-node-object title="WebSRT Internal
+ Node Object">WebSRT Internal Node Objects</a> and <a href=#websrt-leaf-node-object title="WebSRT Leaf Node Object">WebSRT Leaf Node Objects</a>.</p>
+
+ <p><dfn id=websrt-internal-node-object title="WebSRT Internal Node Object">WebSRT Internal Node
+ Objects</dfn> are those that can contain further <a href=#websrt-node-object title="WebSRT
+ Node Object">WebSRT Node Objects</a>. They are conceptually
+ similar to elements in HTML or the DOM. <a href=#websrt-internal-node-object title="WebSRT Internal
+ Node Object">WebSRT Internal Node Objects</a> have an ordered
+ list of child <a href=#websrt-node-object title="WebSRT Node Object">WebSRT Node
+ Objects</a>. The <a href=#websrt-internal-node-object>WebSRT Internal Node Object</a> is said
+ to be the <i>parent</i> of the children. Cycles do not occur; the
+ parent-child relationships so constructed form a tree structure.</p>
+
+ <p>There are five concrete classes of <a href=#websrt-internal-node-object title="WebSRT Internal
+ Node Object">WebSRT Internal Node Objects</a>:</p>
+
+ <dl><dt><dfn id=list-of-websrt-node-objects title="List of WebSRT Node Objects">Lists of WebSRT Node Objects</dfn></dt>
+ <dd>
+ <p>These are used as root nodes for trees of <a href=#websrt-node-object title="WebSRT
+ Node Object">WebSRT Node Objects</a>.</p>
+ </dd>
+
+ <dt><dfn id=websrt-italic-object title="WebSRT Italic Object">WebSRT Italic Objects</dfn></dt>
+ <dd>
+ <p>These represent spans of italic text (a <a href=#websrt-cue-italics-span>WebSRT cue
+ italics span</a>) in <a href=#websrt-cue-text>WebSRT cue text</a>.</p>
+ </dd>
+
+ <dt><dfn id=websrt-bold-object title="WebSRT Bold Object">WebSRT Bold Objects</dfn></dt>
+ <dd>
+ <p>These represent spans of bold text (a <a href=#websrt-cue-bold-span>WebSRT cue
+ bold span</a>) in <a href=#websrt-cue-text>WebSRT cue text</a>.</p>
+ </dd>
+
+ <dt><dfn id=websrt-ruby-object title="WebSRT Ruby Object">WebSRT Ruby Objects</dfn></dt>
+ <dd>
+ <p>These represent spans of ruby (a <a href=#websrt-cue-ruby-span>WebSRT cue
+ ruby span</a>) in <a href=#websrt-cue-text>WebSRT cue text</a>.</p>
+ </dd>
+
+ <dt><dfn id=websrt-ruby-text-object title="WebSRT Ruby Text Object">WebSRT Ruby Text Objects</dfn></dt>
+ <dd>
+ <p>These represent spans of ruby text (the component of a
+ <a href=#websrt-cue-ruby-span>WebSRT cue ruby span</a> that is between the "<code title=""><rt></code>" and "<code title=""></rt></code>" strings) in <a href=#websrt-cue-text>WebSRT cue
+ text</a>.</p>
+ </dd>
+
+ </dl><p><dfn id=websrt-leaf-node-object title="WebSRT Leaf Node Object">WebSRT Leaf Node
+ Objects</dfn> are those that contain data, such as text, and cannot
+ contain child <a href=#websrt-node-object title="WebSRT Node Object">WebSRT Node
+ Objects</a>.</p>
+
+ <p>There are two concrete classes of <a href=#websrt-leaf-node-object title="WebSRT Leaf Node
+ Object">WebSRT Leaf Node Objects</a>:</p>
+
+ <dl><dt><dfn id=websrt-text-object title="WebSRT Text Object">WebSRT Text Objects</dfn></dt>
+ <dd>
+ <p>A fragment of text.</p>
+ </dd>
+
+ <dt><dfn id=websrt-timestamp-object title="WebSRT Timestamp Object">WebSRT Timestamp Objects</dfn></dt>
+ <dd>
+ <p>A timestamp.</p>
+ </dd>
+
+ </dl><p>To parse a string <var title="">input</var> supposedly containing
+ <a href=#websrt-cue-text>WebSRT cue text</a>, user agents must use the following
+ algorithm. This algorithm returns a <a href=#list-of-websrt-node-objects>list of WebSRT Node
+ Objects</a>.</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 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>
-
</div>
</div>
@@ -85142,7 +85232,7 @@
<h4 id=timed-tracks-0><span class=secno>14.3.2 </span>Timed tracks</h4>
- <p class=XXX>rendering model for timed tracks</p>
+ <p class=XXX><dfn id=websrt-cue-text-rendering-rules>WebSRT cue text rendering rules</dfn></p>
<p class=XXX>CSS extensions</p>
Modified: index
===================================================================
--- index 2010-06-30 19:40:56 UTC (rev 5125)
+++ index 2010-07-01 01:06:25 UTC (rev 5126)
@@ -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 — 30 June 2010</h2>
+ <h2 class="no-num no-toc">Draft Standard — 1 July 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>-->
@@ -572,7 +572,8 @@
<ol>
<li><a href=#syntax-0><span class=secno>4.8.10.11.1 </span>Syntax</a></li>
<li><a href=#parsing-0><span class=secno>4.8.10.11.2 </span>Parsing</a></li>
- <li><a href=#websrt-cue-text-parsing-and-rendering-rules><span class=secno>4.8.10.11.3 </span>WebSRT cue text parsing and rendering rules</a></ol></li>
+ <li><a href=#websrt-cue-text-parsing-rules><span class=secno>4.8.10.11.3 </span>WebSRT cue text parsing rules</a></li>
+ <li><a href=#websrt-cue-text-dom-construction-rules><span class=secno>4.8.10.11.4 </span>WebSRT cue text DOM construction rules</a></ol></li>
<li><a href=#user-interface><span class=secno>4.8.10.12 </span>User interface</a></li>
<li><a href=#time-ranges><span class=secno>4.8.10.13 </span>Time ranges</a></li>
<li><a href=#mediaevents><span class=secno>4.8.10.14 </span>Event summary</a></li>
@@ -26524,7 +26525,7 @@
<dd>
<p>Should be set to false unless the format uses a rendering and
positioning model for cues that is largely consistent with the
- <a href=#websrt-cue-text-parsing-and-rendering-rules>WebSRT cue text parsing and rendering rules</a>.</p>
+ <a href=#websrt-cue-text-rendering-rules>WebSRT cue text rendering rules</a>.</p>
</dd>
<dt>The <a href=#timed-track-cue-line-position>timed track cue line position</a>
@@ -26533,9 +26534,9 @@
<dt>The <a href=#timed-track-cue-alignment>timed track cue alignment</a>
</dt></dt></dt><dd>
<p>If the the format uses a rendering and positioning model for
- cues that can be largely simulated using the <a href=#websrt-cue-text-parsing-and-rendering-rules>WebSRT cue text
- parsing and rendering rules</a>, then these should be set to
- the values that would give the same effect for <a href=#websrt>WebSRT</a>
+ cues that can be largely simulated using the <a href=#websrt-cue-text-rendering-rules>WebSRT cue text
+ rendering rules</a>, then these should be set to the values
+ that would give the same effect for <a href=#websrt>WebSRT</a>
cues. Otherwise, they should be set to zero.</p>
</dd>
@@ -26647,7 +26648,7 @@
<h5 id=websrt-0><span class=secno>4.8.10.11 </span>WebSRT</h5>
- <p>The <dfn id=websrt>WebSRT</dfn>s format (Web Subtitle Resource Tracks) is a
+ <p>The <dfn id=websrt>WebSRT</dfn> format (Web Subtitle Resource Tracks) is a
format intended for marking up external timed track resources.</p>
@@ -26672,7 +26673,7 @@
<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> followed by zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters.</li>
- <li><span title="WebSRT cue text line">WebSRT cue text</span>.</li>
+ <li><a href=#websrt-cue-text>WebSRT cue text</a>.</li>
</ol><p>A <dfn id=websrt-line-terminator>WebSRT line terminator</dfn> consists of one of the
following:</p>
@@ -27508,16 +27509,105 @@
steps.</li>
<li><p>Let the <a href=#timed-track-cue-text>timed track cue text</a> of <var title="">cue</var> be the substring of <var title="">input</var>
- from the position indicated by <var title="">input</var> to the end
- of the <var title="">input</var>, and let the rules for its
- interpretation be the <a href=#websrt-cue-text-parsing-and-rendering-rules>WebSRT cue text parsing and rendering
- rules</a> defined below.</li>
+ from the position indicated by <var title="">position</var> to the
+ end of the <var title="">input</var>, and let the rules for its
+ interpretation be the <a href=#websrt-cue-text-parsing-rules>WebSRT cue text parsing rules</a>,
+ the <a href=#websrt-cue-text-rendering-rules>WebSRT cue text rendering rules</a>, and the
+ <a href=#websrt-cue-text-dom-construction-rules>WebSRT cue text DOM construction rules</a>.</li>
- </ol><h6 id=websrt-cue-text-parsing-and-rendering-rules><span class=secno>4.8.10.11.3 </span><dfn>WebSRT cue text parsing and rendering rules</dfn></h6>
+ </ol><h6 id=websrt-cue-text-parsing-rules><span class=secno>4.8.10.11.3 </span><dfn>WebSRT cue text parsing rules</dfn></h6>
+ <p>A <dfn id=websrt-node-object>WebSRT Node Object</dfn> is a conceptual construct used to
+ represent components of <a href=#websrt-cue-text>WebSRT cue text</a> so that its
+ processing can be described without reference to the underlying
+ syntax.</p>
+
+ <p>There are two broad classes of <a href=#websrt-node-object title="WebSRT Node
+ Object">WebSRT Node Objects</a>: <a href=#websrt-internal-node-object title="WebSRT Internal
+ Node Object">WebSRT Internal Node Objects</a> and <a href=#websrt-leaf-node-object title="WebSRT Leaf Node Object">WebSRT Leaf Node Objects</a>.</p>
+
+ <p><dfn id=websrt-internal-node-object title="WebSRT Internal Node Object">WebSRT Internal Node
+ Objects</dfn> are those that can contain further <a href=#websrt-node-object title="WebSRT
+ Node Object">WebSRT Node Objects</a>. They are conceptually
+ similar to elements in HTML or the DOM. <a href=#websrt-internal-node-object title="WebSRT Internal
+ Node Object">WebSRT Internal Node Objects</a> have an ordered
+ list of child <a href=#websrt-node-object title="WebSRT Node Object">WebSRT Node
+ Objects</a>. The <a href=#websrt-internal-node-object>WebSRT Internal Node Object</a> is said
+ to be the <i>parent</i> of the children. Cycles do not occur; the
+ parent-child relationships so constructed form a tree structure.</p>
+
+ <p>There are five concrete classes of <a href=#websrt-internal-node-object title="WebSRT Internal
+ Node Object">WebSRT Internal Node Objects</a>:</p>
+
+ <dl><dt><dfn id=list-of-websrt-node-objects title="List of WebSRT Node Objects">Lists of WebSRT Node Objects</dfn></dt>
+ <dd>
+ <p>These are used as root nodes for trees of <a href=#websrt-node-object title="WebSRT
+ Node Object">WebSRT Node Objects</a>.</p>
+ </dd>
+
+ <dt><dfn id=websrt-italic-object title="WebSRT Italic Object">WebSRT Italic Objects</dfn></dt>
+ <dd>
+ <p>These represent spans of italic text (a <a href=#websrt-cue-italics-span>WebSRT cue
+ italics span</a>) in <a href=#websrt-cue-text>WebSRT cue text</a>.</p>
+ </dd>
+
+ <dt><dfn id=websrt-bold-object title="WebSRT Bold Object">WebSRT Bold Objects</dfn></dt>
+ <dd>
+ <p>These represent spans of bold text (a <a href=#websrt-cue-bold-span>WebSRT cue
+ bold span</a>) in <a href=#websrt-cue-text>WebSRT cue text</a>.</p>
+ </dd>
+
+ <dt><dfn id=websrt-ruby-object title="WebSRT Ruby Object">WebSRT Ruby Objects</dfn></dt>
+ <dd>
+ <p>These represent spans of ruby (a <a href=#websrt-cue-ruby-span>WebSRT cue
+ ruby span</a>) in <a href=#websrt-cue-text>WebSRT cue text</a>.</p>
+ </dd>
+
+ <dt><dfn id=websrt-ruby-text-object title="WebSRT Ruby Text Object">WebSRT Ruby Text Objects</dfn></dt>
+ <dd>
+ <p>These represent spans of ruby text (the component of a
+ <a href=#websrt-cue-ruby-span>WebSRT cue ruby span</a> that is between the "<code title=""><rt></code>" and "<code title=""></rt></code>" strings) in <a href=#websrt-cue-text>WebSRT cue
+ text</a>.</p>
+ </dd>
+
+ </dl><p><dfn id=websrt-leaf-node-object title="WebSRT Leaf Node Object">WebSRT Leaf Node
+ Objects</dfn> are those that contain data, such as text, and cannot
+ contain child <a href=#websrt-node-object title="WebSRT Node Object">WebSRT Node
+ Objects</a>.</p>
+
+ <p>There are two concrete classes of <a href=#websrt-leaf-node-object title="WebSRT Leaf Node
+ Object">WebSRT Leaf Node Objects</a>:</p>
+
+ <dl><dt><dfn id=websrt-text-object title="WebSRT Text Object">WebSRT Text Objects</dfn></dt>
+ <dd>
+ <p>A fragment of text.</p>
+ </dd>
+
+ <dt><dfn id=websrt-timestamp-object title="WebSRT Timestamp Object">WebSRT Timestamp Objects</dfn></dt>
+ <dd>
+ <p>A timestamp.</p>
+ </dd>
+
+ </dl><p>To parse a string <var title="">input</var> supposedly containing
+ <a href=#websrt-cue-text>WebSRT cue text</a>, user agents must use the following
+ algorithm. This algorithm returns a <a href=#list-of-websrt-node-objects>list of WebSRT Node
+ Objects</a>.</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 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>
-
</div>
</div>
@@ -78383,7 +78473,7 @@
<h4 id=timed-tracks-0><span class=secno>12.3.2 </span>Timed tracks</h4>
- <p class=XXX>rendering model for timed tracks</p>
+ <p class=XXX><dfn id=websrt-cue-text-rendering-rules>WebSRT cue text rendering rules</dfn></p>
<p class=XXX>CSS extensions</p>
Modified: source
===================================================================
--- source 2010-06-30 19:40:56 UTC (rev 5125)
+++ source 2010-07-01 01:06:25 UTC (rev 5126)
@@ -28797,7 +28797,7 @@
<dd>
<p>Should be set to false unless the format uses a rendering and
positioning model for cues that is largely consistent with the
- <span>WebSRT cue text parsing and rendering rules</span>.</p>
+ <span>WebSRT cue text rendering rules</span>.</p>
</dd>
<dt>The <span>timed track cue line position</span>
@@ -28807,8 +28807,8 @@
<dd>
<p>If the the format uses a rendering and positioning model for
cues that can be largely simulated using the <span>WebSRT cue text
- parsing and rendering rules</span>, then these should be set to
- the values that would give the same effect for <span>WebSRT</span>
+ rendering rules</span>, then these should be set to the values
+ that would give the same effect for <span>WebSRT</span>
cues. Otherwise, they should be set to zero.</p>
</dd>
@@ -28922,7 +28922,7 @@
<h5>WebSRT</h5>
- <p>The <dfn>WebSRT</dfn>s format (Web Subtitle Resource Tracks) is a
+ <p>The <dfn>WebSRT</dfn> format (Web Subtitle Resource Tracks) is a
format intended for marking up external timed track resources.</p>
@@ -28949,7 +28949,7 @@
<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> followed by zero or more U+0020 SPACE characters or U+0009 CHARACTER TABULATION (tab) characters.</li>
- <li><span title="WebSRT cue text line">WebSRT cue text</span>.</li>
+ <li><span>WebSRT cue text</span>.</li>
</ol>
<p>A <dfn>WebSRT line terminator</dfn> consists of one of the
@@ -29967,19 +29967,126 @@
<li><p>Let the <span>timed track cue text</span> of <var
title="">cue</var> be the substring of <var title="">input</var>
- from the position indicated by <var title="">input</var> to the end
- of the <var title="">input</var>, and let the rules for its
- interpretation be the <span>WebSRT cue text parsing and rendering
- rules</span> defined below.</p></li>
+ from the position indicated by <var title="">position</var> to the
+ end of the <var title="">input</var>, and let the rules for its
+ interpretation be the <span>WebSRT cue text parsing rules</span>,
+ the <span>WebSRT cue text rendering rules</span>, and the
+ <span>WebSRT cue text DOM construction rules</span>.</p></li>
</ol>
- <h6><dfn>WebSRT cue text parsing and rendering rules</dfn></h6>
+ <h6><dfn>WebSRT cue text parsing rules</dfn></h6>
+ <p>A <dfn>WebSRT Node Object</dfn> is a conceptual construct used to
+ represent components of <span>WebSRT cue text</span> so that its
+ processing can be described without reference to the underlying
+ syntax.</p>
+
+ <p>There are two broad classes of <span title="WebSRT Node
+ Object">WebSRT Node Objects</span>: <span title="WebSRT Internal
+ Node Object">WebSRT Internal Node Objects</span> and <span
+ title="WebSRT Leaf Node Object">WebSRT Leaf Node Objects</span>.</p>
+
+ <p><dfn title="WebSRT Internal Node Object">WebSRT Internal Node
+ Objects</dfn> are those that can contain further <span title="WebSRT
+ Node Object">WebSRT Node Objects</span>. They are conceptually
+ similar to elements in HTML or the DOM. <span title="WebSRT Internal
+ Node Object">WebSRT Internal Node Objects</span> have an ordered
+ list of child <span title="WebSRT Node Object">WebSRT Node
+ Objects</span>. The <span>WebSRT Internal Node Object</span> is said
+ to be the <i>parent</i> of the children. Cycles do not occur; the
+ parent-child relationships so constructed form a tree structure.</p>
+
+ <p>There are five concrete classes of <span title="WebSRT Internal
+ Node Object">WebSRT Internal Node Objects</span>:</p>
+
+ <dl>
+
+ <dt><dfn title="List of WebSRT Node Objects">Lists of WebSRT Node Objects</dfn></dt>
+ <dd>
+ <p>These are used as root nodes for trees of <span title="WebSRT
+ Node Object">WebSRT Node Objects</span>.</p>
+ </dd>
+
+ <dt><dfn title="WebSRT Italic Object">WebSRT Italic Objects</dfn></dt>
+ <dd>
+ <p>These represent spans of italic text (a <span>WebSRT cue
+ italics span</span>) in <span>WebSRT cue text</span>.</p>
+ </dd>
+
+ <dt><dfn title="WebSRT Bold Object">WebSRT Bold Objects</dfn></dt>
+ <dd>
+ <p>These represent spans of bold text (a <span>WebSRT cue
+ bold span</span>) in <span>WebSRT cue text</span>.</p>
+ </dd>
+
+ <dt><dfn title="WebSRT Ruby Object">WebSRT Ruby Objects</dfn></dt>
+ <dd>
+ <p>These represent spans of ruby (a <span>WebSRT cue
+ ruby span</span>) in <span>WebSRT cue text</span>.</p>
+ </dd>
+
+ <dt><dfn title="WebSRT Ruby Text Object">WebSRT Ruby Text Objects</dfn></dt>
+ <dd>
+ <p>These represent spans of ruby text (the component of a
+ <span>WebSRT cue ruby span</span> that is between the "<code
+ title=""><rt></code>" and "<code
+ title=""></rt></code>" strings) in <span>WebSRT cue
+ text</span>.</p>
+ </dd>
+
+ </dl>
+
+ <p><dfn title="WebSRT Leaf Node Object">WebSRT Leaf Node
+ Objects</dfn> are those that contain data, such as text, and cannot
+ contain child <span title="WebSRT Node Object">WebSRT Node
+ Objects</span>.</p>
+
+ <p>There are two concrete classes of <span title="WebSRT Leaf Node
+ Object">WebSRT Leaf Node Objects</span>:</p>
+
+ <dl>
+
+ <dt><dfn title="WebSRT Text Object">WebSRT Text Objects</dfn></dt>
+ <dd>
+ <p>A fragment of text.</p>
+ </dd>
+
+ <dt><dfn title="WebSRT Timestamp Object">WebSRT Timestamp Objects</dfn></dt>
+ <dd>
+ <p>A timestamp.</p>
+ </dd>
+
+ </dl>
+
+ <p>To parse a string <var title="">input</var> supposedly containing
+ <span>WebSRT cue text</span>, user agents must use the following
+ algorithm. This algorithm returns a <span>list of WebSRT Node
+ Objects</span>.</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 class="XXX">...</li>
+
+ </ol>
+
+
+ <h6><dfn>WebSRT cue text DOM construction rules</dfn></h6>
+
<p class="XXX">...</p>
-
</div>
</div>
@@ -97035,7 +97142,7 @@
<h4>Timed tracks</h4>
- <p class="XXX">rendering model for timed tracks</p>
+ <p class="XXX"><dfn>WebSRT cue text rendering rules</dfn></p>
<p class="XXX">CSS extensions</p>
More information about the Commit-Watchers
mailing list