Skip to content

Commit

Permalink
Add two language variants of ttm:item
Browse files Browse the repository at this point in the history
Fix #271 by adding two example `ttm:item` elements, both associated
with an `image`, and each having `name="altText"` and differing
`xml:lang` and text content in the appropriate language.
  • Loading branch information
nigelmegitt committed May 10, 2017
1 parent 597a244 commit 4679535
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions spec/ttml2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18278,6 +18278,28 @@ i.e., if the encoded image bytes had been included directly as #PCDATA in the <l
then it would not have been possible to include the <el>ttm:item</el> child element. See the supported content models on the
<loc href="#embedded-content-vocabulary-data">data</loc> element for more information.</p>
</note>
<p>The use of named metadata items with different language content is illustrated by the following example.</p>
<table id="metadata-vocabulary-item-example-2" role="example">
<caption>Example Fragment &ndash; Named Metadata Items in different languages</caption>
<tbody>
<tr>
<td>
<eg xml:space="preserve">
...
&lt;p&gt;
&lt;image&gt;
&lt;source src="#heart-image"/&gt;
&lt;ttm:item name="altText" xml:lang="en"&gt;A heart&lt;/ttm:item&gt;
&lt;ttm:item name="altText" xml:lang="fr"&gt;Un coeur&lt;/ttm:item&gt;
&lt;/image&gt;
&lt;/p&gt;
...
</eg>
</td>
</tr>
</tbody>
</table>
<p></p>
</div3>
<div3 id="metadata-vocabulary-name">
<head>ttm:name</head>
Expand Down

0 comments on commit 4679535

Please sign in to comment.