-
Notifications
You must be signed in to change notification settings - Fork 17
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
Deprecate ittm:altText #290
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem with the basic content, but quite a few editorial comments/questions.
@@ -67,6 +67,7 @@ | |||
.equation {text-indent: 10%;} | |||
.example {font-size: small} | |||
.inline-note {font-size: small} | |||
.deprecation {background-color: yellow; color:red; border: 2px solid darkred;} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if there's a W3C normal style for deprecation styling but TTML2 has used an orange background with black text. It'd be good to be consistent if possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to the editorial task list, i.e. I would rather not block this PR until we solve this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just done a quick scan of HTML5.2, CSS Speech and XSD 1.1 and there does not appear to be a consistent standard for marking deprecations. I also reviewed this style in comparison with the TTML2 one, and this is certainly clearer, though in a sense it looks like it is not part of the spec!
It also has a specific problem that the text is too close to the border especially on the left edge.
I don't mind if you want to open a separate issue for getting the deprecation styling right.
imsc1/spec/ttml-ww-profiles.html
Outdated
@@ -2474,6 +2492,9 @@ <h4>itts:forcedDisplay</h4> | |||
<section id='ittm-altText'> | |||
<h4>ittm:altText</h4> | |||
|
|||
<p class="deprecation">The <code>ittm:altText</code> element is intended to be removed from future revisions of this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not enjoying the passive grammar of this - I'd prefer "The TTWG intends to remove the ittm:altText
element from future revisions of this specification".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be best to have single definition of "deprecated" in the "document convention" section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That'd work for me.
imsc1/spec/ttml-ww-profiles.html
Outdated
@@ -2474,6 +2492,9 @@ <h4>itts:forcedDisplay</h4> | |||
<section id='ittm-altText'> | |||
<h4>ittm:altText</h4> | |||
|
|||
<p class="deprecation">The <code>ittm:altText</code> element is intended to be removed from future revisions of this | |||
specification. The <code>altText</code> named metadata item provides equivalent semantics.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest changing "metadata item provides" to "metadata item (ttm:item
) provides".
imsc1/spec/ttml-ww-profiles.html
Outdated
<section id="altText"> | ||
<h4><code>altText</code> named metadata item element</h4> | ||
|
||
<p>A <code>altText</code> named metadata item element SHALL NOT be present in a <a>Document Instance</a> if any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we be even more explicit that we are talking about ttm:item name="altText"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
altText
named metadata item is the terminology used by TTML2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK maybe I should raise an issue there too. Happy to hear other views before making this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes sense to keep it this way as long TTML2 does the same. If it changes in TTML2 it could also be changed in IMSC 1.1 on the basis of a new issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TairT what's your view on which approach is better, assuming we take the same approach in both specs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not have a strong view on this but here are some thoughts:
-
To use the term "named" with element may be confusing as the element has a local name ("item"). Therefore it may be better to just say "named metadata item". This terminology is used in TTML2. Only once it is called "named metadata item element". This should be corrected in TTML2.
-
"Named metadata item" is defined in TTML2, so it can/should be used in IMSC. It makes sense to establisch a convention and I think "[name of item] named metadata item is better than "ttm:item name="altText" (especially if you do not read it but speak about it).
-
As ittm:alt has an example, an example with ttm:item may help to ease transition. I won't mind if this would be added on the basis of a seperate github issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's a request to change "named metadata item element" to "named metadata item".
OK I'm not sure it's really clear but I'm happy to go with my take on your points above @TairT , that we can use "altText named metadata item".
desired.</p> | ||
|
||
<p>A <code>ittm:altText</code> element SHALL NOT be present in a <a>Document Instance</a> if any <code>altText</code> named | ||
metadata item element is also present.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, I'd like to be explicit that we are talking about "ttm:item name="altText"
.
imsc1/spec/ttml-ww-profiles.html
Outdated
@@ -4189,6 +4227,9 @@ <h3>#forcedDisplay</h3> | |||
<section class='appendix'> | |||
<h3>#altText</h3> | |||
|
|||
<p class="deprecation">This feature is intended to be removed from future revisions of this specification. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, I'd prefer an active construction describing that TTWG intends this rather than the passive construction here.
imsc1/spec/ttml-ww-profiles.html
Outdated
|
||
<td>Deprecated in <a>Image Profile</a> only. This feature was erroneously designated as permitted in the [[ttml-imsc1.0.1]] Image Profile.</td> | ||
<td>This feature is replaced by the <code>altText</code> named metadata item element.</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the replacement of a feature be expressed in terms of a feature designator? If we are specifying the replacement syntax and semantics I would prefer to say "by the ttm:item
metadata element with the name
attribute set to "altText"
".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TTML2 does not specify a feature designator for individual items.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, I see, it's the combination of a feature scoped by a specific item name.
Closes #274