Skip to content

Commit

Permalink
clarify what spans are possible in a text and how they are handled
Browse files Browse the repository at this point in the history
  • Loading branch information
cconcolato committed Dec 22, 2023
1 parent 8d16753 commit 89cf6a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ <h4>Text</h4>
</p>
<p>A <a>Text</a> object is represented in a <a>DAPT Document</a> by a <code>&lt;p&gt;</code> element with the following constraints:</p>
<ul>
<li>The text content of the <code>&lt;p&gt;</code> is the <a>Text</a> of the <a>Script Event</a>.
<li>The <a>Text</a> of the <a>Script Event</a> is represented by the content of the <code>&lt;p&gt;</code> and its descendants, and after applying White Space Handling as defined in [[!XML]].
<aside class="note">The text content of the paragraph can be structured using TTML elements such as
<code>&lt;br&gt;</code> or <code>&lt;span&gt;</code>
which can include or reference TTML style attributes
Expand Down Expand Up @@ -993,11 +993,14 @@ <h4>Text</h4>
This is represented in a <a>DAPT Document</a> by setting the <code>xml:lang</code> and
<a><code>daptm:langSrc</code></a>
attributes on inner <code>&lt;span&gt;</code> elements.</p>
<p class="note"><code>&lt;span&gt;</code> elements can be used to add specific timing
as illustrated in [[[#example-10]]] to indicate the timing of the audio rendering
of the relevant section of text. Per [[TTML2]], timing of the <code>&lt;span&gt;</code>
element is relative to the parent element's computed begin time.</p>
</li>
<li>It MAY contain zero or more <code>&lt;audio&gt;</code> elements representing each <a>Audio Recording</a> object.</li>
<li>It MAY contain zero or more <code>&lt;animate&gt;</code> elements representing each <a>Mixing Instruction</a> object.</li>
</ul>

</section>

<section>
Expand Down

0 comments on commit 89cf6a7

Please sign in to comment.