Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR defines & uses two new metadata elements,
ltx:alternate-text(for alternate or replacement text for things that may be undisplayable, or not easily understood when they are) andltx:long-description(for detailed descriptions of what an object, especially a figure or image, contains; in contrast to a caption which may focus more on the source or purpose). These are typically useful for accessibility, and may be spoken or displayed by a user agent under certain circumstances. This metadata is now also allowed within anltx:graphics, which was formerly an empty element.The XSLT transforms to HTML arrange for these to be stored but not displayed, and their parent (typically the figure or image) points to them via either
aria-labelledby or aria-describedby(but these are not overwritten if they've already been set). For JATS, these are converted toalt-textorlong-desc.Finally, the
acmartbinding for\Descriptionis updated & simplified to use this approach, along with the test case output.Would appreciate feedback from @dginev and @xworld21; I think #2684 can be easily updated to use this approach, and it even easy if there's ever a "long description" keyword added to
\includegraphics.Fixes #2638
Closes #2666