W3C home > Mailing lists > Public > public-tt@w3.org > October 2012

RE: ISSUE-189: do regions scroll their flowed content? [DFXP 1.0]

From: Michael Dolan <mdolan@newtbt.com>
Date: Wed, 10 Oct 2012 11:26:54 -0700
To: "'Timed Text Working Group'" <public-tt@w3.org>
Message-ID: <011801cda714$d4d66fa0$7e834ee0$@newtbt.com>
Picking this back up to address Action 109:

http://www.w3.org/AudioVideo/TT/tracker/actions/109 

 

How does this look for a complete example?

 

<?xml version="1.0" encoding="UTF-8"?>

<tt xml:lang="en" 

                xmlns="http://www.w3.org/ns/ttml" 

                xmlns:tts="http://www.w3.org/ns/ttml#styling" 

                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

                xsi:schemaLocation=" http://www.w3.org/ns/ttml ttaf1-dfxp.xsd">

                <head>

                                <layout>

                                                <region xml:id="rollup" tts:extent="20c 2c" tts:displayAlign="after"/>

                                </layout>

                </head>

                <body>

                                <div region="rollup" tts:color="white" >

                                                <p begin="1s" dur="2s">first line</p>

                                                <p begin="2s" dur="2s">second line</p>

                                                <p begin="3s" dur="2s">third line</p>

                                </div>

                </body>

</tt>

 

I think the above will result in the following displays of white text on a black background region in the upper left of the root container:

 

0-1 sec

<blank>

<blank>

1-2 sec

                first line

                <blank>

2-3 sec

                first line

                second line

3-4 sec

                second line

                third line

4-5 sec

                third line

                <blank>

5… sec

                <blank>

                <blank>

 

Comments?

 

Regards,

 

                Mike

 

From: Sean Hayes [mailto:Sean.Hayes@microsoft.com] 
Sent: Saturday, September 29, 2012 2:13 AM
To: Glenn Adams; Michael A Dolan
Cc: Timed Text Working Group
Subject: RE: ISSUE-189: do regions scroll their flowed content? [DFXP 1.0]

 

You would want to set the region to tts:displayAlign=’after’ so that the later added lines have the effect of pushing the earlier lines out of the top. The br

S are un-necessary here as we have an implied line break because of the p. One could do the same thing with spans and br.

 

Then to do a multiple scrolled region:

<.div region=’afterformattedregion’>

<p begin=”1s” dur=”3s”>first line</p>

<p begin=”2s” dur=”3s”>second line</p>

<p begin=”3s” dur=”3s”>third line</p>

<./div>

 

 

 

From: Glenn Adams [mailto:glenn@skynav.com] 
Sent: 29 September 2012 01:17
To: Michael A Dolan
Cc: Timed Text Working Group
Subject: Re: ISSUE-189: do regions scroll their flowed content? [DFXP 1.0]

 

 

On Fri, Sep 28, 2012 at 11:42 PM, Michael A Dolan <mdolan@newtbt.com> wrote:

By way of example so we’re clear on the timed flow, the following TTML into a 2-line-height region:

 

<p begin=”1s” end=”3s”>first line</p>

<p begin=”2s” end=”4s”><br>second line</p>

<p begin=”3s”><br>third line</p>

 

Would result in the following text over the time periods shown:

 

1s-2s:

first line

<blank line>

 

2s-3s:

first line

second line

 

no; the <br/> would result in the second <p> would produce

 

first line

blank line (from <br/>)

second line

 

so visually you would have

 

first line

blank line

 

 

3s-4s:

second line

third line

 

no, the <br/> would produce a blank line before second line, so visually you would have

 

blank line

second line

[not visible blank line]

[not visible third line]

 

etc

 

why you are inserting <br/>?

 

 
Received on Wednesday, 10 October 2012 19:15:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:06:05 UTC