Paddington
25th November 2004, 07:25
I've just read about a proposal for a new XML subtitle standard, called Timed Text Distribution Format Exchange Profile (DFXP (http://xml.coverpages.org/ni2004-11-03-a.html)). It allows you to specify the timing, style, location and alignment of the subtitles in an XML syntax. For examples, have a look here (http://www.w3.org/TR/2004/WD-ttaf1-dfxp-20041101/):
Defining the title
<meta xmlns:ttm="http://www.w3.org/2004/11/ttaf1#metadata">
<ttm:title>Timed Text DFXP Example</ttm:title>
<ttm:copyright>The Authors (c) 2004</ttm:copyright>
</meta>
Defining some styles:
<styling xmlns:tts="http://www.w3.org/2004/11/ttaf1#styling">
<!-- s1 specifies default color, font, and text alignment -->
<style id="s1"
tts:color="white"
tts:font-family="proportional-sans-serif"
tts:font-size="22px"
tts:text-align="center"
/>
<!-- alternative using yellow text but otherwise the same as style s1 -->
<style id="s2" style="s1" tts:color="yellow"/>
<!-- a style based on s2 but justified to the right -->
<style id="s2Right" style="s2" tts:text-align="after" /> <!-- alternative using green text but otherwise the same as style s1 -->
<style id="s3" style="s1" tts:color="green" /> <!-- a style based on s3 but justified to the left -->
<style id="s3Left" style="s3" tts:text-align="start" />
</styling>
And some subtitles
<body region="subtitleArea">
<div>
<p id="subtitle1" begin="0.76" end="2.45">
I see Lisa's moving in then?
</p>
<p id="subtitle2" begin="5.0" end="10.0">
Nothing gets past you does it?
</p>
<p id="subtitle3" begin="10.0" end="13.0" style="s2">
What's with all this car business?
</p>
<p id="subtitle4" begin="15.2" end="18.0">
Dad's setting up on his own.
</p>
<p id="subtitle5" begin="19.0" end="25.0">
He's got to shift<br/>
these for his cash flow.
</p>
<p id="subtitle6a" begin="30.0" end="36.6" style="s3Left">
Hey, come on slave, stop slacking.
</p>
<p id="subtitle6b" begin="30.0" end="36.6" style="s2Right">
Watch it you.
</p>
<p id="subtitle7a" begin="39.0" end="45.0" style="s3">
Mel, race you to the front door.
</p>
<p id="subtitle7b" begin="39.0" end="45.0" style="s2Right">
Right, you're on.
</p>
<p id="subtitle8" begin="47.3" end="49.0">
Lisa!
</p>
</div>
</body>
Does anyone know whether it is used somewhere? And is there an interest to include it (for example, in my program SubtitleCreator (http://sourceforge.net/projects/subtitlecreator/))? I am interested in your optinions...
Defining the title
<meta xmlns:ttm="http://www.w3.org/2004/11/ttaf1#metadata">
<ttm:title>Timed Text DFXP Example</ttm:title>
<ttm:copyright>The Authors (c) 2004</ttm:copyright>
</meta>
Defining some styles:
<styling xmlns:tts="http://www.w3.org/2004/11/ttaf1#styling">
<!-- s1 specifies default color, font, and text alignment -->
<style id="s1"
tts:color="white"
tts:font-family="proportional-sans-serif"
tts:font-size="22px"
tts:text-align="center"
/>
<!-- alternative using yellow text but otherwise the same as style s1 -->
<style id="s2" style="s1" tts:color="yellow"/>
<!-- a style based on s2 but justified to the right -->
<style id="s2Right" style="s2" tts:text-align="after" /> <!-- alternative using green text but otherwise the same as style s1 -->
<style id="s3" style="s1" tts:color="green" /> <!-- a style based on s3 but justified to the left -->
<style id="s3Left" style="s3" tts:text-align="start" />
</styling>
And some subtitles
<body region="subtitleArea">
<div>
<p id="subtitle1" begin="0.76" end="2.45">
I see Lisa's moving in then?
</p>
<p id="subtitle2" begin="5.0" end="10.0">
Nothing gets past you does it?
</p>
<p id="subtitle3" begin="10.0" end="13.0" style="s2">
What's with all this car business?
</p>
<p id="subtitle4" begin="15.2" end="18.0">
Dad's setting up on his own.
</p>
<p id="subtitle5" begin="19.0" end="25.0">
He's got to shift<br/>
these for his cash flow.
</p>
<p id="subtitle6a" begin="30.0" end="36.6" style="s3Left">
Hey, come on slave, stop slacking.
</p>
<p id="subtitle6b" begin="30.0" end="36.6" style="s2Right">
Watch it you.
</p>
<p id="subtitle7a" begin="39.0" end="45.0" style="s3">
Mel, race you to the front door.
</p>
<p id="subtitle7b" begin="39.0" end="45.0" style="s2Right">
Right, you're on.
</p>
<p id="subtitle8" begin="47.3" end="49.0">
Lisa!
</p>
</div>
</body>
Does anyone know whether it is used somewhere? And is there an interest to include it (for example, in my program SubtitleCreator (http://sourceforge.net/projects/subtitlecreator/))? I am interested in your optinions...