[ttml2] add tts:fontVariantPosition (issue 24)
authorGlenn Adams <glenn@skynav.com>
Wed, 24 Sep 2014 15:11:22 -0600
changeset 723 32a8268a5577
parent 722 a6bb3d520681
child 724 de451e51fa03
[ttml2] add tts:fontVariantPosition (issue 24)
ttml2/spec/rnc/schema.zip
ttml2/spec/rnc/ttml2-datatypes.rnc
ttml2/spec/rnc/ttml2-styling-attribs.rnc
ttml2/spec/ttml2-changes.html
ttml2/spec/ttml2.xml
ttml2/spec/xsd/schema.zip
ttml2/spec/xsd/ttml2-datatypes.xsd
ttml2/spec/xsd/ttml2-styling-attribs.xsd
Binary file ttml2/spec/rnc/schema.zip has changed
--- a/ttml2/spec/rnc/ttml2-datatypes.rnc	Wed Sep 24 14:05:19 2014 -0600
+++ b/ttml2/spec/rnc/ttml2-datatypes.rnc	Wed Sep 24 15:11:22 2014 -0600
@@ -94,6 +94,11 @@
   "italic" |
   "oblique"
 
+TTAF.FontVariantPosition.datatype =
+  "normal" |
+  "sub" |
+  "super"
+
 TTAF.FontWeight.datatype =
   "normal" |
   "bold"
--- a/ttml2/spec/rnc/ttml2-styling-attribs.rnc	Wed Sep 24 14:05:19 2014 -0600
+++ b/ttml2/spec/rnc/ttml2-styling-attribs.rnc	Wed Sep 24 15:11:22 2014 -0600
@@ -28,6 +28,8 @@
   = attribute tts:fontSize { TTAF.FontSize.datatype }?
 TTAF.fontStyle.attrib
   = attribute tts:fontStyle { TTAF.FontStyle.datatype }?
+TTAF.fontVariantPosition.attrib
+  = attribute tts:fontVariantPosition { TTAF.FontVariantPosition.datatype }?
 TTAF.fontWeight.attrib
   = attribute tts:fontWeight { TTAF.FontWeight.datatype }?
 TTAF.lineHeight.attrib
@@ -85,6 +87,7 @@
   TTAF.fontFamily.attrib,
   TTAF.fontSize.attrib,
   TTAF.fontStyle.attrib,
+  TTAF.fontVariantPosition.attrib,
   TTAF.fontWeight.attrib,
   TTAF.lineHeight.attrib,
   TTAF.opacity.attrib,
--- a/ttml2/spec/ttml2-changes.html	Wed Sep 24 14:05:19 2014 -0600
+++ b/ttml2/spec/ttml2-changes.html	Wed Sep 24 15:11:22 2014 -0600
@@ -69,6 +69,7 @@
 
 * In 5.3.1, add new styling attribute vocabulary
 'tts:border',
+'tts:fontVariantPosition',
 'tts:ruby',
 'tts:rubyAlign',
 'tts:rubyPosition',
@@ -141,11 +142,6 @@
 
 * In 6.2, add 'ttp:version' parameter attribute.
 
-* In 6.2.7, deprecate 'ttp:markerMode' parameter attribute, requiring it be
-  ignored (and treated as if 'discontinuous' were specified) unless either
-  #markerMode or #markerMode-discontinuous feature is required by the effective
-  processor profile.
-
 * In 6.2.10, deprecate 'ttp:profile' parameter attribute, replacing it with
   'ttp:processorProfiles' parameter attribute.
 
@@ -216,21 +212,23 @@
 * In 8.2.11, add 'p' element to enumeration  of element types to which
   tts:fontStyle applies.
 
-* In 8.2.12, add 'p' element to enumeration  of element types to which
+* In 8.2.12, add 'tts:fontVariantPosition' attribute.
+
+* In 8.2.13, add 'p' element to enumeration  of element types to which
   tts:fontWeight applies.
 
-* In 8.2.13, specify algorithm for resolving the 'normal' value of
+* In 8.2.14, specify algorithm for resolving the 'normal' value of
   tts:lineHeight that takes into account the use of per-font-metrics for
   ascent, descent, and line gap, using 125% of font size as a fall back.
 
-* In 8.2.14, add content elements to enumeration of element types to which
+* In 8.2.15, add content elements to enumeration of element types to which
   tts:opacity applies.
 
-* In 8.2.15, add 'div' and 'p' elements to enumeration of element types to
+* In 8.2.16, add 'div' and 'p' elements to enumeration of element types to
   which tts:origin applies. Define semantics that causes the use of tts:origin
   to generate an implied inline region.
 
-* In 8.2.17, add content elements to enumeration of element types to which
+* In 8.2.18, add content elements to enumeration of element types to which
   tts:padding applies.
 
 * In 8.3, add &lt;border-color&gt;, &lt;border-style&gt;, and &lt;border-width&gt;
@@ -353,6 +351,8 @@
 
 * In 8.2, add note about the use of non-applicable style attributes.
 
+* In 8.2, renumber sub-sections to account for newly defined attributes.
+
 * In 8.4.4.4, rework [filter] step to explicitly enumerate element types
   not filtered.
 
--- a/ttml2/spec/ttml2.xml	Wed Sep 24 14:05:19 2014 -0600
+++ b/ttml2/spec/ttml2.xml	Wed Sep 24 15:11:22 2014 -0600
@@ -2412,6 +2412,7 @@
 <loc href="#style-attribute-fontFamily">tts:fontFamily</loc>,
 <loc href="#style-attribute-fontSize">tts:fontSize</loc>,
 <loc href="#style-attribute-fontStyle">tts:fontStyle</loc>,
+<loc href="#style-attribute-fontVariantPosition">tts:fontVariantPosition</loc>,
 <loc href="#style-attribute-fontWeight">tts:fontWeight</loc>,
 <loc href="#style-attribute-lineHeight">tts:lineHeight</loc>,
 <loc href="#style-attribute-opacity">tts:opacity</loc>,
@@ -5083,6 +5084,7 @@
 <item><p><specref ref="style-attribute-fontFamily"/></p></item>
 <item><p><specref ref="style-attribute-fontSize"/></p></item>
 <item><p><specref ref="style-attribute-fontStyle"/></p></item>
+<item><p><specref ref="style-attribute-fontVariantPosition"/></p></item>
 <item><p><specref ref="style-attribute-fontWeight"/></p></item>
 <item><p><specref ref="style-attribute-lineHeight"/></p></item>
 <item><p><specref ref="style-attribute-opacity"/></p></item>
@@ -6246,6 +6248,67 @@
 &sect; 7.9.7.</p>
 </note>
 </div3>
+<div3 id="style-attribute-fontVariantPosition">
+<head>tts:fontVariantPosition</head>
+<p>The <att>tts:fontVariantPosition</att> attribute is used to enable the selection
+of typographic subscript and superscript glyphs.</p>
+<p>This attribute may be specified by any
+element type
+that permits use of attributes in the TT Style Namespace; however, this attribute applies
+as a style property only to those element types indicated in the following table.</p>
+<table id="style-property-details-fontVariantPosition" role="common">
+<col width="25%"/>
+<col/>
+<tbody>
+<tr>
+<td><emph>Values:</emph></td>
+<td>
+<code>normal</code> |
+<code>sub</code> |
+<code>super</code>
+</td>
+</tr>
+<tr>
+<td><emph>Initial:</emph></td>
+<td><code>normal</code></td>
+</tr>
+<tr>
+<td><emph>Applies to:</emph></td>
+<td>
+<loc href="#content-vocabulary-p"><el>p</el></loc>,
+<loc href="#content-vocabulary-span"><el>span</el></loc>
+</td>
+</tr>
+<tr>
+<td><emph>Inherited:</emph></td>
+<td>yes</td>
+</tr>
+<tr>
+<td><emph>Percentages:</emph></td>
+<td>N/A</td>
+</tr>
+<tr>
+<td><emph>Animatable:</emph></td>
+<td>discrete</td>
+</tr>
+</tbody>
+</table>
+<p>For the purpose of determining applicability of this style property,
+each character child of a <el>p</el> element is considered to be enclosed in an anonymous
+span.</p>
+<p>If a computed value of the property associated with this attribute is not supported,
+then a <loc href="#terms-presentation-processor">presentation processor</loc> must use the value <code>normal</code>.</p>
+<ednote>
+<name>Font Position Variant Example</name>
+<date>2014-09-24</date>
+<edtext>Add example and example rendering of tts:fontVariantPosition.</edtext>
+</ednote>
+<note role="derivation">
+<p>The semantics of the style property
+represented by this attribute are based upon that defined by <bibref ref="css3-fonts"/>,
+&sect; 6.5.</p>
+</note>
+</div3>
 <div3 id="style-attribute-fontWeight">
 <head>tts:fontWeight</head>
 <p>The <att>tts:fontWeight</att> attribute is used to specify a style property
@@ -14948,6 +15011,10 @@
 <titleref href="http://www.ce.org/">Digital Television (DTV) Closed Captioning</titleref>, CEA Standard,
 Consumer Electronics Association (CEA).
 </bibl>
+<bibl id="css3-fonts" key="CSS Fonts Module Level 3">John Daggett,
+<titleref href="http://dev.w3.org/csswg/css-fonts/">CSS Fonts Module Level 3</titleref>, W3C Editor's Draft. (See
+<xspecref href="http://dev.w3.org/csswg/css-fonts/">http://dev.w3.org/csswg/css-fonts/</xspecref>.)
+</bibl>
 <bibl id="css3-wm" key="CSS Writing Modes Level 3">Elika Etamad and Koji Ishii,
 <titleref href="http://dev.w3.org/csswg/css-writing-modes-3/">CSS Writing Modes Level 3</titleref>, W3C Editor's Draft. (See
 <xspecref href="http://dev.w3.org/csswg/css-writing-modes-3/">http://dev.w3.org/csswg/css-writing-modes-3/</xspecref>.)
Binary file ttml2/spec/xsd/schema.zip has changed
--- a/ttml2/spec/xsd/ttml2-datatypes.xsd	Wed Sep 24 14:05:19 2014 -0600
+++ b/ttml2/spec/xsd/ttml2-datatypes.xsd	Wed Sep 24 15:11:22 2014 -0600
@@ -126,6 +126,13 @@
       <xs:enumeration value="oblique"/>
     </xs:restriction>
   </xs:simpleType>
+  <xs:simpleType name="fontVariantPosition">
+    <xs:restriction base="xs:token">
+      <xs:enumeration value="normal"/>
+      <xs:enumeration value="sub"/>
+      <xs:enumeration value="super"/>
+    </xs:restriction>
+  </xs:simpleType>
   <xs:simpleType name="fontWeight">
     <xs:restriction base="xs:token">
       <xs:enumeration value="normal"/>
--- a/ttml2/spec/xsd/ttml2-styling-attribs.xsd	Wed Sep 24 14:05:19 2014 -0600
+++ b/ttml2/spec/xsd/ttml2-styling-attribs.xsd	Wed Sep 24 15:11:22 2014 -0600
@@ -15,6 +15,7 @@
   <xs:attribute name="fontFamily" type="ttd:fontFamily"/>
   <xs:attribute name="fontSize" type="ttd:fontSize"/>
   <xs:attribute name="fontStyle" type="ttd:fontStyle"/>
+  <xs:attribute name="fontVariantPosition" type="ttd:fontVariantPosition"/>
   <xs:attribute name="fontWeight" type="ttd:fontWeight"/>
   <xs:attribute name="lineHeight" type="ttd:lineHeight"/>
   <xs:attribute name="opacity" type="ttd:opacity"/>
@@ -45,6 +46,7 @@
     <xs:attribute ref="tts:fontFamily"/>
     <xs:attribute ref="tts:fontSize"/>
     <xs:attribute ref="tts:fontStyle"/>
+    <xs:attribute ref="tts:fontVariantPosition"/>
     <xs:attribute ref="tts:fontWeight"/>
     <xs:attribute ref="tts:lineHeight"/>
     <xs:attribute ref="tts:opacity"/>