Re: questions on simple profile - nested spans

i have a question on styles working across multiple spans, and nested spans in general. the simple delivery profile states:

"A document must contain only a single level of span element within a p element".

This constraint may make it difficult to support the typical CC look with with white text on a black background that hugs tight to the text. To achieve this look, i think the the tts:backgroundColor attribute needs to be on a <span> tag. if it's on the <p> tag, you get the black background as the largest constraint retangle on the mult-line caption (black background does not hug the text).

here is the structure i'm using:

<region xml:id="lowerThird"  >
        <style tts:origin="5% 5%" tts:extent="90% 90%" tts:displayAlign="after" tts:textAlign="center"
        tts:backgroundColor="transparent" tts:color="#ffffff" />
</region>

<p region="lowerThird" begin="xx" end="xx">
 <span tts:backgroundColor="#00000088">caption text here.<br/> with semi-transparent background hugging text</span>
</p>

note that putting the tts:backgroundColor on the <p> tag is not good, as you then get the black rectangle not hugging the text.

this is all fine, but what if one of the words in the caption needs to be in italics? then you'd need to do nested spans, like this:
<p region="lowerThird" begin="xx" end="xx">
 <span tts:backgroundColor="#00000088">caption text here.<br/> with <span tts:textStyle="italics">italic word</span>semi-transparent background hugging text</span>
</p>


this is working nicely on the TTML implementation i'm testing on xbox, but it uses nested spans. is that ok?

-glenn

Glenn Goldstein | Vice President, Media Technology Strategy | VIACOM
glenng@mtvi.com | 212-846-3210 | 1515 Broadway, New York NY 10036

Received on Friday, 3 August 2012 15:31:15 UTC