Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarify what spans are possible in a text and how they are handled #158

Merged
merged 2 commits into from
Mar 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -925,9 +925,13 @@ <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> element is the <a>Text</a> of the <a>Script Event</a>.
<aside class="note">The text content of the paragraph can be structured using TTML mark-up such as
<code>&lt;br&gt;</code> or <code>&lt;span&gt;</code> elements
<li>The <a>Text</a> of the <a>Script Event</a> is represented by the character content
of the <code>&lt;p&gt;</code> element and of all of its <code>&lt;span&gt;</code> descendant elements,
after <code>&lt;metadata&gt;</code> elements and foreign elements have been pruned,
after replacing <code>&lt;br&gt;</code> elements by line breaks,
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
such as <code>tts:ruby</code> used to alter the layout or styling of
sections of text within each paragraph.
Expand Down Expand Up @@ -996,11 +1000,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
Loading