LaTeXML icon indicating copy to clipboard operation
LaTeXML copied to clipboard

implement actualtext, artifact from recent graphicx

Open xworld21 opened this issue 4 months ago • 14 comments

Fix #2679 more or less as we discussed, but with more care about how the keys interact with each other:

  • if artifact is true, @description is set to empty unless actualtext, alt are present
  • if actualtext and alt are both present, save both as respectively description and aria-description

The latter might be slightly controversial. I played quickly with VoiceOver and it reads both alt and aria-description in sequence, with a proper pause (feels like "actualtext: alt"), which seems reasonable.

We could add a further heuristic that if actualtext and alt are equal, then just @description is enough.

I have added a test with all 8 combinations to clarify the intended semantics.

xworld21 avatar Nov 08 '25 20:11 xworld21