W3C home > Mailing lists > Public > public-tt@w3.org > December 2008

RE: TextAlign002 and use of textAlign on span elements

From: Sean Hayes <Sean.Hayes@microsoft.com>
Date: Fri, 12 Dec 2008 13:01:30 +0000
To: Public TTWG List <public-tt@w3.org>
Message-ID: <90EEC9D914694641A8358AA190DACB3D2FCEAFAA4D@EA-EXMSG-C334.europe.corp.microsoft.com>
It's an interesting scenario. Here is a little sample we could use as the basis of a test to show what it might look like coded up. Using regions is much simpler than explicit padding using cell spacing.

<?xml version="1.0" encoding="utf-8"?>
<tt xml:lang="en"
    xmlns="http://www.w3.org/2006/10/ttaf1"
    xmlns:tts="http://www.w3.org/2006/10/ttaf1#style"
    xmlns:ttm="http://www.w3.org/2006/10/ttaf1#metadata">
  <head>
      <styling>
      <style xml:id="s1" tts:background-color="black" tts:origin="10px 10px" tts:extent="40px 150px"/>
      </styling>
      <layout>
          <region xml:id="left" style="s1" />
          <region xml:id="right" style="s1" tts:textAlign="end" tts:background-color="transparent" />
      </layout>
  </head>
  <body region="left right" >
    <div  dur="4s">
      <p region="left" begin="0s" end="1.5s">Hey Joe!</p>
       <p region="right" begin="0.75s" end="2s">Yes Fred?</p>
      <p region="left" begin="2s" end="3.5s">Wassaaap!?</p>
        <p region="right" begin="2.75s" end="4s">Wassaaap!?</p>
    </div>
  </body>
</tt>

Sean Hayes
Media Accessibility Strategist
Accessibility Business Unit
Microsoft

Office:  +44 118 909 5867,
Mobile: +44 7875 091385

From: public-tt-request@w3.org [mailto:public-tt-request@w3.org] On Behalf Of Glenn A. Adams
Sent: 12 December 2008 09:32
To: John Birch; Philippe Le Hegaret; Public TTWG List
Subject: Re: TextAlign002 and use of textAlign on span elements

Since DFXP does support cell based layout (provided a suitable fixed width font is used), then you can at least do the same as with teletext. Otherwise, you would simply use two overlapping regions with no background color. If you wanted a background under the combination, you could use three regions, with the back-most being empty except for providing a background color (and using showBackground="always").

G.

On 12/11/08 7:35 PM, "John Birch" <john.birch@screen.subtitling.com> wrote:
OK...

So in fact, <p> elements do have the 'visual' effect of a CRLF (by virtue of creating stacked line areas) even though no CRLF occurs within the line area.

so
<p>This text is above</p>
<p>This text is below</p>

would give the same 'visual' effect as:

<p> This text is above<br/>This text is below</p>


What I'd like to distribute in DFXP is text that had the following visual presentation characteristics.
Where the two sentences are aligned respectively against the left and right 'margins' (region boundaries).

"This text is left.       This text is right."


This is because it is quite desirable to have...

"Hey Joe!                    Yes Fred?"

...type of subtitles within fast moving dialogue... the alignment corresponds to speaker location on screen.
[In a Teletext subtitle presentation, this can be achieved using the cell based nature of Teletext and the nature of a fixed width space character.]

regards,

John



John Birch | Screen Subtitling Systems Ltd | Strategic Partnerships Manager
Main Line : +44 (0)1473 831700 | Ext : 270 | Direct Dial : +44 (0)1473 834532
Mobile : +44 (0)7919 558380 | Fax : +44 (0)1473 830078
john.birch@screen.subtitling.com | www.screen.subtitling.com <http://www.screen.subtitling.com>
The Old Rectory, Claydon Curch Lane, Claydon,Ipswich,Suffolk,IP6 0EQ,United Kingdom

See us at Broadcast Video Expo - February 17th - 19th 2009, Earls Court 2, London, Stand number K56

P Before printing, think about the environment


________________________________
From: Glenn A. Adams [mailto:gadams@xfsi.com]
Sent: 11 December 2008 10:37
To: John Birch; Philippe Le Hegaret; Public TTWG List
Subject: Re: TextAlign002 and use of textAlign on span elements


Ah, now I understand your question about <p/>, which was not clear before. In fact, if you have two <p/>s each containing some content, then there is an explicit (not implied) boundary between them, since each would generate a non-empty line area, and line areas do no pack (in inline progression direction),  but stack (in block progression direction). So what you suggest would not work either.

G.

On 12/11/08 4:16 PM, "John Birch" <john.birch@screen.subtitling.com> wrote:
Thanks Glen,
I wasn't seeking to introduce new  reqs. :-)
If a p element does not necessarily incur crlf behaviour then  what I need could presumably be achieved using two p elements in par with  different alignment style attributes 'drawing' into the same  region?
This message may contain confidential and/or privileged information. If you are not the intended recipient you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. Screen Subtitling Systems Ltd. Registered in England No. 2596832. Registered Office: The Old Rectory, Claydon Church Lane, Claydon, Ipswich, Suffolk, IP6 0EQ
Received on Friday, 12 December 2008 13:02:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 2 November 2009 22:41:39 GMT