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

Deprecate ittm:altText #290

Merged
merged 6 commits into from
Jan 29, 2018
Merged

Deprecate ittm:altText #290

merged 6 commits into from
Jan 29, 2018

Conversation

palemieux
Copy link
Contributor

Closes #274

@palemieux palemieux added this to the imsc1.1 WD2 milestone Jan 15, 2018
@palemieux palemieux self-assigned this Jan 15, 2018
@palemieux palemieux closed this Jan 15, 2018
@palemieux palemieux reopened this Jan 15, 2018
@palemieux palemieux changed the base branch from master to IMSC1.1 January 15, 2018 17:32
Copy link
Contributor

@nigelmegitt nigelmegitt left a 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;}
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@@ -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
Copy link
Contributor

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".

Copy link
Contributor Author

@palemieux palemieux Jan 16, 2018

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.

Copy link
Contributor

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.

@@ -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>
Copy link
Contributor

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".

<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
Copy link
Contributor

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"?

Copy link
Contributor Author

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

Copy link
Contributor

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.

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.

Copy link
Contributor

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?

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.

Copy link
Contributor

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>
Copy link
Contributor

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".

@@ -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
Copy link
Contributor

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.


<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>
Copy link
Contributor

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" ".

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@palemieux palemieux removed the pr open label Jan 25, 2018
@palemieux palemieux merged commit 6202d3f into IMSC1.1 Jan 29, 2018
@palemieux palemieux deleted the issue-274-deprecate-ittm-altText branch February 9, 2018 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants