[imsc] Address ISSUE-371 and ISSUE-372
authorplemieux
Wed, 18 Feb 2015 20:25:33 -0800
changeset 892 58d71f630f01
parent 891 c2ba34f71022
child 893 2876f59940ec
[imsc] Address ISSUE-371 and ISSUE-372
ttml-ww-profiles/testsuite/linePadding/linePadding1.ttml
ttml-ww-profiles/testsuite/multiRowAlign/multiRowAlign1.ttml
--- a/ttml-ww-profiles/testsuite/linePadding/linePadding1.ttml	Wed Feb 18 18:48:43 2015 -0700
+++ b/ttml-ww-profiles/testsuite/linePadding/linePadding1.ttml	Wed Feb 18 20:25:33 2015 -0800
@@ -3,20 +3,25 @@
 xmlns:tts="http://www.w3.org/ns/ttml#styling"
 xmlns:ttp="http://www.w3.org/ns/ttml#parameter" 
 xmlns:ebutts="urn:ebu:tt:style">
-	<head>
-		<layout>
-		   <region xml:id="area1" tts:origin="20% 70%" tts:extent="60% 20%" tts:displayAlign="center" tts:textAlign="center" tts:color="white"/>
-		   <region xml:id="area2" tts:origin="20% 10%" tts:extent="60% 20%" tts:displayAlign="center" tts:textAlign="center" tts:color="white"/>
-		</layout>		
-	</head>
-	<body>
-		<div>			
-			<p region="area1" begin="1s" end="9s">
-                <span tts:backgroundColor="green">Centered text on two lines<br/>without padding.</span>
+    <head>
+        <layout>
+            <region xml:id="area1" tts:origin="20% 70%" tts:extent="60% 20%" tts:displayAlign="center" tts:textAlign="center" tts:color="white"/>
+            <region xml:id="area2" tts:origin="20% 10%" tts:extent="60% 20%" tts:displayAlign="center" tts:textAlign="center" tts:color="white"/>
+        </layout>
+        <styling>
+            <style xml:id="blackBackground" tts:backgroundColor="black"/>
+            <style xml:id="greenBackground" tts:backgroundColor="green"/>
+            <style xml:id="withLinePadding" ebutts:linePadding="0.5c"/>
+        </styling>
+    </head>
+    <body>
+        <div>			
+            <p region="area1" begin="1s" end="9s">
+                <span style="greenBackground">Some centered text on two lines<br/>without padding.</span>
             </p>
-            <p region="area2" ebutts:linePadding="0.5c" begin="1s" end="9s" >
-                <span tts:backgroundColor="black">Centered text on two lines<br/>with padding.</span>
+            <p region="area2" style="withLinePadding" begin="1s" end="9s">
+                <span style="blackBackground">Some centered text on two lines<br/>with padding.</span>
             </p>
-		</div>
-	</body>
+        </div>
+    </body>
 </tt>
--- a/ttml-ww-profiles/testsuite/multiRowAlign/multiRowAlign1.ttml	Wed Feb 18 18:48:43 2015 -0700
+++ b/ttml-ww-profiles/testsuite/multiRowAlign/multiRowAlign1.ttml	Wed Feb 18 20:25:33 2015 -0800
@@ -5,18 +5,22 @@
 xmlns:ebutts="urn:ebu:tt:style">
 	<head>
 		<layout>
-			<region xml:id="area1" tts:origin="20% 70%" tts:extent="60% 20%" tts:backgroundColor="green" tts:displayAlign="center" tts:textAlign="start" ebutts:multiRowAlign="end" tts:color="white"/>
-            <region xml:id="area2" tts:origin="20% 10%" tts:extent="60% 20%" tts:backgroundColor="black" tts:displayAlign="center" tts:textAlign="center" ebutts:multiRowAlign="start" tts:color="white"/>
+			<region xml:id="area1" tts:origin="20% 70%" tts:extent="60% 20%" tts:backgroundColor="green" tts:displayAlign="center" tts:color="white"/>
+			<region xml:id="area2" tts:origin="20% 10%" tts:extent="60% 20%" tts:backgroundColor="black" tts:displayAlign="center" tts:color="white"/>
 		</layout>
+		<styling>
+			<style xml:id="startEnd" tts:textAlign="start" ebutts:multiRowAlign="end"/>
+			<style xml:id="centerStart" tts:textAlign="center" ebutts:multiRowAlign="start"/>
+		</styling>
 	</head>
 	<body>
 		<div>			
-			<p region="area1" begin="1s" end="9s">
-                Beware the Jabberwock, my son!<br/>The jaws that bite, the claws that catch!
-            </p>
-            <p region="area2" begin="1s" end="9s">
-                Beware the Jubjub bird, and shun<br/>The frumious Bandersnatch!
-            </p>
+			<p region="area1" style="startEnd" begin="1s" end="9s">
+Beware the Jabberwock, my son!<br/>The jaws that bite, the claws that catch!
+			</p>
+			<p region="area2" style="centerStart" begin="1s" end="9s">
+Beware the Jubjub bird, and shun<br/>The frumious Bandersnatch!
+			</p>
 		</div>
 	</body>
 </tt>