Skip to content

Commit

Permalink
Allow . as delimiter, and fix user-defined descriptor text
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelmegitt committed Sep 26, 2024
1 parent 09b070e commit 224440f
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ttp:contentProfiles="http://www.w3.org/ns/ttml/profile/dapt1.0/content"
xml:lang="en"
daptm:langSrc="fr"
daptm:scriptRepresents="audio;dialogue"
daptm:scriptRepresents="audio.dialogue"
daptm:scriptType="preRecording">
<head>
<metadata>
Expand All @@ -15,7 +15,7 @@
</metadata>
</head>
<body>
<div begin="10s" end="13s" ttm:agent="character_1" daptm:onScreen="ON_OFF" daptm:represents="audio;dialogue">
<div begin="10s" end="13s" ttm:agent="character_1" daptm:onScreen="ON_OFF" daptm:represents="audio.dialogue">
<p xml:lang="fr" daptm:langSrc="fr">
<span>Et c'est grâce à ça qu'on va devenir riches.</span>
</p>
Expand Down
4 changes: 2 additions & 2 deletions examples/intro-original-language-with-dub-language.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ttp:contentProfiles="http://www.w3.org/ns/ttml/profile/dapt1.0/content"
xml:lang="en"
daptm:langSrc="fr"
daptm:scriptRepresents="audio;dialogue"
daptm:scriptRepresents="audio.dialogue"
daptm:scriptType="translatedTranscript">
<head>
<metadata>
Expand All @@ -15,7 +15,7 @@
</metadata>
</head>
<body>
<div begin="10s" end="13s" ttm:agent="character_1" daptm:represents="audio;dialogue">
<div begin="10s" end="13s" ttm:agent="character_1" daptm:represents="audio.dialogue">
<p xml:lang="fr" daptm:langSrc="fr"> <!-- original -->
<span>Et c'est grâce à ça qu'on va devenir riches.</span>
</p>
Expand Down
4 changes: 2 additions & 2 deletions examples/intro-original-language.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ttp:contentProfiles="http://www.w3.org/ns/ttml/profile/dapt1.0/content"
xml:lang="fr"
daptm:langSrc="fr"
daptm:scriptRepresents="audio;dialogue"
daptm:scriptRepresents="audio.dialogue"
daptm:scriptType="originalTranscript">
<head>
<metadata>
Expand All @@ -15,7 +15,7 @@
</metadata>
</head>
<body>
<div begin="10s" end="13s" daptm:represents="audio;dialogue">
<div begin="10s" end="13s" daptm:represents="audio.dialogue">
<p ttm:agent="character_1">
<span>Et c'est grâce à ça qu'on va devenir riches.</span>
</p>
Expand Down
4 changes: 2 additions & 2 deletions examples/intro-script-with-gain.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<tt ...
daptm:scriptRepresents="visual;nonText visual;text"
daptm:scriptRepresents="visual.nonText visual.text"
daptm:scriptType="asRecorded"
xml:lang="en"
daptm:langSrc="">
...
<div begin="25s" end="28s" daptm:represents="visual;nonText">
<div begin="25s" end="28s" daptm:represents="visual.nonText">
<p>
<animate begin="0.0s" end="0.3s" tta:gain="1;0.39" fill="freeze"/>
<animate begin="2.7s" end="3s" tta:gain="0.39;1"/>
Expand Down
6 changes: 3 additions & 3 deletions examples/intro-times-and-text.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
ttp:contentProfiles="http://www.w3.org/ns/ttml/profile/dapt1.0/content"
xml:lang="en"
daptm:langSrc=""
daptm:scriptRepresents="visual;nonText visual;text"
daptm:scriptRepresents="visual.nonText visual.text"
daptm:scriptType="preRecording">
<body>
<div begin="10s" end="13s" daptm:represents="visual;nonText">
<div begin="10s" end="13s" daptm:represents="visual.nonText">
<p>
A woman climbs into a small sailing boat.
</p>
</div>
<div begin="18s" end="20s" daptm:represents="visual;nonText">
<div begin="18s" end="20s" daptm:represents="visual.nonText">
<p>
The woman pulls the tiller and the boat turns.
</p>
Expand Down
2 changes: 1 addition & 1 deletion examples/sourceMediaIdentifier.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xmlns:ebuttm="urn:ebu:tt:metadata"
xml:lang="en"
ttp:contentProfiles="http://www.w3.org/ns/ttml/profile/dapt1.0/content"
daptm:scriptRepresents="audio;dialogue"
daptm:scriptRepresents="audio.dialogue"
daptm:scriptType="originalTranscript">
<head>
<metadata>
Expand Down
18 changes: 12 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -880,10 +880,13 @@ <h5><code>&lt;content-descriptor&gt;</code> values</h5>
: &lt;descriptor-token&gt; ( &lt;descriptor-delimiter&gt; &lt;descriptor-token&gt; )*

&lt;descriptor-token&gt;
: <a data-cite="xmlschema-2#NMTOKEN">xsd:NMtoken</a>
: (descriptorTokenChar)+

descriptorTokenChar # <a data-cite="xmlschema-2#NMTOKEN">xsd:NMtoken</a> without the "."
: <a data-cite="xml#NT-NameStartChar">NameStartChar</a> | "-" | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040]

&lt;descriptor-delimiter&gt;
: ; # SEMI-COLON U+003B
: "." # FULL STOP U+002E
</pre>
</div>
<p><code>&lt;<a>content-descriptor</a>&gt;</code> has values that are delimiter separated ordered lists
Expand Down Expand Up @@ -926,7 +929,11 @@ <h5><code>&lt;content-descriptor&gt;</code> values</h5>
and B could be the value of a <a>Represents</a> property.</p>
</aside>
<p>The permitted values for <code>&lt;<a>content-descriptor</a>&gt;</code>
are either those listed in the following <a>registry table</a>, or can be user-defined:</p>
are either those listed in the following <a>registry table</a>, or can be user-defined.</p>
<p>Valid user-defined values MUST begin with <code>x-</code> or be <a>sub-types</a> of
values in the <code>content-descriptor</code> registry table, where the
first additional <code>&lt;descriptor-token&gt;</code> component begins with <code>x-</code>.</p>

<div class="registry-table-section">
<table class="data">
<caption><a>Registry table</a> for the <code>&lt;<a>content-descriptor</a>&gt;</code> component
Expand Down Expand Up @@ -987,8 +994,8 @@ <h5><code>&lt;content-descriptor&gt;</code> values</h5>
<tr>
<td><code>visual;text</code></td>
<td>Provisional</td>
<td>>Indicates that the DAPT content represents textual
parts of the visual image of the programme</td>
<td>Indicates that the DAPT content represents textual
content in the visual image of the programme</td>
<td>Audio Description</td>
<td>For example, a signpost, a clock, a newspaper headline, an instant message etc.</td>
</tr>
Expand Down Expand Up @@ -1016,7 +1023,6 @@ <h5><code>&lt;content-descriptor&gt;</code> values</h5>
</tbody>
</table>
</div>
<p>User-defined values MUST begin with <code>x-</code>.</p>
</section>
</section>
</section>
Expand Down

0 comments on commit 224440f

Please sign in to comment.