1
Vote

tts:origin on pElement not being respected

description

I have some TTML generated by a commercial Transformer (taking EIA-608 as an input).
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<tt ttp:frameRate="24" ttp:frameRateMultiplier="1000 1001" ttp:timeBase="smpte" xml:lang="en" xmlns="http://www.w3.org/ns/ttml" xmlns:m608="http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt#cea608" xmlns:smpte="http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns:tts="http://www.w3.org/ns/ttml#styling">

  <head>
    <ttm:title>SMPTE-TT document</ttm:title>
    <styling>
      <style tts:color="white" tts:fontFamily="monospace" tts:fontSize="0.6c" tts:fontWeight="bold" xml:id="basic"/>
    </styling>
    <layout>
      <region tts:backgroundColor="transparent" xml:id="pop1"/>
    </layout>
  </head>
  <body>
    <div>
      <p begin="00:01:02:23" end="00:01:06:03" region="pop1" style="basic" tts:origin="27% 84%">
        <span tts:backgroundColor="black">Bilbo: "MY DEAR FRODO:</span>
      </p>
    </div>
  </body>
</tt>
The problem is that the caption is not displayed where it should be according to the origin. To make it work I have to move the tts:origin attribute into the region element.

comments