TTML10 2nd Ed (9.3.3) - Ensure space filler accounts for tts:displayAlign semantics; Minor source cleanup
authorGlenn Adams <glenn@skynav.com>
Sat, 22 Sep 2012 14:17:24 +0800
changeset 2911728b19d70d5
parent 290 4bfbdef21064
child 292 7eda6fdb7e75
TTML10 2nd Ed (9.3.3) - Ensure space filler accounts for tts:displayAlign semantics; Minor source cleanup
ttml10/spec/examples/ex1-p-0.xml
ttml10/spec/ttaf1-dfxp.xml
     1.1 --- a/ttml10/spec/examples/ex1-p-0.xml	Fri Sep 21 14:45:42 2012 +0800
     1.2 +++ b/ttml10/spec/examples/ex1-p-0.xml	Sat Sep 22 14:17:24 2012 +0800
     1.3 @@ -13,6 +13,11 @@
     1.4          background-color="black" display-align="center">
     1.5          <!-- body (b1) -->
     1.6          <fo:block id="b1-1">
     1.7 +          <!-- body's space (before) filler -->
     1.8 +          <fo:block
     1.9 +            space-after.optimum="96px"
    1.10 +            space-after.maximum="96px"
    1.11 +            space-after.conditionality="retain"/>
    1.12            <!-- div (d1) -->
    1.13            <fo:block id="d1-1">
    1.14              <!-- p (p1) -->
    1.15 @@ -21,7 +26,7 @@
    1.16                color="red">Text 1</fo:inline>
    1.17              </fo:block>
    1.18            </fo:block>
    1.19 -          <!-- body's space filler ->
    1.20 +          <!-- body's space (after) filler -->
    1.21            <fo:block
    1.22              space-after.optimum="96px"
    1.23              space-after.maximum="96px"
    1.24 @@ -34,6 +39,11 @@
    1.25          background-color="black" display-align="center">
    1.26          <!-- body (b1) -->
    1.27          <fo:block id="b1-2">
    1.28 +          <!-- body's space (before) filler -->
    1.29 +          <fo:block
    1.30 +            space-after.optimum="96px"
    1.31 +            space-after.maximum="96px"
    1.32 +            space-after.conditionality="retain"/>
    1.33            <!-- div (d1) -->
    1.34            <fo:block id="d1-2">
    1.35              <!-- p (p2) -->
    1.36 @@ -42,7 +52,7 @@
    1.37                color="yellow">Text 2</fo:inline>
    1.38              </fo:block>
    1.39            </fo:block>
    1.40 -          <!-- body's space filler ->
    1.41 +          <!-- body's space (after) filler -->
    1.42            <fo:block
    1.43              space-after.optimum="96px"
    1.44              space-after.maximum="96px"
     2.1 --- a/ttml10/spec/ttaf1-dfxp.xml	Fri Sep 21 14:45:42 2012 +0800
     2.2 +++ b/ttml10/spec/ttaf1-dfxp.xml	Sat Sep 22 14:17:24 2012 +0800
     2.3 @@ -7365,8 +7365,13 @@
     2.4  <item>
     2.5  <p>for the resulting <el>fo:block</el> formatting object
     2.6  produced in the previous step that corresponds to the <el>body</el>
     2.7 -element, synthesize and append to the end of its children an empty
     2.8 -  <el>fo:block</el> with the following attributes:
     2.9 +element, perform the following ordered sub-steps:</p>
    2.10 +<olist>
    2.11 +<item>
    2.12 +<p>if the <att>display-align</att> style property of this <el>fo:block</el>
    2.13 +has the value <code>center</code> or <code>after</code>,
    2.14 +then synthesize and insert as the first child of this <el>fo:block</el>
    2.15 +an empty <el>fo:block</el> with the following attributes:
    2.16  <att>space-after.optimum</att>, <att>space-after.maximum</att>, and
    2.17  <att>space-after.conditionality</att>, where the value of the former
    2.18  two attributes is the height or width of the containing
    2.19 @@ -7375,6 +7380,20 @@
    2.20  <code>retain</code>;</p>
    2.21  </item>
    2.22  <item>
    2.23 +<p>if the <att>display-align</att> style property of this <el>fo:block</el>
    2.24 +has the value <code>center</code> or <code>before</code>,
    2.25 +then synthesize and insert as the last child of this <el>fo:block</el>
    2.26 +an empty <el>fo:block</el> with the following attributes:
    2.27 +<att>space-after.optimum</att>, <att>space-after.maximum</att>, and
    2.28 +<att>space-after.conditionality</att>, where the value of the former
    2.29 +two attributes is the height or width of the containing
    2.30 +<el>fo:block-container</el> element, whichever of these is designated
    2.31 +as the block progression dimension, and where the value of the last is
    2.32 +<code>retain</code>;</p>
    2.33 +</item>
    2.34 +</olist>
    2.35 +</item>
    2.36 +<item>
    2.37  <p>for each <el>span</el> element that is not
    2.38  associated with a <att>tts:display</att> style property with the value
    2.39  <code>none</code> and for each anonymous
    2.40 @@ -7436,9 +7455,9 @@
    2.41  semantics defined by this specification.</p>
    2.42  </note>
    2.43  --> 
    2.44 -  <p>For each resulting document instance F, if processing requires presentation on a 
    2.45 -  visual medium, then apply formatting and rendering semantics consistent with that 
    2.46 -  prescribed by <bibref ref="xsl11"/>.</p>
    2.47 +<p>For each resulting document instance F, if processing requires presentation on a 
    2.48 +visual medium, then apply formatting and rendering semantics consistent with that 
    2.49 +prescribed by <bibref ref="xsl11"/>.</p>
    2.50  <note role="elaboration">
    2.51  <p>In an XSL FO area tree produced by formatting <emph>F</emph> using 
    2.52  an <bibref ref="xsl11"/> formatting processor, 
    2.53 @@ -7449,14 +7468,23 @@
    2.54  above in <specref ref="definitions"/>.</p>
    2.55  </note>
    2.56  <note>
    2.57 -<p>
    2.58 -  Due to the possible presence of TTML style properties or style property values
    2.59 -  in a given TTML document instance for which there is no <bibref ref="xsl11"/> counterpart,
    2.60 -  Implementors should recognize that it is the layout model of <bibref ref="xsl11"/> that is being referenced
    2.61 -  by this specification, not the requirement to use a compliant <bibref ref="xsl11"/> formatting processor,
    2.62 -  since such would not necessarily be sufficient to satisfy the full presentation semantics
    2.63 -  defined by this specification, and would contain a large number of features not needed to
    2.64 -  implement the presentation semantics of TTML.</p>
    2.65 +<p>Due to the possible presence of TTML style properties or style property values
    2.66 +in a given TTML document instance for which there is no <bibref ref="xsl11"/> counterpart,
    2.67 +Implementors should recognize that it is the layout model of <bibref ref="xsl11"/> that is being referenced
    2.68 +by this specification, not the requirement to use a compliant <bibref ref="xsl11"/> formatting processor,
    2.69 +since such would not necessarily be sufficient to satisfy the full presentation semantics
    2.70 +defined by this specification, and would contain a large number of features not needed to
    2.71 +implement the presentation semantics of TTML.</p>
    2.72 +</note>
    2.73 +<note role="explanation">
    2.74 +<p>The purpose of inserting additional, collapsible space in the block progression
    2.75 +dimension of the <el>fo:block</el> that corresponds with the <el>body</el> element
    2.76 +is to ensure that the before and after edges of this <el>fo:block</el> are coincident
    2.77 +with the before and after edges of the <el>fo:block-container</el> that corresponds
    2.78 +to the containing <el>region</el>, while simultaneously taking into account the needs
    2.79 +to satisfy alignment in the block progression dimension. For example, this assures that
    2.80 +the background color associated with the <el>body</el> element, if not <code>transparent</code>,
    2.81 + will fill the containing region wholly.</p>
    2.82  </note>
    2.83  </div3>
    2.84  <div3 id="semantics-region-layout-example">