Re: New Features and CSS Compatibility

Sounds promising!
Thx,
John


From: Sean Hayes [mailto:Sean.Hayes@microsoft.com]
Sent: Tuesday, November 05, 2013 05:48 PM
To: John Birch; Glenn Adams <glenn@skynav.com>; TTWG <public-tt@w3.org>
Subject: RE: New Features and CSS Compatibility

Yes, the approach would accommodate font size changes.

John Birch | Strategic Partnerships Manager | Screen
Main Line : +44 1473 831700 | Ext : 270 | Direct Dial : +44 1473 834532
Mobile : +44 7919 558380 | Fax : +44 1473 830078
John.Birch@screensystems.tv<mailto:John.Birch@screensystems.tv> | www.screensystems.tv<http://www.screensystems.tv> | https://twitter.com/screensystems


Visit us at
CCW, 13 – 14th November, Stand 1343, Javits Convention Center, New York

P Before printing, think about the environment

From: John Birch [mailto:John.Birch@screensystems.tv]
Sent: Tuesday, November 5, 2013 11:52 AM
To: Sean Hayes; Glenn Adams; TTWG
Subject: RE: New Features and CSS Compatibility

Hi Sean,

Does this concept include adjustment of the computed font-size? Or does this concept simply affect the size of the region / cell etc.
That appears to be the missing piecec in the jigsaw AFAIK.

Best regards,
John

John Birch | Strategic Partnerships Manager | Screen
Main Line : +44 1473 831700 | Ext : 270 | Direct Dial : +44 1473 834532
Mobile : +44 7919 558380 | Fax : +44 1473 830078
John.Birch@screensystems.tv<mailto:John.Birch@screensystems.tv> | www.screensystems.tv<http://www.screensystems.tv> | https://twitter.com/screensystems


Visit us at
CCW, 13 – 14th November, Stand 1343, Javits Convention Center, New York

P Before printing, think about the environment

From: Sean Hayes [mailto:Sean.Hayes@microsoft.com]
Sent: 05 November 2013 11:45
To: John Birch; Glenn Adams; TTWG
Subject: RE: New Features and CSS Compatibility

CSS does in fact have a shrink-to-fit concept http://www.w3.org/TR/CSS21/visudet.html#shrink-to-fit-float:

10.3.5 Floating, non-replaced elements
If 'margin-left'<http://www.w3.org/TR/CSS21/box.html#propdef-margin-left>, or 'margin-right'<http://www.w3.org/TR/CSS21/box.html#propdef-margin-right> are computed as 'auto', their used value is '0'.
If 'width'<http://www.w3.org/TR/CSS21/visudet.html#propdef-width> is computed as 'auto', the used value is the "shrink-to-fit" width.
Calculation of the shrink-to-fit width is similar to calculating the width of a table cell using the automatic table layout algorithm. Roughly: calculate the preferred width by formatting the content without breaking lines other than where explicit line breaks occur, and also calculate the preferred minimum width, e.g., by trying all possible line breaks. CSS 2.1 does not define the exact algorithm. Thirdly, find the available width: in this case, this is the width of the containing block minus the used values of 'margin-left', 'border-left-width', 'padding-left', 'padding-right', 'border-right-width', 'margin-right', and the widths of any relevant scroll bars.
Then the shrink-to-fit width is: min(max(preferred minimum width, available width), preferred width).

And so there is *a* mapping, if not ideal, as these pages demonstrate:
http://www.brunildo.org/test/shrink-to-fit.html

http://www.brunildo.org/test/shrink_center_3.html

However it may require some amount of creativity to apply to the TTML mapping.
I believe the CSS WG have attempted to reuse this concept elsewhere in CSS3.

From: John Birch [mailto:John.Birch@screensystems.tv]
Sent: Tuesday, November 5, 2013 10:29 AM
To: Glenn Adams; TTWG
Subject: RE: New Features and CSS Compatibility

Hi Glenn,

Yes, I would agree… except that I have no exposure to CSS or to the process involved in changing / extending it.

My proposal is simply meant as a statement of desired functionality… I defer to those with better understanding of the supporting technologies to consider how it might be implemented. I accept that it is likely ☹ that the (correct IMHO) choice by TTWG of CSS / XSL:FO as referenced standards may mean that my ‘shrink to fit’ desires are not possible. This being simply because those underlying frameworks were not constructed ‘with a mindset’ that would support such behaviour. None- the-less, I stand by my proposal for consideration at TPAC, since it might be the case that my ‘use case’ has not been considered, and it might be the case that individuals attending can see a route to a solution… even if such a solution may be a long time coming and require a new version of CSS / XSL:FO (or require that TTML reference a different, equivalent but more flexible rendering framework). I note with interest that CSS3 includes flex-box layout functionality – cursory inspection would suggest this might be relevant.

Best regards,
John

John Birch | Strategic Partnerships Manager | Screen
Main Line : +44 1473 831700 | Ext : 270 | Direct Dial : +44 1473 834532
Mobile : +44 7919 558380 | Fax : +44 1473 830078
John.Birch@screensystems.tv<mailto:John.Birch@screensystems.tv> | www.screensystems.tv<http://www.screensystems.tv> | https://twitter.com/screensystems


Visit us at
CCW, 13 – 14th November, Stand 1343, Javits Convention Center, New York

P Before printing, think about the environment

From: Glenn Adams [mailto:glenn@skynav.com]
Sent: 05 November 2013 01:10
To: TTWG
Subject: New Features and CSS Compatibility

For anyone suggesting a new feature in TTML, e.g., shrink text to fit region, it won't be of much benefit to do so if there isn't an existing CSS mapping, or at least not much benefit in the open web platform (native presentation processors can do what they want).

So before you consider proposing something that has no CSS mapping, think first about how to get it into CSS.

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
  ­­

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 Tuesday, 5 November 2013 18:25:21 UTC