Accessible alt text for hyperlinks needs to be supported by scripting
With InDesign scripting, it's possible to search for "searchTerms" from one column of a tab-delimited file, then set corresponding hyperlinks from another column. This means I can set hundreds of hyperlinks in just a few minutes. However, it remains impossible to set the hyperlink's alt text with a script — that function isn't scriptable. So either I ignore this important accessibility requirement (not an option), or I still have to manually edit each hyperlink, one at a time, wasting many hours and introducing the possibility of errors on each one.
For example, a document contains hundreds of product numbers or reference numbers, and each one needs to link to a URL. The numbers themselves aren't sufficient to describe what the links lead to; they need alt text. I have a spreadsheet that lists these numbers, their corresponding URLs and their alt text descriptions. I can set the hyperlinks using a script and the spreadsheet, but I can't set the alt text.
-
Martin Fischer
commented
I strongly support this request and would like to extend it to endnotes.
1. Alt text for hyperlinks
Hyperlink alt text has been available in the UI since InDesign 2020 (15.0), but it is still not exposed to scripting, and it is not preserved in IDML/IDMS either. Hyperlinks can be created by script in minutes, but the alt text then has to be entered by hand, link by link. In long documents this costs hours and invites errors. Please add a read/write alt text property to the scripting DOM (ExtendScript and UXP) for hyperlinks, and make sure the value survives an IDML/IDMS round trip.2. Endnote links in both directions, with alt text
Accessible documents need a link from each endnote reference to its endnote and a link back from the endnote to the reference, so that readers using assistive technology can return to where they left the text. Both links need accessible alt text, just like any other hyperlink. Currently these links and their alt text cannot be addressed by script. Books and academic publications often contain hundreds of endnotes, so fixing every link manually in the exported PDF is not a realistic workaround. Please make endnote links in both directions, including their alt text, available in the UI and in the scripting DOM.Accessibility requirements (PDF/UA, WCAG 2.1 AA) are now mandatory for many publishers, e.g. under the European Accessibility Act. Without scripting support for both cases, they cannot be met efficiently in InDesign.