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

Improve non-negative-real interoperability (#943). #944

Merged
merged 3 commits into from
Aug 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions spec/profiles/ttml2-full.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
<feature value="required">#length-pixel</feature>
<feature value="required">#length-positive</feature>
<feature value="required">#length-real</feature>
<feature value="required" extends="#length-real">#length-real-version-2</feature>
<feature value="required">#length-root-container-relative</feature>
<feature value="required" extends="#length">#length-version-2</feature>
<feature value="required">#letterSpacing</feature>
Expand Down
1 change: 1 addition & 0 deletions spec/profiles/ttml2-presentation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
<feature value="optional">#length-pixel</feature>
<feature value="optional">#length-positive</feature>
<feature value="optional">#length-real</feature>
<feature value="optional" extends="#length-real">#length-real-version-2</feature>
<feature value="optional">#length-root-container-relative</feature>
<feature value="optional" extends="#length">#length-version-2</feature>
<feature value="optional">#letterSpacing</feature>
Expand Down
1 change: 1 addition & 0 deletions spec/profiles/ttml2-transformation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
<feature value="optional">#length-pixel</feature>
<feature value="optional">#length-positive</feature>
<feature value="optional">#length-real</feature>
<feature value="optional" extends="#length-real">#length-real-version-2</feature>
<feature value="optional">#length-root-container-relative</feature>
<feature value="optional" extends="#length">#length-version-2</feature>
<feature value="optional">#letterSpacing</feature>
Expand Down
25 changes: 24 additions & 1 deletion spec/ttml2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15521,6 +15521,7 @@ subset of the set of named colors specified by <bibref ref="svg11"/>, &sect;4.2.

non-negative-real
: <loc href="#style-value-digit">&lt;digit&gt;</loc>* "." <loc href="#style-value-digit">&lt;digit&gt;</loc>+
| <loc href="#style-value-digit">&lt;digit&gt;</loc>+ "."
</eg>
</td>
</tr>
Expand Down Expand Up @@ -21376,6 +21377,20 @@ feature if it supports the <code>#length-positive</code> feature as defined by <
<p>A TTML content processor supports the <code>#length-real</code>
feature if it supports the <code>#length-real</code> feature as defined by <bibref ref="ttml1"/>, &sect;D.1.50.</p>
</div3>
<div3 id="feature-length-real-version-2">
<head>#length-real-version-2</head>
<p>A TTML <loc href="#terms-transformation-processor">transformation processor</loc> supports the
<code>#length-real-version-2</code> feature if it recognizes and is capable of
transforming the syntax and semantics of real values of the <loc href="#style-value-length">&lt;length&gt;</loc> style value
expression that include all values of the <code>non-negative-real</code> non-terminal expression defined by
<code><loc href="#style-value-non-negative-number">&lt;non-negative-number&gt;</loc></code>.</p>
<p>A TTML <loc href="#terms-presentation-processor">presentation processor</loc> supports the <code>#length-real-version-2</code>
feature if it implements presentation semantic support for values of the <loc href="#style-value-length">&lt;length&gt;</loc> style value
expression as described above.</p>
<p>The <code>#length-real-version-2</code> feature is a syntactic extension of the <code>#length-real</code> feature.</p>
<p>It is an error for a content profile to require or permit use of the <code>#length-real-version-2</code> feature but prohibit use of the
<loc href="#feature-length-real"><code>#length-real</code></loc> feature.</p>
</div3>
<div3 id="feature-length-root-container-relative">
<head>#length-root-container-relative</head>
<p>A TTML <loc href="#terms-transformation-processor">transformation processor</loc> supports the
Expand All @@ -21395,13 +21410,15 @@ expression.
<p>A TTML processor supports the <code>#length-version-2</code> feature if it supports the following features:</p>
<ulist>
<item><p><loc href="#feature-length"><code>#length</code></loc></p></item>
<item><p><loc href="#feature-length-real-version-2"><code>#length-real-version-2</code></loc></p></item>
<item><p><loc href="#feature-length-root-container-relative"><code>#length-root-container-relative</code></loc></p></item>
</ulist>
<p>The <code>#length-version-2</code> feature is a syntactic and semantic extension of the
<loc href="#feature-length"><code>#length</code></loc> feature.</p>
<p>It is an error for a content profile to require or permit use of the <code>#length-version-2</code> feature
but prohibit use of any of the following features:
<loc href="#feature-length"><code>#length</code></loc> or
<loc href="#feature-length"><code>#length</code></loc>,
<loc href="#feature-length-real-version-2"><code>#length-real-version-2</code></loc>, or
<loc href="#feature-length-root-container-relative"><code>#length-root-container-relative</code></loc>.</p>
</div3>
<div3 id="feature-letterSpacing">
Expand Down Expand Up @@ -23526,6 +23543,12 @@ is optional (O), for a TTML <loc href="#terms-content-processor">content process
<td css="text-align:center;">O</td>
</tr>
<tr>
<td><loc href="#feature-length-real-version-2"><code>#length-real-version-2</code></loc></td>
<td css="text-align:center;">2</td>
<td css="text-align:center;">O</td>
<td css="text-align:center;">O</td>
</tr>
<tr>
<td><loc href="#feature-length-root-container-relative"><code>#length-root-container-relative</code></loc></td>
<td css="text-align:center;">2</td>
<td css="text-align:center;">O</td>
Expand Down