[IMSC] Issue-400: Updates to make the test files EBU-TT-D compatible.
Add to the tt element the attribute ttp:timeBase="media".
Replace the named colours with hex values.
Add xml:id attributes to the subtitles.
--- a/ttml-ww-profiles/testsuite/linePadding/linePadding1.ttml Tue Aug 04 12:58:00 2015 +0200
+++ b/ttml-ww-profiles/testsuite/linePadding/linePadding1.ttml Wed Aug 05 11:34:58 2015 +0100
@@ -1,13 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
-<tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml" xmlns:ttm="http://www.w3.org/ns/ttml#metadata"
-xmlns:tts="http://www.w3.org/ns/ttml#styling"
-xmlns:ttp="http://www.w3.org/ns/ttml#parameter"
-xmlns:ebutts="urn:ebu:tt:style">
+<tt xml:lang="en"
+ xmlns="http://www.w3.org/ns/ttml"
+ xmlns:ttm="http://www.w3.org/ns/ttml#metadata"
+ xmlns:tts="http://www.w3.org/ns/ttml#styling"
+ xmlns:ttp="http://www.w3.org/ns/ttml#parameter"
+ xmlns:ebutts="urn:ebu:tt:style"
+ ttp:timeBase="media">
<head>
<styling>
<style xml:id="baseStyle" tts:color="white" tts:textAlign="center"/>
- <style xml:id="blackBackground" tts:backgroundColor="black"/>
- <style xml:id="greenBackground" tts:backgroundColor="green"/>
+ <style xml:id="blackBackground" tts:backgroundColor="#000000"/>
+ <style xml:id="greenBackground" tts:backgroundColor="#00FF00"/>
<style xml:id="withLinePadding" ebutts:linePadding="0.5c"/>
</styling>
<layout>
@@ -17,10 +20,10 @@
</head>
<body>
<div style="baseStyle">
- <p region="area1" begin="00:00:01" end="00:00:09">
+ <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 region="area2" style="withLinePadding" begin="00:00:01" end="00:00:09">
+ <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>
--- a/ttml-ww-profiles/testsuite/multiRowAlign/multiRowAlign1.ttml Tue Aug 04 12:58:00 2015 +0200
+++ b/ttml-ww-profiles/testsuite/multiRowAlign/multiRowAlign1.ttml Wed Aug 05 11:34:58 2015 +0100
@@ -1,13 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
-<tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml" xmlns:ttm="http://www.w3.org/ns/ttml#metadata"
-xmlns:tts="http://www.w3.org/ns/ttml#styling"
-xmlns:ttp="http://www.w3.org/ns/ttml#parameter"
-xmlns:ebutts="urn:ebu:tt:style">
+<tt xml:lang="en"
+ xmlns="http://www.w3.org/ns/ttml"
+ xmlns:ttm="http://www.w3.org/ns/ttml#metadata"
+ xmlns:tts="http://www.w3.org/ns/ttml#styling"
+ xmlns:ttp="http://www.w3.org/ns/ttml#parameter"
+ xmlns:ebutts="urn:ebu:tt:style"
+ ttp:timeBase="media">
<head>
<styling>
- <style xml:id="baseStyle" tts:color="white"/>
- <style xml:id="blackBackground" tts:backgroundColor="black"/>
- <style xml:id="greenBackground" tts:backgroundColor="green"/>
+ <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>
@@ -18,10 +21,10 @@
</head>
<body>
<div style="baseStyle">
- <p region="area1" style="startEnd" begin="00:00:01" end="00:00:09">
+ <p xml:id="s1" region="area1" style="startEnd" begin="00:00:01" end="00:00:09">
multiRowAlign="end"<br/>textAlign="start"
</p>
- <p region="area2" style="centerStart" begin="00:00:01" end="00:00:09">
+ <p xml:id="s2" region="area2" style="centerStart" begin="00:00:01" end="00:00:09">
multiRowAlign="start"<br/>textAlign="center"
</p>
</div>