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

Padding on tt:p and tt:span elements

From: Andreas Tai <tai@irt.de>
Date: Tue, 24 Apr 2012 09:41:54 +0200
Message-ID: <4F965942.3040906@irt.de>
To: public-tt <public-tt@w3.org>
As in TTML a region has always a predefined size, tt:p- and tt:span 
elements are the better choices to apply a non-transparent background 
color on a subtitle block that dynamically grows and shrinks with the 
corresponding text.

Unfortunately padding cannot be applied to tt:p and tt:span elements and 
the very common use case to have empty space between text and the border 
of a centered "text box" with dynamic width is hard to implement (for an 
illustration of two use cases see the attached images).

Therefore the EBU-Working group that specifies the TTML subset EBU-TT 
sees the requirements to add padding as an applicable style property for 
the tt:p and tt:span elements.

Best regards,

Andreas

------------------------------------------------
Andreas Tai
Production Systems Television IRT - Institut fuer Rundfunktechnik GmbH
R&D Institute of ARD, ZDF, DRadio, ORF and SRG/SSR
Floriansmuehlstrasse 60, D-80939 Munich, Germany

Phone: +49 89 32399-389 | Fax: +49 89 32399-200
http: www.irt.de | Email: tai@irt.de
------------------------------------------------

registration court&   managing director:
Munich Commercial, RegNo. B 5191
Dr. Klaus Illgner-Fehns
------------------------------------------------





padding_example_paragraph.png
(image/png attachment: padding_example_paragraph.png)

padding_example_span.png
(image/png attachment: padding_example_span.png)

Received on Tuesday, 24 April 2012 08:04:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 24 April 2012 08:04:13 GMT