1<!-- 2 ~ Copyright (C) 2020 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 ~ 16 --> 17<tt xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata" 18 xmlns:ttp="http://www.w3.org/2006/10/ttaf1#parameter" 19 xmlns:tts="http://www.w3.org/2006/10/ttaf1#style" 20 xmlns="http://www.w3.org/ns/ttml" 21 xmlns="http://www.w3.org/2006/10/ttaf1"> 22 <body> 23 <div> 24 <!-- Base before and after text, one with explicit position --> 25 <p begin="10s" end="18s"> 26 Cue with 27 <span tts:ruby="container" tts:rubyPosition="before"> 28 <span tts:ruby="base">annotated</span> 29 <span tts:ruby="text">1st rubies</span> 30 </span> 31 <span tts:ruby="container"> 32 <span tts:ruby="text">2nd rubies</span> 33 <span tts:ruby="base">text</span>. 34 </span> 35 </p> 36 </div> 37 <div> 38 <!-- Delimiter (parenthetical) text is stripped --> 39 <p begin="20s" end="28s"> 40 Cue with 41 <span tts:ruby="container"> 42 <span tts:ruby="text">rubies</span> 43 <span tts:ruby="base">annotated</span> 44 <span tts:ruby="delimiter">alt-text</span> 45 </span> 46 text. 47 </p> 48 </div> 49 <div> 50 <!-- No text section -> no span --> 51 <p begin="30s" end="38s"> 52 Cue with 53 <span tts:ruby="container" tts:rubyPosition="before"> 54 <span tts:ruby="base">annotated</span> 55 </span> 56 text.</p> 57 </div> 58 <div> 59 <!-- No base section -> text still stripped--> 60 <p begin="40s" end="48s"> 61 Cue with 62 <span tts:ruby="container" tts:rubyPosition="before"> 63 <span tts:ruby="text">rubies</span> 64 </span> 65 text. 66 </p> 67 </div> 68 <div> 69 <!-- No container section -> text still stripped--> 70 <p begin="50s" end="58s"> 71 Cue with 72 <span tts:ruby="text">rubies</span> 73 <span tts:ruby="base">annotated</span> 74 text. 75 </p> 76 </div> 77 </body> 78</tt> 79