ISSUE-400: Make multiRowAlign and linePadding testfile EBU-TT-D compatible

EBU-TT-D compatibility

Make multiRowAlign and linePadding testfile EBU-TT-D compatible

State:
CLOSED
Product:
TTML IMSC 1.0
Raised by:
Frans de Jong
Opened on:
2015-07-31
Description:
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>


Related Actions Items:
Related emails:
  1. {minutes} TTWG Meeting 2015-08-06 (from nigel.megitt@bbc.co.uk on 2015-08-06)
  2. {agenda} TTWG Meeting 2015-08-06 (from nigel.megitt@bbc.co.uk on 2015-08-05)
  3. ISSUE-400 (EBU-TT-D compatibility): Make multiRowAlign and linePadding testfile EBU-TT-D compatible [TTML IMSC 1.0] (from sysbot+tracker@w3.org on 2015-07-31)

Related notes:

I have edited versions ready to push to Hg incorporating these changes. They're not byte for byte the same, because of small formatting changes.

Nigel Megitt, 4 Aug 2015, 15:59:18

Fixed in https://dvcs.w3.org/hg/ttml/rev/5dade0df260d

Nigel Megitt, 5 Aug 2015, 10:42:20

Missed a color="white" in linePadding1.ttml - fixed in https://dvcs.w3.org/hg/ttml/rev/383a33fa2411

Nigel Megitt, 5 Aug 2015, 13:59:49

Display change log ATOM feed


David Singer <singer@apple.com>, Nigel Megitt <nigel.megitt@bbc.co.uk>, Chairs, Thierry Michel <tmichel@w3.org>, Philippe Le H├ęgaret <plh@w3.org>, Atsushi Shimono <atsushi@w3.org>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 400.html,v 1.1 2019/11/12 10:07:36 carcone Exp $