Thanks Pablo,
I don’t understand how to do this.
The following compiles, but I don’t think the label made it into the pdf.
\enabledirectives [backend.usetags=crap]
\setuptagging[state=start]
\setupstructure[state=start]
\setupbackend
[format=PDF/A-3a,
intent=sRGB IEC61966-2.1,
level=0]
\setupbackend[format=pdf/ua-1]
\starttext
\startformula[label=e to the power of parenthesis pi times i end parenthesis
plus 1 equals 0]
e^{\pi i}+1 =0
\stopformula
\stoptext
I would prefer not to have to type out the text of hundreds of formulas because
ConTeXt does already a pretty good job of converting formulas into (machine)
readable text.
What I would like to work is something like
\enabletrackers[math.textblobs]
\setupnote
[mathnote]
[location=tag]
\starttext
\startformula
e^{\pi i}+1 =0
\stopformula
\stoptext
so that the output of the tracker is used as a tag for the formula.
Thanks,
Matthias
> On Apr 15, 2025, at 11:39 AM, Pablo Rodriguez via ntg-context
> <[email protected]> wrote:
>
> On 4/11/25 18:44, Matthias Weber wrote:
>> [...]
>> The best way(while waiting) seems to be to provide two documents, where
>> the accessible version replaces all images with text that I write, and
>> all formulas with the text that Mikael’s example produces. So my question
>> is just this: how do I make that automatic: have all formulas replaced
>> by a text that reads like a spoken formula?
>
> Sorry for the late comment, but I think an easier solution is adding
> label to provide alternative texts in formulas.
>
> This is required in PDF/UA-1 and afaIk not forbidden in PDF/UA-2.
>
> So, there would be no need to generate an accesible and non-accesible
> version of each document.
>
> Pablo
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________