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

Apropos our discussion this morning I ran Mike’s example below and it turns out to need a slight adjustment (an extra timed blank <p>).

To get the first image (first.png) as

<blank>
First line

We do need in fact need  the displayAlign=’after’; but this will cause the view at 4-5s to be

<blank>
third line

(see fourth-wrong.png) Which is not what we want.

Adding the extra blank <p> should cause change the final view to be (fourth-right.png)

third line
<blank>

The example is (dropping the schema stuff which doesn’t currently work):

<?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"
                <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>
                                                <p begin="4s" dur="2s"> </p>
                              </div>
                </body>
</tt>

And the rendered images are given as attached PNG’s

:


From: Michael Dolan [mailto:mdolan@newtbt.com]
Sent: 10 October 2012 11:27
To: 'Timed Text Working Group'
Subject: RE: ISSUE-189: do regions scroll their flowed content? [DFXP 1.0]

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]<mailto:[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<mailto: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 Thursday, 15 November 2012 23:18:05 UTC