[ttml2] define inline vs out-of-line animations, regions
authorGlenn Adams <glenn@skynav.com>
Wed, 28 Aug 2013 12:01:03 -0600
changeset 516c78dca2ae3ca
parent 515 bb877bfc347c
child 517 ff4525e06f0c
[ttml2] define inline vs out-of-line animations, regions
ttml2/spec/ttml2-changes.html
ttml2/spec/ttml2.xml
     1.1 --- a/ttml2/spec/ttml2-changes.html	Wed Aug 28 09:34:54 2013 -0600
     1.2 +++ b/ttml2/spec/ttml2-changes.html	Wed Aug 28 12:01:03 2013 -0600
     1.3 @@ -81,12 +81,16 @@
     1.4  
     1.5  * In 11.1, add 'animate' element.
     1.6  
     1.7 -* In 11.1, add 'animation' element.
     1.8 +* In 11.1, add 'animation' element in order to support out-of-line animation
     1.9 +  specifications.
    1.10  
    1.11  * In 11.1.3, add 'style' attribute to 'set' element.
    1.12  
    1.13  * In 11.1.3, permit multiple attributes from TT Style Namespace on 'set' element.
    1.14  
    1.15 +* In 11.1.3, add use of 'xlink:href' attribute on 'set' element for use with
    1.16 +  out-of-line animation specifications.
    1.17 +
    1.18  * In Appendix C, remove contents for mediate type registration, since registration
    1.19    has (will have) already occurred (by the time TTML2 goes to FPWD).
    1.20  
    1.21 @@ -102,8 +106,13 @@
    1.22  
    1.23  <span class="strong">Editorial Changes</span>
    1.24  
    1.25 +* In 2.2, add definitions: "Inline Animation", "Inline Region", "Out-of-line Animation",
    1.26 +  "Out-of-line Region".
    1.27 +
    1.28  * In 8.2, add note about the use of non-applicable style attributes.
    1.29  
    1.30 +* In 9.3, add "Inline Regions" sub-section.
    1.31 +
    1.32  * In Appendix G, add (normative) reference to RFC2396 (URI).
    1.33  
    1.34  * In Appendix G, move SVG1.1 reference from Appendix H and update to Second Edition.
     2.1 --- a/ttml2/spec/ttml2.xml	Wed Aug 28 09:34:54 2013 -0600
     2.2 +++ b/ttml2/spec/ttml2.xml	Wed Aug 28 12:01:03 2013 -0600
     2.3 @@ -579,6 +579,7 @@
     2.4  <date>2013-08-23</date>
     2.5  <edtext>Need to update and elaborate definition of content profile based on new profiling mechanisms.</edtext>
     2.6  </ednote>
     2.7 +<p></p>
     2.8  </def>
     2.9  </gitem>
    2.10  <gitem>
    2.11 @@ -644,6 +645,48 @@
    2.12  </def>
    2.13  </gitem>
    2.14  <gitem>
    2.15 +<label>Inline Animation</label>
    2.16 +<def>
    2.17 +<p>An animation specification that is defined inline as an immediate child of
    2.18 +a <loc href="#element-vocab-type-content">Content</loc> or region element targetted by the animation. There is a one-to-one relation between
    2.19 +an inline animation element and its parent <loc href="#element-vocab-type-content">Content</loc> or region element.
    2.20 +An inline animation does not specify an <att>xlink:href</att> attribute.</p>
    2.21 +</def>
    2.22 +</gitem>
    2.23 +<gitem>
    2.24 +<label>Inline Region</label>
    2.25 +<def>
    2.26 +<p>A region specification that is defined inline as an immediate child of
    2.27 +a <loc href="#element-vocab-type-content">Content</loc> element to be selected into (targetted to) the region.
    2.28 +There is a one-to-one relation between an inline region element and its
    2.29 +parent <loc href="#element-vocab-type-content">Content</loc> element. An inline region is assigned its parent element's time interval as its active
    2.30 +time interval. No <att>region</att> attribute makes reference to an inline region.</p>
    2.31 +</def>
    2.32 +</gitem>
    2.33 +<gitem>
    2.34 +<label>Out-of-line Animation</label>
    2.35 +<def>
    2.36 +<p>An animation specification that is defined out-of-line from
    2.37 +the <loc href="#element-vocab-type-content">Content</loc> or region element targetted by the animation. An out-of-line animation appears
    2.38 +as a child of an <el>animation</el> element in the header (<el>head</el> element)
    2.39 +of a <emph>Document Instance</emph>, and specifies an <att>xlink:href</att> attribute
    2.40 +in order to associate it with an element to be animated. There is a one-to-one relation between
    2.41 +an out-of-line animation element and a <loc href="#element-vocab-type-content">Content</loc> or region element.</p>
    2.42 +</def>
    2.43 +</gitem>
    2.44 +<gitem>
    2.45 +<label>Out-of-line Region</label>
    2.46 +<def>
    2.47 +<p>A region specification that is defined out-of-line from
    2.48 +the <loc href="#element-vocab-type-content">Content</loc> element(s) to be selected into (targetted to) the region. An out-of-line region appears
    2.49 +as a child of a <el>layout</el> element in the header (<el>head</el> element)
    2.50 +of a <emph>Document Instance</emph>, and specifies an <att>xml:id</att> attribute
    2.51 +in order to allow <loc href="#element-vocab-type-content">Content</loc> elements associated with the region by means of a
    2.52 +<att>region</att> attribute. There is a one-to-many relationship between an out-of-line region
    2.53 +and the <loc href="#element-vocab-type-content">Content</loc> element(s) to be selected into (targetted to) the region.</p>
    2.54 +</def>
    2.55 +</gitem>
    2.56 +<gitem>
    2.57  <label>Presentation Processor</label>
    2.58  <def>
    2.59  <p>A <emph>Content Processor</emph> which purpose is to layout, format, and render,
    2.60 @@ -667,6 +710,7 @@
    2.61  <date>2013-08-23</date>
    2.62  <edtext>Need to update and elaborate definition of processor profile based on new profiling mechanisms.</edtext>
    2.63  </ednote>
    2.64 +<p></p>
    2.65  </def>
    2.66  </gitem>
    2.67  <gitem>
    2.68 @@ -2996,8 +3040,6 @@
    2.69  elements in the <code>Metadata.class</code> element group,
    2.70  followed by zero or more
    2.71  elements in the <code>Animation.class</code> element group,
    2.72 -followed by zero or more
    2.73 -elements in the <code>Layout.class</code> element group,
    2.74  followed by
    2.75  zero or more <el>div</el> elements.</p>
    2.76  <p>Any metadata specified by children in the <code>Metadata.class</code>
    2.77 @@ -3026,7 +3068,6 @@
    2.78    <emph>Content:</emph> <loc
    2.79    href="#element-vocab-group-table">Metadata.class</loc>*, <loc
    2.80    href="#element-vocab-group-table">Animation.class</loc>*, <loc
    2.81 -  href="#element-vocab-group-table">Layout.class</loc>*, <loc
    2.82    href="#content-vocabulary-div">div</loc>*
    2.83  &lt;/body&gt;
    2.84  </eg>
    2.85 @@ -3554,8 +3595,7 @@
    2.86  </ednote>
    2.87  <p>Unless explicitly stated otherwise, linear white-space (LWSP) must
    2.88  appear between adjacent non-terminal components of a value of a TT
    2.89 -Style or TT Style Extension
    2.90 -Property value unless some other delimiter is permitted and used.</p>
    2.91 +Style property value unless some other delimiter is permitted and used.</p>
    2.92  <note role="explanation">
    2.93  <p>This specification makes use of <emph>lowerCamelCased</emph> local
    2.94  names for style attributes that
    2.95 @@ -4922,6 +4962,7 @@
    2.96  <date>2013-08-26</date>
    2.97  <edtext>Enhance opacity example to demonstrate opacity on content elements.</edtext>
    2.98  </ednote>
    2.99 +<p></p>
   2.100  <table id="style-attribute-opacity-example-1" role="example">
   2.101  <caption>Example Fragment &ndash; Opacity</caption>
   2.102  <tbody>
   2.103 @@ -5269,6 +5310,7 @@
   2.104  <date>2013-08-24</date>
   2.105  <edtext>Enhance padding example to demonstrate padding on content elements.</edtext>
   2.106  </ednote>
   2.107 +<p></p>
   2.108  <table id="style-attribute-padding-example-1" role="example">
   2.109  <caption>Example Fragment &ndash; Padding</caption>
   2.110  <tbody>
   2.111 @@ -7522,7 +7564,7 @@
   2.112  <div3 id="layout-vocabulary-layout">
   2.113  <head>layout</head>
   2.114  <p>The <el>layout</el> element is a container element used to group
   2.115 -layout matter, including metadata that applies to layout matter.</p>
   2.116 +out-of-line layout matter, including metadata that applies to layout matter.</p>
   2.117  <p>The <el>layout</el> element accepts as its children zero or more
   2.118  elements in the <code>Metadata.class</code> element group, followed by
   2.119  zero or more <el>region</el> elements.</p>
   2.120 @@ -7552,6 +7594,12 @@
   2.121  <head>region</head>
   2.122  <p>The <el>region</el> element is used to define a rectangular space or area into which content is
   2.123  to be flowed for the purpose of presentation.</p>
   2.124 +<p>A <el>region</el> element may appear as either (1) a child of a
   2.125 +<loc href="#layout-vocabulary-layout">layout</loc> element or (2) a child of block level
   2.126 +<loc href="#element-vocab-type-content">Content</loc> elements, specifically, of elements
   2.127 +in the <loc href="#element-vocab-group-table">Block.class</loc> element group.
   2.128 +In the former case, the region is referred to as an <emph>Out-of-line Region</emph>, while in the latter
   2.129 +case, it is referred to as an <emph>Inline Region</emph>.</p>
   2.130  <p>In addition, and in accordance with
   2.131  <specref ref="semantics-style-inheritance-region"/>, 
   2.132  the <el>region</el> element may be used to specify inheritable style properties to be
   2.133 @@ -7595,26 +7643,32 @@
   2.134  </tr>
   2.135  </tbody>
   2.136  </table>
   2.137 -<p>If <att>begin</att> and (or) <att>end</att> attributes are specified on a
   2.138 +<p>An out-of-line region may specify one or more of the timing attributes:
   2.139 +<att>begin</att>, <att>end</att>, <att>dur</att>. An inline region must not
   2.140 +specifiy a timing attribute, and, if specified, must be ignored for the purpose
   2.141 +of presentation processing.</p>
   2.142 +<p>If <att>begin</att> and (or) <att>end</att> attributes are specified on an out-of-line
   2.143  <el>region</el> element, then they specify the beginning and (or) ending points
   2.144  of a time interval during which the region is eligible for activation and with
   2.145  respect to which animation child elements of the region are timed.
   2.146  If specified, these begin and end points are relative to the time
   2.147  interval of the nearest ancestor element associated with a time
   2.148 -interval, irregardless of whether that interval is explicit or implied.</p>
   2.149 -<p>The nearest ancestor element of a <el>region</el> element that is associated
   2.150 -with a time interval is the <el>layout</el> element.</p>
   2.151 -<p>If a <att>dur</att> attribute is specified on the <el>region</el> element, then it
   2.152 +interval, irregardless of whether that interval is explicit or implied.
   2.153 +The nearest ancestor element of an out-of-line <el>region</el> element that is associated
   2.154 +with a time interval is the <el>layout</el> element.
   2.155 +If a <att>dur</att> attribute is specified on an out-of-line <el>region</el> element, then it
   2.156  specifies the simple duration of the region.</p>
   2.157 +<p>The active time interval of an inline <el>region</el> element is the
   2.158 +active time interval of its parent <loc href="#element-vocab-type-content">Content</loc> element.</p>
   2.159  <p>For the purpose of determining the semantics of presentation processing, a
   2.160  region that is temporally inactive must not produce any visible marks when
   2.161  presented on a visual medium.</p>
   2.162  <note role="motivation">
   2.163 -<p>A <el>region</el> element may be associated with a time interval for two
   2.164 +<p>An out-of-line <el>region</el> element may be associated with a time interval for two
   2.165  purposes: (1) in order to temporally bound the presentation of the region and
   2.166  its content, and (2) to provide a temporal context in which animations of region
   2.167  styles may be effected.</p>
   2.168 -<p>For example, an author may wish to specify a region that is otherwise empty, but
   2.169 +<p>For example, an author may wish to specify an out-of-line region that is otherwise empty, but
   2.170  may have a visible background color to be presented starting at some time and
   2.171  continuing over the region's duration.  The simple duration of the region serves
   2.172  additionally to scope the presentation effects of content that is targeted to the
   2.173 @@ -7622,6 +7676,9 @@
   2.174  or change a region's background color by means of animation effects. In
   2.175  both of these cases, it is necessary to posit an active time interval for a
   2.176  region.</p>
   2.177 +<p>In contrast to out-of-line regions, inline regions are specifically bound to
   2.178 +the temporal context of their parent <loc href="#element-vocab-type-content">Content</loc> elements,
   2.179 +and, as such, do not require (or admit) the specification of independent timing.</p>
   2.180  </note>
   2.181  <p>If no <att>timeContainer</att> attribute is specified on
   2.182  a <el>region</el> element, then it must be interpreted as having
   2.183 @@ -7668,6 +7725,7 @@
   2.184  follows:</p>
   2.185  <ulist>
   2.186  <item><p><specref ref="semantics-default-region"/></p></item>
   2.187 +<item><p><specref ref="semantics-inline-regions"/></p></item>
   2.188  <item><p><specref ref="semantics-region-layout-step-1"/></p></item>
   2.189  <item><p><specref ref="semantics-region-layout-step-2"/></p></item>
   2.190  <item><p><specref ref="semantics-region-layout-example"/></p></item>
   2.191 @@ -7736,6 +7794,10 @@
   2.192  the implied <el>region</el> element.</p>
   2.193  </note>
   2.194  </div3>
   2.195 +<div3 id="semantics-inline-regions">
   2.196 +<head>Inline Regions</head>
   2.197 +<p>&tbd;</p>
   2.198 +</div3>
   2.199  <div3 id="semantics-region-layout-step-1">
   2.200  <head>Intermediate Synchronic Document Construction</head>
   2.201  <p>For the purposes of performing presentation processing, the active time
   2.202 @@ -7788,6 +7850,12 @@
   2.203  <gitem>
   2.204  <label>[associate region]</label>
   2.205  <def>
   2.206 +<p></p>
   2.207 +<ednote>
   2.208 +<name>Inline Region Association</name>
   2.209 +<date>2013-08-28</date>
   2.210 +<edtext>Define inline region association.</edtext>
   2.211 +</ednote>
   2.212  <p>A <loc href="#element-vocab-type-content">Content</loc> element is associated with a region according
   2.213  to the following ordered rules, where the first rule satisfied
   2.214  is used and remaining rules are skipped:</p>
   2.215 @@ -8391,10 +8459,10 @@
   2.216  <div3 id="animation-vocabulary-animation">
   2.217  <head>animation</head>
   2.218  <p>The <el>animation</el> element is a container element used to group
   2.219 -animation matter, including metadata that applies to animation matter.</p>
   2.220 +out-of-line animation matter, including metadata that applies to animation matter.</p>
   2.221  <p>The <el>animation</el> element accepts as its children zero or more
   2.222  elements in the <code>Metadata.class</code> element group, followed by
   2.223 -zero or more <el>animate</el> elements.</p>
   2.224 +zero or more elements in the <code>Animation.class</code> element group.</p>
   2.225  <table id="elt-syntax-animation" role="syntax">
   2.226  <caption>XML Representation &ndash; Element Information Item: animation</caption>
   2.227  <tbody>
   2.228 @@ -8406,7 +8474,7 @@
   2.229    <loc href="#content-attribute-lang">xml:lang</loc> = string
   2.230    <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
   2.231    {<emph>any attribute not in default or any TT namespace</emph>}&gt;
   2.232 -  <emph>Content:</emph> <loc href="#element-vocab-group-table">Metadata.class</loc>*, <loc href="#animation-vocabulary-animate">animate</loc>*
   2.233 +  <emph>Content:</emph> <loc href="#element-vocab-group-table">Metadata.class</loc>*, <loc href="#element-vocab-group-table">Animation.class</loc>*
   2.234  &lt;/animation&gt;
   2.235  </eg>
   2.236  </td>
   2.237 @@ -8422,9 +8490,9 @@
   2.238  <p>The <el>animate</el> element expresses a series of changes (animations) to be applied to a targetted attribute
   2.239  of a targetted element.</p>
   2.240  <p>An <el>animate</el> element may appear as either (1) a child of a
   2.241 -<loc href="#element-vocab-type-content">Content</loc> or <el>region</el> element or
   2.242 -(2) a child of an <loc href="#animation-vocabulary-animation">animation</loc> element. In the former
   2.243 -case, the targetted element of the animation is the parent of the <el>animate</el> element; in the latter
   2.244 +<loc href="#element-vocab-type-content">Content</loc> or <el>region</el> element, referred to as inline animation, or
   2.245 +(2) a child of an <loc href="#animation-vocabulary-animation">animation</loc> element, referred to as out-of-line animation.
   2.246 +In the former case, the targetted element of the animation is the parent of the <el>animate</el> element; in the latter
   2.247  case, the targetted element is the element referenced by the <att>xlink:href</att> attribute on the
   2.248  <el>animate</el> element.</p>
   2.249  <p>The targetted attribute (property) is specified by the <att>attributeName</att> attribute.</p>
   2.250 @@ -8466,7 +8534,7 @@
   2.251  </tr>
   2.252  </tbody>
   2.253  </table>
   2.254 -<p/>
   2.255 +<p></p>
   2.256  <p>Except for the constraints or variations enumerated below, the semantics of the <el>animate</el> element and its attributes
   2.257  enumerated above are defined to be those specified by <bibref ref="svg11"/>, &sect;19.2.12:</p>
   2.258  <olist>
   2.259 @@ -8550,15 +8618,20 @@
   2.260  <note role="derivation">
   2.261  <p>The semantics of the <el>animate</el> element
   2.262  are based upon that defined by <bibref ref="svg11"/>,
   2.263 -&sect; 6.2.12, which, in turn, is based upon <bibref ref="smil3"/>, &sect;12.</p>
   2.264 +&sect;19.2.12, which, in turn, is based upon <bibref ref="smil3"/>, &sect;12.</p>
   2.265  </note>
   2.266  </div3>
   2.267  <div3 id="animation-vocabulary-set">
   2.268  <head>set</head>
   2.269 -<p>The <el>set</el> element is used as a child element of a
   2.270 -<loc href="#element-vocab-type-content">Content</loc> element or a <el>region</el> element
   2.271 -in order to express a discrete change of some style parameter value
   2.272 -that applies over some time interval.</p>
   2.273 +<p>The <el>set</el> element expresses one or more a discrete changes (animations) to be applied to targetted attributes
   2.274 +of a targetted element.</p>
   2.275 +<p>A <el>set</el> element may appear as either (1) a child of a
   2.276 +<loc href="#element-vocab-type-content">Content</loc> or <el>region</el> element, referred to as inline animation, or
   2.277 +(2) a child of an <loc href="#animation-vocabulary-animation">animation</loc> element, referred to as out-of-line animation.
   2.278 +In the former case, the targetted element of the animation is the parent of the <el>set</el> element; in the latter
   2.279 +case, the targetted element is the element referenced by the <att>xlink:href</att> attribute on the
   2.280 +<el>set</el> element.</p>
   2.281 +<p>The targetted attributes of a <el>set</el> element are specified using attributes in the TT Style namespace.</p>
   2.282  <p>The <el>set</el> element accepts as its children zero or more
   2.283  elements in the <code>Metadata.class</code> element group.</p>
   2.284  <table id="elt-syntax-set" role="syntax">
   2.285 @@ -8572,6 +8645,7 @@
   2.286    <loc href="#timing-attribute-dur">dur</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
   2.287    <loc href="#timing-attribute-end">end</loc> = <loc href="#timing-value-timeExpression">&lt;timeExpression&gt;</loc>
   2.288    <loc href="#style-attribute-style">style</loc> = IDREFS
   2.289 +  <loc href="#content-attribute-id">xlink:href</loc> = <loc href="#animation-value-fragmentIdentifier">&lt;fragmentIdentifier&gt;</loc>
   2.290    <loc href="#content-attribute-id">xml:id</loc> = ID
   2.291    <loc href="#content-attribute-lang">xml:lang</loc> = string
   2.292    <loc href="#content-attribute-space">xml:space</loc> = (<emph>default</emph>|<emph>preserve</emph>)
   2.293 @@ -8584,17 +8658,22 @@
   2.294  </tr>
   2.295  </tbody>
   2.296  </table>
   2.297 -<p/>
   2.298 -<ednote>
   2.299 -<name>Targeted Animation</name>
   2.300 -<date>2013-07-10</date>
   2.301 -<edtext>Consider adding <code>xlink:href</code> or <code>targetElement</code> attribute as a way to target another
   2.302 -element than the immediate parent element. SVG uses xlink:href while SMIL uses either <code>xlink:href</code> or
   2.303 -<code>targetElement</code>.</edtext>
   2.304 -</ednote>
   2.305 -<note role="example">
   2.306 -<p>The use of multiple <el>set</el> element children may be used to effect fade and
   2.307 -position transitions.</p>
   2.308 +<p></p>
   2.309 +<p>Except for the constraints or variations enumerated below, the semantics of the <el>set</el> element and its attributes
   2.310 +enumerated above are defined to be those specified by <bibref ref="svg11"/>, &sect;19.2.13:</p>
   2.311 +<olist>
   2.312 +<item><p>The attributes targetted by a <el>set</el> element and the discrete values to be applied to these attributes are
   2.313 +specified by direct use of attributes in the TT Style namespace (as opposed to using
   2.314 +<att>attributeName</att> and <att>to</att> attributes). For example, specifying <code>tts:color="red"</code> is to be
   2.315 +considered equivalent to specifying <code>attributeName="tts:color"</code> and <code>to="red"</code> in <bibref ref="svg11"/>.</p></item>
   2.316 +<item><p>If an <att>xlink:href</att> attribute is specified, then the <el>set</el> element must be a child of an
   2.317 +<loc href="#animation-vocabulary-animation">animation</loc> element; conversely, if a <el>set</el> element is a child of
   2.318 +an <loc href="#animation-vocabulary-animation">animation</loc> element, then it must specify an <att>xlink:href</att> attribute.</p></item>
   2.319 +</olist>
   2.320 +<note role="elaboration">
   2.321 +<p>In contrast with <bibref ref="svg11"/>, &sect;19.2.13, a single <el>set</el> element, as defined here, may be used to
   2.322 +perform discrete animations on a set of targetted attributes instead of being limited to targeting a single attribute.
   2.323 +In <bibref ref="svg11"/>, this would require the use of multiple <el>set</el> elements rather than a single <el>set</el> element.</p>
   2.324  </note>
   2.325  <p>An example of using the <el>set</el> element to animate content
   2.326  styling is illustrated below:</p>
   2.327 @@ -8671,7 +8750,7 @@
   2.328  <note role="derivation">
   2.329  <p>The semantics of the <el>set</el> element
   2.330  are based upon that defined by <bibref ref="svg11"/>,
   2.331 -&sect; 6.2.13, which, in turn, is based upon <bibref ref="smil3"/>, &sect;12.</p>
   2.332 +&sect;19.2.13, which, in turn, is based upon <bibref ref="smil3"/>, &sect;12.</p>
   2.333  </note>
   2.334  </div3>
   2.335  </div2>