Skip to content

Conversation

@brucemiller
Copy link
Owner

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) and ltx: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 an ltx: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 to alt-text or long-desc.

Finally, the acmart binding for \Description is 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

…contain accessibility information; Also allow ltx:graphics to contain metadata
…r div, with ids and arrange for parent elements to get aria-labelledby or aria-describedby to point to them; this includes (formerly empty) ltx:graphics
…lt-text, long-desc; arrange for formerly empty ltx:graphics to keep it's accessibility metadata
… ltx:alternate-text,ltx:long-description, and update the test case
@brucemiller brucemiller requested a review from dginev as a code owner December 12, 2025 00:15
@brucemiller brucemiller marked this pull request as draft December 12, 2025 00:16
Copy link
Collaborator

@dginev dginev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no further feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mistaken binding in \Description

3 participants