
Hello, Is there an option for \includegraphics to add an alternate text to an image to make it accessible for screen readers? Thanks, Matthias

On 4/3/2025 8:35 PM, Matthias Weber wrote:
Hello,
Is there an option for \includegraphics to add an alternate text to an image to make it accessible for screen readers?
i suppose you mean \externalfigure .. we have \externalfigure[foo.pdf][label=whatever] and i think Pablo tested that with some viewers Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------

Thanks Hans, but no, I mean something like this (from the mailing list and Tagged PDF (2024)): \setupbackend[format=pdf/ua-2] \setuptagging[state=start] \setupstructure[state=start] \setupexternalfigures[location=default] \starttext \startPDFalternativetext {this is a cow}{\externalfigure[cow]} \stopPDFalternativetext \stoptext in order to provide screen readability (but the above doesn’t work, the PDF doesn’t have the alternate text). The background is the following: If I want to use my own texts in class, I have to (by 2026) — either not make them available to my students — or make them accessible — or move/find another job (a serious alternative indeed) Making them accessible means machine readable, which comes with its own problems I loathe. For me this means that all equatiions need to be somehow machine readable (I haven’t yet tried whether the tagging from Tagged PDF (2024)) works for my documents) and to add a reasonably descriptive text to the hundreds of images. My lecture notes run typically 100-200 pages and are rich of illustrations and formulas. From what I can see the only options are tagged PDFs or epubs with mathml. I have little experience with either but will be happy to learn. Any suggestions are most welcome. Thanks! Matthias
On Apr 3, 2025, at 6:51 PM, Hans Hagen via ntg-context
wrote: On 4/3/2025 8:35 PM, Matthias Weber wrote:
Hello, Is there an option for \includegraphics to add an alternate text to an image to make it accessible for screen readers?
i suppose you mean \externalfigure .. we have
\externalfigure[foo.pdf][label=whatever]
and i think Pablo tested that with some viewers
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
participants (2)
-
Hans Hagen
-
Matthias Weber