Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelmegitt committed Mar 28, 2023
1 parent 16547a6 commit 9c4b250
Showing 1 changed file with 72 additions and 74 deletions.
146 changes: 72 additions & 74 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -590,55 +590,54 @@ <h3>Character</h3>
</p>
<p class="issue" data-number="66"></p>
<p>A <a>Character</a> is represented in TTML with the following structure and constraints:</p>
<ul>
<li>If the <a>Character</a> has a <a>Talent Name</a> property:
<ul>
<li>A <code>&lt;ttm:agent&gt;</code> element corresponding to the <a>Talent Name</a>
MUST be present at the path
<code>/tt/head/metadata/ttm:agent</code>, with the following constraints:
<ul>
<li>its <code>type</code> attribute MUST be set to <code>person</code></li>
<li>its <code>xml:id</code> attribute MUST be set.</li>
<li>it MUST have a <code>&lt;ttm:name&gt;</code> child element whose
<code>type</code> MUST be set to <code>full</code> and its content set to the <a>Talent Name</a></li>
</ul>
</li>
<li>If more than one <a>Character</a> is associated with the same
<a>Talent Name</a> there SHOULD be a single
<code>&lt;ttm:agent&gt;</code> element corresponding to that <a>Talent Name</a>,
referenced separately by each of the <a>Characters</a>.</li>
<li>Each <code>&lt;ttm:agent&gt;</code> element corresponding to a <a>Talent Name</a>
SHOULD appear before any of the <a>Character</a> <code>&lt;ttm:agent&gt;</code> elements
whose <code>&lt;ttm:actor&gt;</code> child element references it.</li>
</ul>
<ul>
<li>If the <a>Character</a> has a <a>Talent Name</a> property:
<ul>
<li>A <code>&lt;ttm:agent&gt;</code> element corresponding to the <a>Talent Name</a>
MUST be present at the path
<code>/tt/head/metadata/ttm:agent</code>, with the following constraints:
<ul>
<li>its <code>type</code> attribute MUST be set to <code>person</code></li>
<li>its <code>xml:id</code> attribute MUST be set.</li>
<li>it MUST have a <code>&lt;ttm:name&gt;</code> child element whose
<code>type</code> MUST be set to <code>full</code> and its content set to the <a>Talent Name</a></li>
</ul>
</li>
<li>If more than one <a>Character</a> is associated with the same
<a>Talent Name</a> there SHOULD be a single
<code>&lt;ttm:agent&gt;</code> element corresponding to that <a>Talent Name</a>,
referenced separately by each of the <a>Characters</a>.</li>
<li>Each <code>&lt;ttm:agent&gt;</code> element corresponding to a <a>Talent Name</a>
SHOULD appear before any of the <a>Character</a> <code>&lt;ttm:agent&gt;</code> elements
whose <code>&lt;ttm:actor&gt;</code> child element references it.</li>
</ul>
</li>

<li>The <a>Character</a> is represented by a <code>&lt;ttm:agent&gt;</code> element present at the path
<code>/tt/head/metadata/ttm:agent</code>, with the following constraints:
<ul>
<li>The <code>type</code> attribute MUST be set to <code>character</code>.</li>
<li>The <code>xml:id</code> attribute MUST be present on the <code>ttm:agent</code> and set to the <a>Character Identifier</a>.</li>
<li>The <code>ttm:agent</code> MUST contain a <code>ttm:name</code> element with its <code>type</code> attribute set to <code>alias</code> and its content set to the <a>Character Name</a>.</li>
<li>If the Character has a <a>Talent Name</a>, it MUST contain a <code>&lt;ttm:actor&gt;</code> child element.
That child element MUST have an <code>agent</code> attribute set to
the <code>xml:id</code> of the <code>&lt;ttm:agent&gt;</code> element
corresponding to the <a>Talent Name</a>,
that is, whose <code>type</code> is set to <code>person</code>.</li>
</ul>
</li>
<li>The <a>Character</a> is represented by a <code>&lt;ttm:agent&gt;</code> element present at the path
<code>/tt/head/metadata/ttm:agent</code>, with the following constraints:
<ul>
<li>The <code>type</code> attribute MUST be set to <code>character</code>.</li>
<li>The <code>xml:id</code> attribute MUST be present on the <code>ttm:agent</code> and set to the <a>Character Identifier</a>.</li>
<li>The <code>ttm:agent</code> MUST contain a <code>ttm:name</code> element with its <code>type</code> attribute set to <code>alias</code> and its content set to the <a>Character Name</a>.</li>
<li>If the Character has a <a>Talent Name</a>, it MUST contain a <code>&lt;ttm:actor&gt;</code> child element.
That child element MUST have an <code>agent</code> attribute set to
the <code>xml:id</code> of the <code>&lt;ttm:agent&gt;</code> element
corresponding to the <a>Talent Name</a>,
that is, whose <code>type</code> is set to <code>person</code>.</li>
</ul>
</li>

<pre class="example">
<pre class="example">
...
&lt;metadata&gt;
&lt;ttm:agent type=&quot;character&quot; xml:id=&quot;character_1&quot;&gt;
&lt;ttm:name type=&quot;alias&quot;&gt;DESK CLERK&lt;/ttm:name&gt;
&lt;/ttm:agent&gt;
&lt;/metadata&gt;
...
</pre>

</li>
</pre>

<pre class="example">
<pre class="example">
...
&lt;metadata&gt;
&lt;ttm:agent type=&quot;person&quot; xml:id=&quot;actor_A&quot;&gt;
Expand All @@ -650,42 +649,41 @@ <h3>Character</h3>
&lt;/ttm:agent&gt;
&lt;/metadata&gt;
...
</pre>
<li>All <code>&lt;ttm:agent&gt;</code> elements SHOULD be contained in the first <code>&lt;metadata&gt;</code> element in the <code>&lt;head&gt;</code> element.
<div class="note">There can be multiple <code>&lt;metadata&gt;</code> elements in the <code>&lt;head&gt;</code> element,
for example to include <a href="#proprietary-metadata">proprietary metadata</a>
but the above recommends that only one is used to define the characters.</div>
</li>
</ul>
</pre>
<li>All <code>&lt;ttm:agent&gt;</code> elements SHOULD be contained in the first <code>&lt;metadata&gt;</code> element in the <code>&lt;head&gt;</code> element.
<div class="note">There can be multiple <code>&lt;metadata&gt;</code> elements in the <code>&lt;head&gt;</code> element,
for example to include <a href="#proprietary-metadata">proprietary metadata</a>
but the above recommends that only one is used to define the characters.</div>
</li>
</ul>

<p>A <a>Character Style</a> is represented in TTML with the following structure and constraints:</p>
<ul>
<li>Each <a>Character Style</a> is represented by one or more <code>&lt;style&gt;</code> elements
at the path <code>/tt/head/styling/style</code>.</li>
<li>Each such <code>&lt;style&gt;</code> element is associated with the <a>Character</a> by having a <code>ttm:agent</code> attribute
whose value is the <code>xml:id</code> of the <code>&lt;ttm:agent&gt;</code> element representing the <a>Character</a>.</li>
<li>A <a>Script Event</a> MAY apply <a>Character Styles</a> by including the <code>xml:id</code> of each style
in the <code>style</code> attribute of the <code>&lt;div&gt;</code> element that defines that Script Event.</li>
<li>A <a>Text</a> object MAY apply <a>Character Styles</a> by including the <code>xml:id</code> of each style
in the <code>style</code> attribute of the <code>&lt;p&gt;</code> element that defines that Text object.</li>
<li>A <a>Script Event</a> SHOULD NOT apply a <a>Character Style</a> for a <a>Character</a> that is not associated with that Script Event.</li>
<li>A <a>Text</a> object SHOULD NOT apply a <a>Character Style</a> for a <a>Character</a> that is not associated with that Text object's Script Event.</li>
</ul>


<p class="note">Any style attribute defined in [[ttml2]] or [[ttml-imsc1.2]]
(or other profiles using non-W3C namespaces) can be present on the <code>&lt;style&gt;</code> element.</p>
<p>A <code>&lt;style&gt;</code> element MAY omit the <code>ttm:agent</code> attribute if it is not associated with a <a>Character</a>.
Such styles MAY be applied in the same way as any other style, via a reference in the <code>style</code> attribute.</p>
<p>Character Styles are applied to <a>Script Events</a> and <a>Text</a> by using the <code>style</code> attribute to specify the set of applicable styles.
<a>Presentation Processors</a> MUST NOT apply character styles to text if they are not specified using the <code>style</code> attribute.
</p>
<p class="issue" data-number="44"></p>
<aside class="note">Given a document that specifies a <code>&lt;style&gt;</code> element with a <code>ttm:agent</code> attribute,
and a <a>Script Event</a> with the same <code>ttm:agent</code> attribute value,
but that does not reference (directly or by inheritance) that style using a <code>style</code> attribute,
a <a>Presentation Processor</a> would not be conformant if it applied that style anyway, solely on the basis of the <code>ttm:agent</code>
being the same.</aside>
<p>A <a>Character Style</a> is represented in TTML with the following structure and constraints:</p>
<ul>
<li>Each <a>Character Style</a> is represented by one or more <code>&lt;style&gt;</code> elements
at the path <code>/tt/head/styling/style</code>.</li>
<li>Each such <code>&lt;style&gt;</code> element is associated with the <a>Character</a> by having a <code>ttm:agent</code> attribute
whose value is the <code>xml:id</code> of the <code>&lt;ttm:agent&gt;</code> element representing the <a>Character</a>.</li>
<li>A <a>Script Event</a> MAY apply <a>Character Styles</a> by including the <code>xml:id</code> of each style
in the <code>style</code> attribute of the <code>&lt;div&gt;</code> element that defines that Script Event.</li>
<li>A <a>Text</a> object MAY apply <a>Character Styles</a> by including the <code>xml:id</code> of each style
in the <code>style</code> attribute of the <code>&lt;p&gt;</code> element that defines that Text object.</li>
<li>A <a>Script Event</a> SHOULD NOT apply a <a>Character Style</a> for a <a>Character</a> that is not associated with that Script Event.</li>
<li>A <a>Text</a> object SHOULD NOT apply a <a>Character Style</a> for a <a>Character</a> that is not associated with that Text object's Script Event.</li>
</ul>

<p class="note">Any style attribute defined in [[ttml2]] or [[ttml-imsc1.2]]
(or other profiles using non-W3C namespaces) can be present on the <code>&lt;style&gt;</code> element.</p>
<p>A <code>&lt;style&gt;</code> element MAY omit the <code>ttm:agent</code> attribute if it is not associated with a <a>Character</a>.
Such styles MAY be applied in the same way as any other style, via a reference in the <code>style</code> attribute.</p>
<p>Character Styles are applied to <a>Script Events</a> and <a>Text</a> by using the <code>style</code> attribute to specify the set of applicable styles.
<a>Presentation Processors</a> MUST NOT apply character styles to text if they are not specified using the <code>style</code> attribute.
</p>
<p class="issue" data-number="44"></p>
<aside class="note">Given a document that specifies a <code>&lt;style&gt;</code> element with a <code>ttm:agent</code> attribute,
and a <a>Script Event</a> with the same <code>ttm:agent</code> attribute value,
but that does not reference (directly or by inheritance) that style using a <code>style</code> attribute,
a <a>Presentation Processor</a> would not be conformant if it applied that style anyway, solely on the basis of the <code>ttm:agent</code>
being the same.</aside>

<pre class="example">
...
Expand Down

0 comments on commit 9c4b250

Please sign in to comment.