From b3b6f7092a3200b1373148525610d3b23fb684fc Mon Sep 17 00:00:00 2001
From: Nigel Megitt Some normative provisions relating to this section are defined in [[TTML2]]. Some attributes have semantics for computing their value that depend on the computed value of
the attribute on some other element.
For example if the Or, for another example, the computed times of an element in a DAPT document are relative
- to the begin time of its parent element. If a MAYBE REMOVE Or, also for example, if styling is used in a TTML document, the computed value of the Handling
- <div>
and <p>
elementsUsing computed attribute values
- xml:lang
attribute is not specified on an element then its computed
value is the computed value of the same attribute on the element's parent.<div>
element specifies a begin
- attribute, and that element does not correspond to a Script Event, then the computed times
- of its descendant <div>
elements that do correspond to Script Events
- are different to what they would be if that intermediate <div>
element's begin
- time were ignored.tts:fontSize
- attribute when expressed as a percentage is relative to the computed value of the same attribute
- on the element's parent.
- Furthermore, in this example, the algorithm for generating ISDs (Intermediate Synchronic Documents)
- involves reparenting some elements. The computed value that applies is the one before
- rehoming has taken place.<div>
element specifies a begin
attribute,
+ then the computed times of its child <div>
elements
+ are relative to that parent <div>
element's begin time,
+ and so on down the hierarchy.
+ It is important to include those "intermediate" <div>
elements'
+ times in the computation even if the processing target is
+ an instance of the DAPT data model in which they have no direct equivalent;
+ otherwise the Script Event Begin and End times would be wrong.
+
Considering this situation more generally, it is possible that, within a DAPT document, there can be TTML elements that do not directly correspond to objects in the DAPT data model, @@ -2576,6 +2574,9 @@
The semantics defined by [[TTML2]] or, for vocabulary defined herein, this specification, take precedence in this scenario.
Implementations MUST compute attribute values based on the contents of the document instance before
applying those computed values to DAPT data model objects.
+ For example a processor that supports TTML2 styling features would need
+ to implement the TTML2 semantics for inheritance and computing relative values
+ of attributes like tts:fontSize
.