ISSUE-400 (EBU-TT-D compatibility): Make multiRowAlign and linePadding testfile EBU-TT-D compatible [TTML IMSC 1.0]

ISSUE-400 (EBU-TT-D compatibility): Make multiRowAlign and linePadding testfile EBU-TT-D compatible [TTML IMSC 1.0]

http://www.w3.org/AudioVideo/TT/tracker/issues/400

Raised by: Frans de Jong
On product: TTML IMSC 1.0

The current testsuite testfiles for multiRowAlign and linePadding are not fully EBU-TT-D compatible.

I'd like to suggest the following changes to address this:
 
Add to the tt element the attribute ttp:timeBase="media".
Replace the named colours with hex values.
Add xml:id attributes to the subtitles.
 
Below are versions of the files taking these changes into account.

---

<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns:tts="http://www.w3.org/ns/ttml#styling"   xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xmlns:ebutts="urn:ebu:tt:style" ttp:timeBase="media" xml:lang="en">
    <head>
        <styling>
            <style xml:id="baseStyle" tts:color="#FFFFFF" tts:textAlign="center"/>
            <style xml:id="blackBackground" tts:backgroundColor="#000000"/>
            <style xml:id="greenBackground" tts:backgroundColor="#00FF00"/>
            <style xml:id="withLinePadding" ebutts:linePadding="0.5c"/>
        </styling>
        <layout>
            <region xml:id="area1" tts:origin="5% 10%" tts:extent="90% 20%" tts:displayAlign="center"/>
            <region xml:id="area2" tts:origin="5% 70%" tts:extent="90% 20%" tts:displayAlign="center"/>
        </layout>
    </head>
    <body>
        <div style="baseStyle">   
            <p xml:id="s1" region="area1" begin="00:00:01" end="00:00:09">
                <span style="greenBackground">Centered text on two lines<br/>without padding.</span>
            </p>
            <p xml:id="s2" region="area2" style="withLinePadding" begin="00:00:01" end="00:00:09">
                <span style="blackBackground">Centered text on two lines<br/>with padding.</span>
            </p>
        </div>
    </body>
</tt>

----

<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/ns/ttml" 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" xmlns:ebutts="urn:ebu:tt:style" ttp:timeBase="media" xml:lang="en">
 <head>
  <styling>
            <style xml:id="baseStyle" tts:color="#FFFFFF"/>
            <style xml:id="blackBackground" tts:backgroundColor="#000000"/>
            <style xml:id="greenBackground" tts:backgroundColor="#00FF00"/>
   <style xml:id="startEnd" tts:textAlign="start" ebutts:multiRowAlign="end"/>
   <style xml:id="centerStart" tts:textAlign="center" ebutts:multiRowAlign="start"/>
  </styling>
  <layout>
   <region xml:id="area1" tts:origin="15% 10%" tts:extent="70% 20%" style="greenBackground" tts:displayAlign="center"/>
   <region xml:id="area2" tts:origin="15% 70%" tts:extent="70% 20%" style="blackBackground" tts:displayAlign="center"/>
  </layout>
 </head>
 <body>
  <div style="baseStyle">   
   <p xml:id="s1" region="area1" style="startEnd" begin="00:00:00" end="00:00:09">
multiRowAlign="end"<br/>textAlign="start"
   </p>
   <p xml:id="s2" region="area2" style="centerStart" begin="00:00:00" end="00:00:09">
multiRowAlign="start"<br/>textAlign="center"
   </p>
  </div>
 </body>
</tt>

Received on Friday, 31 July 2015 15:31:13 UTC