diff --git a/spec/ttml2.xml b/spec/ttml2.xml index 1a3947fd1..f8e117d49 100644 --- a/spec/ttml2.xml +++ b/spec/ttml2.xml @@ -875,6 +875,8 @@ and the Image Module when they occur Document and Head Modules in .

+

In addition to the element types cited above, element types designated as content element types by an +extension module.

@@ -910,6 +912,13 @@ must not, must, or may be employed by Timed Text Markup Language content.

as well as other stylistic and temporal characteristics.

+ + + +

A module defined within the body of this specification, specifically, the modules defined by + and .

+
+
@@ -1147,6 +1156,12 @@ labeled (using a extension designation) in another (public or private) specification.

+ + + +

A module that is not a core module.

+
+
@@ -1428,6 +1443,21 @@ consist of one or more inline areas.

Any of the element types defined by the Metadata Module.

+ + + +

A collection of feature and (or) extension definitions, defined as +either a core module or an extension module.

+ +

A module is distinct from (and orthogonal to) a profile in the sense that the former +defines functionality (regardless of application of use) while the latter selects functionality (for support by a processor +or use by a document). Note also that a single specification may define functionality (either explicitly or implicitly) associated +with a module and also define a profile. For example, this specification defines a collection of core modules +and also defines three profiles, about which see and +, respectively.

+
+
+
@@ -1608,7 +1638,7 @@ must or may be implemented (supported) by a content processor.

-

A collection of features and extensions, which, when +

A collection of feature and extension specifications, which, when interned (instantiated), is represented by a profile instance state object. A profile is typed as a content profile or a processor profile.

@@ -1807,6 +1837,18 @@ by style property set.

An element which is or may be associated with a computed style set.

+ + + +

A global attribute defined in either (1) one of the TT Style Namespaces; or +(2) an Other Namespace such that the defining module +declares the attribute to be a styling attribute.

+ +

For the purpose of defining the semantics of , a styling attribute (whether specified +or defaulted) is intended to be interned (instantiated) as a style property.

+
+
+
@@ -2553,8 +2595,7 @@ namespace names are listed in . TTML Content Document Type

The TTML Content Document Type is an abstract document type of a profile -of the Timed Text Markup Language intended to be used for interchange among distribution systems. This document type -is defined in terms of the element and attribute vocabulary specified in .

+of the Timed Text Markup Language defined in terms of a collection of functional modules.

This specification references two types of schemas that may be used to validate a superset/subset of timed text content document instances:

@@ -2599,8 +2640,7 @@ to be used to represent the content of a timed text content document in such a manner that timing information is denoted in a non-hierarchical (flat), temporally linear manner, and where certain information, such as styling matter, may be resolved or merged in order to simplify subsequent processing. -This document type is defined in terms of the element and attribute vocabulary -specified in and .

+This document type is defined in terms of a collection of functional modules.

This specification references two types of schemas that may be used to validate timed text intermediate document instances:

@@ -2618,7 +2658,7 @@ of a timed text intermediate TTML Profile Document Type

The TTML Profile Document Type is an abstract document type intended to be used for defining and communicating constraints on the support or use of TTML features or extensions. This document type -is defined in terms of the element and attribute vocabulary specified in .

+is defined in terms of a collection of functional modules.

This specification references two types of schemas that may be used to validate timed text profile document instances:

@@ -2649,9 +2689,12 @@ catalog) of the Timed Text Markup Language (TTML) as follows:

Namespaces

The Timed Text Markup Language (TTML) employs a number of XML Namespaces for elements and certain -global attributes. The following table specifies this set of namespaces -and indicates the default prefix used within this specification and the -normative URI that denotes each namespace.

+global attributes, collectively referred to as the +TTML Namespaces, +and defined in , where each namespace is assigned a descriptive name, +a default namespace prefix, and a URI. +All namespaces not defined in are referred to as +Other Namespaces.

@@ -2715,7 +2758,7 @@ normative URI that denotes each namespace.

Table 5-1 – Namespaces
-

All TTML Namespaces are All TTML Namespaces are mutable ; all undefined names in these namespaces are reserved for future standardization by the W3C.

@@ -6343,8 +6386,10 @@ the insertion of the parsed representation of that element (and its descendants) reduced xml infoset associated with the containing document instance.

-

The condition attribute may be used with any element in the core vocabulary catalog -except profile matter, i.e., elements of the Profile Module.

+

The condition attribute may be used with (1) any element in the core vocabulary catalog +except profile matter, i.e., elements of the Profile Module, and +(2) any element defined by an extension module, where that element's type +permits the specification of a condition attribute.

The value of a condition attribute must adhere to a <condition> expression which is evaluated at the time of presentation processing (lazy evaluation) @@ -8281,7 +8326,7 @@ vocabulary catalog, where styling is to be understood as a separable layer of information that applies to content and that denotes authorial intentions about the presentation of that content.

-

Styling attributes are included in TTML to enable authorial intent of presentation +

Styling attributes are included in TTML to enable authorial intent of presentation to be included within a self-contained document. This section describes the semantics of style presentation in terms of a standard processing model. TTML Processors are not required to present document instances in any particular way; @@ -8299,7 +8344,7 @@ to implement features it has in common with this model.

No normative use of an <?xml-stylesheet ... ?> processing instruction is defined by this specification.

-

The styling attributes defined in this section may be specified by any element type +

The styling attributes defined in this section may be specified by any element type that permits use of attributes in the TT Style Namespaces; however, these attributes apply as style properties only to those element types indicated by the definition of each attribute. Furthermore, unless explicitly permitted by an element type definition, an attribute in the TT Style Namespaces @@ -8505,7 +8550,8 @@ that support inline style specifications:

-

In addition to the above visual styling attribues, this section specifies the following audio styling attributes in the TT Audio Style Namespace +

In addition to the above visual styling attribues, this section specifies the following audio +styling attributes in the TT Audio Style Namespace for use with style definition elements and content elements that support inline style specifications:

@@ -16332,7 +16378,7 @@ layout element.

Inline Styling

Style properties may be expressed in an inline manner by direct -specification of an attribute from the TT Style Namespaces on the +specification of a styling attribute on the affected element. When expressed in this manner, the association of style information is referred to as inline styling.

Style properties associated by inline styling are afforded a higher priority than all other @@ -16537,10 +16583,10 @@ set of the span element.

Region Style Inheritance

Style properties are inherited from a region element in the following case:

-

if an inheritable style property P is not associated with +

if an inheritable style property P is not associated with a content element or an anonymous span E, and

-

if that style property P is in the computed style +

if that style property P is in the computed style set of region R, and

if that element E is flowed into (presented within) region R.

@@ -16573,7 +16619,7 @@ element into which the p element is flowed (presented).

Style Resolution Value Categories

During style resolution, layout, and presentation processing, -three categories of style property values are distinguished as +three categories of style property values are distinguished as follows:

specified values

@@ -16582,7 +16628,7 @@ follows:

Specified Values -

The value of a style property that is associated with or inherited +

The value of a style property that is associated with or inherited by an element or anonymous span is referred to as a specified value. The set of all specified style properties of a given element is referred to @@ -16681,7 +16727,8 @@ model specified below, the following conceptual definitions apply:

tuple [name, value], where the name of the property is a tuple [namespace value, unqualified name] and the value of the property is a -tuple [category, type, value expression].

+tuple [category, type, value expression], where P represents the +interned (instantiated) state associated with a specified or defaulted styling attribute.

@@ -16779,8 +16826,8 @@ property is either "specified" or "computed"; a computed style (property) set of

-

A style property Pnew is merged into a -style (property) set, SS, as follows: if a style property +

A style property Pnew is merged into a +style (property) set, SS, as follows: if a style property Pold is already present in SS where the name of Pnew is identical to the name of Pold , then replace @@ -16795,7 +16842,7 @@ name of Pold , then replace

A style (property) set SSnew is merged into an existing style (property) set SSold as -follows: for each style property Pnew in +follows: for each style property Pnew in SSnew , merge Pnew into SSold .

@@ -16835,8 +16882,8 @@ the specified style set of SNEST ,

[inline styling] if E is not conditionally excluded, then -for each style property P expressed as a specified styling -attribute of E, +for each style property P interned (instantiated) +from a specified styling attribute of E, merge P into the specified style set of E, SSS(E);

@@ -16851,16 +16898,14 @@ merge the specified style set of A,

[implicit inheritance and initial value fallback] if the element type of E is not animation element type animate or set and is not styling element type style, -then for each style property -P in the set of style properties defined -above in , perform the -following ordered sub-steps:

+then for each style propertyP interned (instantiated) from a +styling attribute, perform the following ordered sub-steps:

if P is present in the specified style set of E, SSS(E), then continue to the -next style property;

+next style property;

@@ -16886,8 +16931,7 @@ determined as follows:

if an initial element defines the initial value for P, then use that value;

-

otherwise, use the initial value specified by the property definition of P found above -in ;

+

otherwise, use the initial value specified by the property definition of P;

@@ -16923,7 +16967,7 @@ initialize CSS(E) to a (deep) copy of further resolution; otherwise, continue with the next rule;

[relative value resolution] for each -style property P in CSS(E), where the value +style property P in CSS(E), where the value type of P is relative, perform the following ordered sub-steps:

@@ -16975,6 +17019,7 @@ do not perform the subsequent step below on E:

style

anonymous span

+

or a styled element defined in a supported extension module;

[resolve computed styles] determine (obtain) the computed style set CSS of @@ -17943,11 +17988,11 @@ properties:

-

for each TTML style property attribute in some computed +

for each style property in some computed style set that -has no counterpart in , map that attribute directly through +has no counterpart in , map that property directly through to the relevant formatting object produced by the input TTML content element to -which the style property applies;

+which the style property applies;

optionally, synthesize a unique id attribute on each resulting @@ -18079,7 +18124,7 @@ the expanded-nominal-requested-line-rectangle, wh line area of a paragraph, and (2) the dimensions of the expanded-rectangle of each inline area child of the line area, which may vary for each inline area of each line area of a paragraph.

-

The phrase line height, as referred to above, should not be confused with the computed value of the style property associated with +

The phrase line height, as referred to above, should not be confused with the computed value of the style property associated with the tts:lineHeight attribute. This latter value serves as a parameter for computing the half leading applied to a line area and individual inline areas, which are, respectively, a parameter for determining (1) the dimensions of the expanded-nominal-requested-line-rectangle @@ -18527,7 +18572,7 @@ styling of content.

animate -

The animate element expresses a series of changes (animations) to be applied (targeted) to one or more style property attributes of associated elements.

+

The animate element expresses a series of changes (animations) to be applied (targeted) to one or more styling attributes of associated elements.

An animate element may appear as either (1) a child of a content element or a region element, referred to as inline animation, or @@ -18568,14 +18613,15 @@ elements in the Metadata.class

An out-of-line animate element must specify an xml:id attribute.

-

Style property attributes targeted by an animate element are specified directly using -attributes in the TT Style Namespaces or in a namespace that is not a TT Namespace, where the list (sequence) of animation values +

Styling attributes are directly targeted by an animate element, +where the list (sequence) of animation values adhere to the <animation-value-list> syntax, and where each constituent <animation-value> adheres to the syntax of the specified attribute.

In contrast with , §19.2.12, a single animate element, as defined here, may be used to -perform continuous animations on a set of targeted style property attributes instead of being limited to targeting a single style property attribute. +perform continuous animations on a set of targeted style attributes instead of being limited to targeting a +single styling attribute. In , this would require the use of multiple animate elements rather than a single animate element.

Furthermore, by using direct specification of animated style property and key values, it is not necessary to employ the from, to, by, or values animation value attributes defined by , §19.2.9.

@@ -18584,7 +18630,7 @@ In , this would require the use of multiple animate, §19.2, as constrained or further clarified below:

The attributes targeted by an animate element and the values to be applied to these attributes are -specified by direct use of attributes in the TT Style Namespaces or a namespace that is not a TT Namespace; +specified by direct use of styling attributes; therefore, the attributeName, from, to, by, and values attributes defined by are not supported by this version of TTML.

@@ -18778,7 +18824,7 @@ defined to be coterminous with the root
set -

The set element expresses one or more a discrete changes (animations) to be applied (targeted) to style property attributes +

The set element expresses one or more a discrete changes (animations) to be applied (targeted) to styling attributes of associated elements.

A set element may appear as either (1) a child of a content element or a region element, @@ -18817,19 +18863,20 @@ elements in the Metadata.class

An out-of-line set element must specify an xml:id attribute.

-

Style property attributes targeted by an set element are specified directly using +

Style attributes targeted by an set element are specified directly using attributes in the TT Style Namespaces or in a namespace that is not some TT Namespace, where the single target animation (key) value adheres to the <animation-value> syntax.

In contrast with , §19.2.13, a single set element, as defined here, may be used to -perform discrete animations on a set of targeted style property attributes instead of being limited to targeting a single style property attribute. +perform discrete animations on a set of targeted styling attributes instead of being limited to targeting a +single styling attribute. In , this would require the use of multiple set elements rather than a single set element.

Except for the constraints or variations enumerated below, the semantics of the set element and its attributes enumerated above are defined to be those specified by , §19.2.13:

The attributes targeted by a set element and the discrete values to be applied to these attributes are -specified by direct use of attributes in the TT Style Namespaces or in a namespace that is not a TT Namespace (as opposed to using SVG's +specified by direct use of styling attributes (as opposed to using SVG's attributeName and to attributes).

For example, specifying tts:color="red" is @@ -22293,10 +22340,10 @@ for the fill attribute of the #set-multiple-styles

A TTML transformation processor supports the #set-multiple-styles feature if it recognizes and is capable of -transforming multiple attributes in the TT Style Namespaces when specified on a set element.

+transforming multiple styling attributes when specified on a set element.

A TTML presentation processor supports the #set-multiple-styles feature if it implements presentation semantic support -for multiple attributes in the TT Style Namespaces when specified on a set element.

+for multiple styling attributes when specified on a set element.

#set-repeat @@ -25660,7 +25707,7 @@ and its descendant elements:

no end attribute is specified;

no region attribute is specified;

no timeContainer attribute is specified;

-

no attribute in the TT Style Namespaces is specified;

+

no attribute in the TT Style Namespaces is specified;

no set element is present;

no significant text node is not a child of a span element that contains no other child.

Example – conceptual style property