Skip to content

Commit e50c715

Browse files
authored
Clarify requirements for Represents (#328)
Closes #327 * Clarify requirements for Represents * Require valid computed valid for Represents in Text object and all its sub-parts * Add definition wrappers to namespace prefixes * Define locally, and exclude, metadata properties of Script Events when deciding if it's possible to map from a `<div>` to a Script Event. * Removing unnecessary sentence.
1 parent 1d92778 commit e50c715

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

index.html

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,11 @@ <h4>Text</h4>
14061406
is indicated using the <a>Text Language Source</a> property.</p>
14071407
<p>If the <a>Text</a> object, or part of it, represents something more specific, or different,
14081408
to its parent <a>Script Event</a>, it can have a different <a>Represents</a> property.</p>
1409+
<p>The <a>Text</a> object, and every one of its parts, MUST have a valid <a>Represents</a> property.
1410+
The presence of the property itself is considered optional
1411+
because if the <a>Text</a> object omits the
1412+
property then the property is inherited from the parent <a>Script Event</a>.
1413+
</p>
14091414
<aside class="note">
14101415
<p>Where possible, text representing
14111416
different parts of the <a>related media object</a> should be put into
@@ -2275,25 +2280,25 @@ <h3>Namespaces</h3>
22752280
<!-- TTML Namespaces are ordered the same as in the TTML2 Specification -->
22762281
<tr>
22772282
<td>TT</td>
2278-
<td><code>tt</code></td>
2283+
<td><dfn class="lint-ignore"><code>tt</code></dfn></td>
22792284
<td><code>http://www.w3.org/ns/ttml</code></td>
22802285
<td>[[TTML2]]</td>
22812286
</tr>
22822287
<tr>
22832288
<td>TT Parameter</td>
2284-
<td><code>ttp</code></td>
2289+
<td><dfn class="lint-ignore"><code>ttp</code></dfn></td>
22852290
<td><code>http://www.w3.org/ns/ttml#parameter</code></td>
22862291
<td>[[TTML2]]</td>
22872292
</tr>
22882293
<tr>
22892294
<td>TT Audio Style</td>
2290-
<td><code>tta</code></td>
2295+
<td><dfn class="lint-ignore"><code>tta</code></dfn></td>
22912296
<td><code>http://www.w3.org/ns/ttml#audio</code></td>
22922297
<td>[[TTML2]]</td>
22932298
</tr>
22942299
<tr>
22952300
<td>TT Metadata</td>
2296-
<td><code>ttm</code></td>
2301+
<td><dfn><code>ttm</code></dfn></td>
22972302
<td><code>http://www.w3.org/ns/ttml#metadata</code></td>
22982303
<td>[[TTML2]]</td>
22992304
</tr>
@@ -2305,7 +2310,7 @@ <h3>Namespaces</h3>
23052310
</tr>
23062311
<tr>
23072312
<td>DAPT Metadata</td>
2308-
<td><code>daptm</code></td>
2313+
<td><dfn class="export"><code>daptm</code></dfn></td>
23092314
<td><code>http://www.w3.org/ns/ttml/profile/dapt#metadata</code></td>
23102315
<td><em>This specification</em></td>
23112316
</tr>
@@ -2317,7 +2322,7 @@ <h3>Namespaces</h3>
23172322
</tr>
23182323
<tr>
23192324
<td>EBU-TT Metadata</td>
2320-
<td><code>ebuttm</code></td>
2325+
<td><dfn class="lint-ignore"><code>ebuttm</code></dfn></td>
23212326
<td><code>urn:ebu:tt:metadata</code></td>
23222327
<td>[[EBU-TT-3390]]</td>
23232328
</tr>
@@ -2701,12 +2706,18 @@ <h3>Handling <code>&lt;div&gt;</code> and <code>&lt;p&gt;</code> elements</h3>
27012706
<p>The following processing rules resolve these cases.</p>
27022707
<p>Rules for identifying <a>Script Events</a>:</p>
27032708
<ol>
2704-
<li>A <code>&lt;div&gt;</code> element that has no <code>&lt;div&gt;</code> element children
2705-
and includes the TTML representations of all the mandatory properties of a <a>Script Event</a>
2709+
<li>
2710+
<p>A <code>&lt;div&gt;</code> element that has no <code>&lt;div&gt;</code> element children
2711+
and includes the TTML representations of all the non-metadata mandatory properties of a <a>Script Event</a>
27062712
MUST be mapped to a <a>Script Event</a>,
27072713
such as having a valid <code>xml:id</code>
27082714
representing the <a>Script Event Identifier</a>,
2709-
even if it also contains additional <a>unrecognised vocabulary</a>;</li>
2715+
even if it also contains additional <a>unrecognised vocabulary</a>;</p>
2716+
<aside>For the purposes of this clause a property is considered to be
2717+
metadata if its TTML representation is in the <a><code>daptm</code></a> namespace
2718+
or the <a><code>ttm</code></a> namespace.
2719+
</aside>
2720+
</li>
27102721
<li>A <code>&lt;div&gt;</code> element that contains any <code>&lt;div&gt;</code> element children
27112722
MUST NOT be mapped to a <a>Script Event</a>;
27122723
the processor instead MUST iterate through those <code>&lt;div&gt;</code> element children

0 commit comments

Comments
 (0)