Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix capitalization, punctuation, spacing (#1035). #1053

Merged
merged 2 commits into from
Apr 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
88 changes: 44 additions & 44 deletions spec/ttml2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2883,12 +2883,12 @@ implementation create such objects in the form specified here, but may use any c
<p>A <loc href="#semantics-profile-state-profile-specification"><phrase role="strong">profile specification</phrase></loc>
represents the following internal state information that corresponds with
a <loc href="#profile-vocabulary-feature"><el>ttp:feature</el></loc> or <loc href="#profile-vocabulary-extension"><el>ttp:extension</el></loc>
element</p>
element.</p>
<glist>
<gitem id="semantics-profile-state-profile-specification-designator">
<label>designator</label>
<def>
<p>A <loc href="#content-value-uri">&lt;uri&gt;</loc> value denoting a feature or extension designator depending upon the <emph><code>type</code></emph></p>
<p>A <loc href="#content-value-uri">&lt;uri&gt;</loc> value denoting a feature or extension designator depending upon the <emph><code>type</code></emph>.</p>
</def>
</gitem>
<gitem id="semantics-profile-state-profile-specification-type">
Expand Down Expand Up @@ -2938,7 +2938,7 @@ where each designator denotes a constituent profile, i.e., a profile from which
<p></p>
<p>A <loc href="#semantics-profile-state-combined-profile-specification-set"><phrase role="strong">combined profile specification set</phrase></loc> which
<loc href="#semantics-profile-state-combined-profile-specification-set-constituents"><phrase role="strong">constituents</phrase></loc> and
<loc href="#semantics-profile-state-combined-profile-specification-set-specifications"><phrase role="strong">specifications</phrase></loc> fields are empty sets</p>
<loc href="#semantics-profile-state-combined-profile-specification-set-specifications"><phrase role="strong">specifications</phrase></loc> fields are empty sets.</p>
</def>
</gitem>
<gitem id="semantics-profile-state-profile-instance">
Expand Down Expand Up @@ -3285,16 +3285,16 @@ that represents equivalent information.</p>
<label>[validation exception]</label>
<def>
<p>A <loc href="#semantics-validation-state-validation-exception"><phrase role="strong">validation exception</phrase></loc>
represents the following internal state information that corresponds to an exception condition that occurs during <loc href="#terms-validation-processing">validation processing</loc></p>
represents the following internal state information that corresponds to an exception condition that occurs during <loc href="#terms-validation-processing">validation processing</loc>.</p>
<glist>
<gitem id="semantics-validation-state-validation-exception-message">
<label>message</label>
<def><p>An arbitrary (implementation defined) string that describes or characterizes the exception</p></def>
<def><p>An arbitrary (implementation defined) string that describes or characterizes the exception.</p></def>
</gitem>
<gitem id="semantics-validation-state-validation-exception-type">
<label>type</label>
<def>
<p><code>error|warning</code></p>
<p><code>"error" | "warning"</code></p>
</def>
</gitem>
</glist>
Expand Down Expand Up @@ -8377,8 +8377,8 @@ element types:</p>
adhere to the <code>IDREFS</code> data type defined by <bibref ref="xsd-2"/>,
&sect;3.3.10, and, furthermore, each IDREF must reference a <el>style</el> element
which has a <el>styling</el> element as an ancestor.</p>
<p>If the same IDREF, <emph>ID<sub>1</sub></emph>, appears more than one time in the value of a <att>style</att>
attribute, then there should be an intervening IDREF, <emph>ID<sub>2</sub></emph>, where
<p>If the same IDREF, <emph>ID<sub>1</sub></emph>&thinsp;, appears more than one time in the value of a <att>style</att>
attribute, then there should be an intervening IDREF, <emph>ID<sub>2</sub></emph>&thinsp;, where
<emph>ID<sub>2</sub></emph> is not equal to <emph>ID<sub>1</sub></emph>.</p>
<note role="explanation">
<p>This constraint is intended to discourage the use of redundant referential styling while still
Expand Down Expand Up @@ -12397,7 +12397,7 @@ the container's constituent <termref def="defs-ruby-container">ruby containers</
the container and its constituents is uniform (unvarying).</p></note>
<p>Let <emph>I<sub>R</sub></emph> and <emph>I<sub>B</sub></emph> be, respectively, the inline areas generated by (1) a <termref def="defs-ruby-text-container">ruby text container</termref> or
ruby text annotation and (2) an associated <termref def="defs-ruby-base-container">ruby base container</termref> or ruby base. Further, let <emph>N<sub>R</sub></emph>
and <emph>N<sub>B</sub></emph>, be, respectively, the number of <loc href="#terms-glyph-area-descendant">glyph area descendants</loc> of these
and <emph>N<sub>B</sub></emph>&thinsp;, be, respectively, the number of <loc href="#terms-glyph-area-descendant">glyph area descendants</loc> of these
inline areas.</p>
<p>If the value of this attribute is <code>start</code>, then the start edge of the first <loc href="#terms-glyph-area-descendant">glyph area descendant</loc>
of <emph>I<sub>R</sub></emph>
Expand Down Expand Up @@ -16453,11 +16453,11 @@ model specified below, the following conceptual definitions apply:</p>
<label>[style property]</label>
<def>
<p></p>
<p>a style property, <emph>P</emph>, is considered to consist of a
<p>A style property, <emph>P</emph>, is considered to consist of a
tuple <code>[name, value]</code>, where the name of the
property is a tuple <code>[namespace value,
unqualified name]</code> and the value of the property is a
tuple <code>[category, type, value expression]</code></p>
tuple <code>[category, type, value expression]</code>.</p>
<table id="conceptual-definition-example-style-property" role="example">
<caption>Example &ndash; conceptual style property</caption>
<tbody>
Expand All @@ -16480,13 +16480,13 @@ tuple <code>[category, type, value expression]</code></p>
<label>[style (property) set]</label>
<def>
<p></p>
<p>a style (property) set consists of an unordered collection of style
<p>A style (property) set consists of an unordered collection of style
properties, where no two style properties within the set have an
identical name, where by "identical name" is meant equality of
namespace value of name tuple and unqualified name of name tuple;</p>
<p>in a specified style (property) set, the category of each style
namespace value of name tuple and unqualified name of name tuple.</p>
<p>In a specified style (property) set, the category of each style
property is "specified"; a specified style (property) set of an
element <emph>E</emph> is referred to as <emph>SSS(E)</emph>;</p>
element <emph>E</emph> is referred to as <emph>SSS(E)</emph>.</p>
<table id="conceptual-definition-example-specified-style-set" role="example">
<caption>Example &ndash; conceptual (specified) style (property) set</caption>
<tbody>
Expand Down Expand Up @@ -16516,9 +16516,9 @@ element <emph>E</emph> is referred to as <emph>SSS(E)</emph>;</p>
</tr>
</tbody>
</table>
<p>in a computed style (property) set, the category of each style
<p>In a computed style (property) set, the category of each style
property is either "specified" or "computed"; a computed style (property) set of an element
<emph>E</emph> is referred to as <emph>CSS(E)</emph>;</p>
<emph>E</emph> is referred to as <emph>CSS(E)</emph>.</p>
<table id="conceptual-definition-example-computed-style-set" role="example">
<caption>Example &ndash; conceptual (computed) style (property) set</caption>
<tbody>
Expand Down Expand Up @@ -16555,25 +16555,25 @@ property is either "specified" or "computed"; a computed style (property) set of
<label>[style (property) merging]</label>
<def>
<p></p>
<p>a style property <emph>P<sub>new</sub></emph> is merged into a
<p>A style property <emph>P<sub>new</sub></emph> is merged into a
style (property) set, <emph>SS</emph>, as follows: if a style property
<emph>P<sub>old</sub></emph> is already present in <emph>SS</emph>
where the name of <emph>P<sub>new</sub></emph> is identical to the
name of <emph>P<sub>old</sub></emph>, then replace
name of <emph>P<sub>old</sub></emph>&thinsp;, then replace
<emph>P<sub>old</sub></emph> in <emph>SS</emph> with
<emph>P<sub>new</sub></emph>; otherwise, add
<emph>P<sub>new</sub></emph> to <emph>SS</emph>;</p>
<emph>P<sub>new</sub></emph>&thinsp;; otherwise, add
<emph>P<sub>new</sub></emph> to <emph>SS</emph>.</p>
</def>
</gitem>
<gitem>
<label>[style (property) set merging]</label>
<def>
<p></p>
<p>a style (property) set <emph>SS<sub>new</sub></emph> is merged into
<p>A style (property) set <emph>SS<sub>new</sub></emph> is merged into
an existing style (property) set <emph>SS<sub>old</sub></emph> as
follows: for each style property <emph>P<sub>new</sub></emph> in
<emph>SS<sub>new</sub></emph>, merge <emph>P<sub>new</sub></emph> into
<emph>SS<sub>old</sub></emph>;</p>
<emph>SS<sub>new</sub></emph>&thinsp;, merge <emph>P<sub>new</sub></emph> into
<emph>SS<sub>old</sub></emph>&thinsp;.</p>
</def>
</gitem>
</glist>
Expand All @@ -16597,15 +16597,15 @@ referenced by a <att>style</att> attribute specified on
attribute, then, if <emph>S<sub>REF</sub></emph> is a descendant
of a <el>styling</el> element,
merge the specified style set of
<emph>S<sub>REF</sub></emph>, <emph>SSS(S<sub>REF</sub>)</emph>, into
<emph>S<sub>REF</sub></emph>&thinsp;, <emph>SSS(S<sub>REF</sub>)</emph>, into
the specified style set of <emph>E</emph>,
<emph>SSS(E)</emph>;</p></item>
<!-- 3. [nested styling] -->
<item><p><phrase role="strong">[nested styling]</phrase>
if <emph>E</emph> is not <loc href="#terms-conditionally-excluded">conditionally excluded</loc>, then
for each nested <loc href="#terms-conditionally-excluded">conditionally included</loc> <el>style</el> element child <emph>S<sub>NEST</sub></emph> of
<emph>E</emph>, and in the specified order of child elements, merge
the specified style set of <emph>S<sub>NEST</sub></emph>,
the specified style set of <emph>S<sub>NEST</sub></emph>&thinsp;,
<emph>SSS(S<sub>NEST</sub>)</emph>, into the specified style set of
<emph>E</emph>, <emph>SSS(E)</emph>;</p></item>
<!-- 4. [inline styling] -->
Expand Down Expand Up @@ -16705,7 +16705,7 @@ sub-steps:</p>
<olist>
<item><p>if possible, replace the relative value of <emph>P</emph> with an
equivalent, non-relative (computed) value;</p></item>
<item><p>set the category of <emph>P</emph> to "computed";</p></item>
<item><p>set the category of <emph>P</emph> to "computed".</p></item>
</olist>
</item>
</olist>
Expand All @@ -16731,7 +16731,7 @@ when resolution cannot occur until layout or presentation time, further resoluti
<p>The top-level style resolution process is defined as follows: using
a preorder traversal of each element and <loc href="#terms-anonymous-span">anonymous span</loc>,
<emph>E</emph>, of an intermediate synchronic document,
<emph>DOC<sub>inter</sub></emph>, perform the following ordered
<emph>DOC<sub>inter</sub></emph>&thinsp;, perform the following ordered
sub-steps:</p>
<olist>
<item><p><phrase role="strong">[filter]</phrase> if <emph>E</emph>
Expand Down Expand Up @@ -16770,25 +16770,25 @@ determine (obtain) the computed style set <emph>CSS</emph> of
<def>
<olist>
<item><p>If the units of target rectangle TR and reference rectangle RR are not the same, then raise an error condition.</p></item>
<item><p>If the width of the target rectangle TR, <emph>W<sub>t</sub></emph>, is zero, then set <emph>W<sub>t</sub></emph> to one;
likewise, if the height of the target rectangle TR, <emph>H<sub>t</sub></emph>, is zero, then set <emph>H<sub>t</sub></emph> to one.</p></item>
<item><p>If the width of the target rectangle TR, <emph>W<sub>t</sub></emph>&thinsp;, is zero, then set <emph>W<sub>t</sub></emph> to one;
likewise, if the height of the target rectangle TR, <emph>H<sub>t</sub></emph>&thinsp;, is zero, then set <emph>H<sub>t</sub></emph> to one.</p></item>
<item><p>Let <emph>SAR<sub>r</sub></emph> be the storage aspect ratio of the reference rectangle <emph>RR</emph>.</p></item>
<item><p>Let <emph>SAR<sub>t</sub></emph> be the storage aspect ratio of the target rectangle <emph>TR</emph>.</p></item>
<item>
<p>Determine scaling factor <emph>SF</emph> as follows:</p>
<olist>
<item><p>If <emph>SAR<sub>r</sub></emph> is less than or equal to <emph>SAR<sub>t</sub></emph>, then <emph>SF</emph>
is <emph>W<sub>r</sub></emph> / <emph>W<sub>t</sub></emph>, where <emph>W<sub>r</sub></emph> and <emph>W<sub>t</sub></emph>
<item><p>If <emph>SAR<sub>r</sub></emph> is less than or equal to <emph>SAR<sub>t</sub></emph>&thinsp;, then <emph>SF</emph>
is <emph>W<sub>r</sub></emph> / <emph>W<sub>t</sub></emph>&thinsp;, where <emph>W<sub>r</sub></emph> and <emph>W<sub>t</sub></emph>
are the widths of the reference and target rectangles, respectively.</p></item>
<item><p>Otherwise, <emph>SAR<sub>r</sub></emph> is greater than <emph>SAR<sub>t</sub></emph>, then <emph>SF</emph>
is <emph>H<sub>r</sub></emph> / <emph>H<sub>t</sub></emph>, where <emph>H<sub>r</sub></emph> and <emph>H<sub>t</sub></emph>
<item><p>Otherwise, <emph>SAR<sub>r</sub></emph> is greater than <emph>SAR<sub>t</sub></emph>&thinsp;, then <emph>SF</emph>
is <emph>H<sub>r</sub></emph> / <emph>H<sub>t</sub></emph>&thinsp;, where <emph>H<sub>r</sub></emph> and <emph>H<sub>t</sub></emph>
are the heights of the reference and target rectangles, respectively.</p></item>
</olist>
</item>
<item><p>
If <emph>SF</emph> is not equal to <emph>1.0</emph>, then
set <emph>W<sub>t</sub></emph> to <emph>SF</emph> * <emph>W<sub>t</sub></emph>
and <emph>H<sub>t</sub></emph> to <emph>SF</emph> * <emph>H<sub>t</sub></emph>,
and <emph>H<sub>t</sub></emph> to <emph>SF</emph> * <emph>H<sub>t</sub></emph>&thinsp;,
i.e., scale target rectangle <emph>TR</emph> in place by scale factor <emph>SF</emph>.
</p></item>
</olist>
Expand All @@ -16808,8 +16808,8 @@ determine (obtain) the computed style set <emph>CSS</emph> of
<def>
<olist>
<item><p>If the units of target rectangle TR and reference rectangle RR are not the same, then raise an error condition.</p></item>
<item><p>If the width of the target rectangle TR, <emph>W<sub>t</sub></emph>, is zero, then set <emph>W<sub>t</sub></emph> to one;
likewise, if the height of the target rectangle TR, <emph>H<sub>t</sub></emph>, is zero, then set <emph>H<sub>t</sub></emph> to one.</p></item>
<item><p>If the width of the target rectangle TR, <emph>W<sub>t</sub></emph>&thinsp;, is zero, then set <emph>W<sub>t</sub></emph> to one;
likewise, if the height of the target rectangle TR, <emph>H<sub>t</sub></emph>&thinsp;, is zero, then set <emph>H<sub>t</sub></emph> to one.</p></item>
<item><p>Let <emph>SF<sub>W </sub> </emph> be <emph>W<sub>R</sub> </emph>/<emph>W<sub>T</sub> </emph>, where
<emph>W<sub>R</sub> </emph> and <emph>W<sub>T</sub> </emph> are the widths of the reference rectangle RR
and the target rectangle TR, respectively.</p></item>
Expand All @@ -16822,7 +16822,7 @@ determine (obtain) the computed style set <emph>CSS</emph> of
<item><p>
If <emph>SF</emph> is not equal to <emph>1.0</emph>, then
set <emph>W<sub>t</sub></emph> to <emph>SF</emph> * <emph>W<sub>t</sub></emph>
and <emph>H<sub>t</sub></emph> to <emph>SF</emph> * <emph>H<sub>t</sub></emph>,
and <emph>H<sub>t</sub></emph> to <emph>SF</emph> * <emph>H<sub>t</sub></emph>&thinsp;,
i.e., scale target rectangle <emph>TR</emph> in place by scale factor <emph>SF</emph>.
</p></item>
</olist>
Expand Down Expand Up @@ -17040,13 +17040,13 @@ equivalent to an anonymous <loc href="#terms-inline-animation">inline animation<
the form of a <loc href="#animation-vocabulary-set"><el>set</el></loc> animation element <emph>A</emph>, where the
animation applies to <emph>R</emph> over an active time interval equivalent to the active time
interval of <emph>E</emph>, and where, if multiple animation elements
(<emph>A<sub>i</sub></emph>, ..., <emph>A<sub>j</sub></emph>) already apply to <emph>R</emph>,
(<emph>A<sub>i</sub></emph>&thinsp;, ..., <emph>A<sub>j</sub></emph>) already apply to <emph>R</emph>,
then <emph>A</emph> applies subsequent to the last of these existing animations, namely, immediately after <emph>A<sub>j</sub></emph>.</p>
<note role="clarification">
<p>In the event that multiple anonymous <loc href="#terms-inline-animation">inline animations</loc> of the same style attribute are
applied to some region <emph>R</emph>, then the corresponding
<loc href="#animation-vocabulary-set"><el>set</el></loc> animation elements, <emph>A<sub>j</sub></emph>, ..., <emph>A<sub>k</sub></emph>,
are added to <emph>R</emph> according to the pre-order traversal order of elements <emph>E<sub>j</sub></emph>, ..., <emph>E<sub>k</sub></emph> that
<loc href="#animation-vocabulary-set"><el>set</el></loc> animation elements, <emph>A<sub>j</sub></emph>&thinsp;, ..., <emph>A<sub>k</sub></emph>&thinsp;,
are added to <emph>R</emph> according to the pre-order traversal order of elements <emph>E<sub>j</sub></emph>&thinsp;, ..., <emph>E<sub>k</sub></emph> that
produced these animations.</p>
<p>Note also that the semantics of applying multiple animations to a specific style attribute for a given element are
governed by step (5), <phrase role="strong">[animation styling]</phrase>, of <specref ref="semantics-style-resolution-processing-sss"/>.</p>
Expand Down Expand Up @@ -17509,7 +17509,7 @@ then the element is associated with the default region;</p></item>
<p>Where an implementation is able to detect significant similarity between two
adjacent synchronic <loc href="#terms-document-instance">document instances</loc>,
<emph>DOC<sub><phrase>inter<sub>N</sub></phrase></sub></emph>
<emph>DOC<sub><phrase>inter<sub>N&minus;1</sub></phrase></sub></emph>,
<emph>DOC<sub><phrase>inter<sub>N&minus;1</sub></phrase></sub></emph>&thinsp;,
then the implementation can apply processing to make the transition between
presenting the two instances as smooth as possible, e.g., as described
by <bibref ref="cta608e"/>, &sect;C.3, and <bibref ref="ccreq"/>.</p>
Expand Down Expand Up @@ -17540,9 +17540,9 @@ defined by this specification, and would contain a large number of features not
implement the presentation semantics of TTML.</p>
</note>
<p>For the purpose of performing presentation processing, for each intermediate synchronic document produced by
<specref ref="semantics-region-layout-step-1"/>, <emph>DOC<sub><phrase>inter<sub>i</sub></phrase></sub></emph>, (1) invoke the following
<specref ref="semantics-region-layout-step-1"/>, <emph>DOC<sub><phrase>inter<sub>i</sub></phrase></sub></emph>&thinsp;, (1) invoke the following
<phrase role="strong"><loc href="#procedure-flow-transformation">[flow transformation]</loc></phrase> procedure
to obtain an XSL FO document instance, <emph>F<sub>i</sub></emph>, and then (2) if processing requires presentation on a
to obtain an XSL FO document instance, <emph>F<sub>i</sub></emph>&thinsp;, and then (2) if processing requires presentation on a
visual medium, apply to <emph>F<sub>i</sub></emph> all relevant formatting and rendering semantics consistent with that prescribed
by <bibref ref="xslfo11"/> and this specification.</p>
<glist>
Expand Down