I found a workaround: Defining the image as a symbol and using that as “text” 
does not annoy Vera. 


\setupbackend[format=pdf/ua-2]

\setuptagging
 [state=start,
  preset=basic,
  level=2,
        option=interaction,
  comment={Cows}]

\setupexternalfigures[location=default]
\setupinteraction[state=start]
                                
\definesymbol[d-hexo][{\offset[bottomoffset=-.33em]{\externalfigure[cow]
[height=1.33em,
alternativetext={Link to Cow}
]}}]


\starttext

Go to the \goto{\symbol[d-hexo]{}}[url(http://wiki.contextgarden.net)].

\stoptext

Matthias

> On Jan 5, 2026, at 2:46 PM, Matthias Weber <[email protected]> wrote:
> 
> Dear All,
> 
> 
> When using an image as a hyperlink, accessibility breaks. VeraPDF reports:
> 
> Specification: ISO 14289-2:2024, Clause: 8.2.5.20, Test number: 1     
> A link annotation and its associated content shall be enclosed in either a 
> Link or Reference structure element
> 
> Thanks for any help (and a happy New Year)
> 
> Matthias
> 
> 
> 
> \setupbackend[format=pdf/ua-2]
> \setuptagging
> [state=start,
>  preset=basic,
>  level=2,
>       option=interaction,
>  comment={Incidences}]
> \setupexternalfigures[location=default]
> \setupinteraction[state=start]
>                               
> \setupinteraction[state=start]
>                       
> \starttext
> 
> Go to the \goto{\externalfigure[cow][width=.5cm,alternativetext={Link to 
> Cow}]}[url(http://wiki.contextgarden.net)].
> 
> %Go to the \goto{cow}[url(http://wiki.contextgarden.net)].
> 
> \stoptext

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
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
___________________________________________________________________________________

Reply via email to