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 Jun 14, 2023
1 parent 3b9e751 commit a70a81b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -857,11 +857,17 @@ <h4>Text</h4>
<a>Text</a> objects in one language can also contain some words in a different language.
This is represented in a <a>DAPT Document</a> by setting the <code>xml:lang</code> attribute on
inner <code>&lt;span&gt;</code> elements.</p>
<p class="note"><code>&lt;span&gt;</code> elements can be used to add specific styling (e.g. Japanese ruby annotations).</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>
<p class="note">The text content of a <a>Text</a> object is the concatenated text content
of the <code>&lt;p&gt;</code> element and its descendent <code>&lt;span&gt;</code> elements.</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 a70a81b

Please sign in to comment.