Skip to content
Prev 9001 / 12125 Next

[R-pkg-devel] Screen reader help request

Hello again Duncan,

I could see the two successes were <img> ... </img> creations and that the others weren't.

I worry though that in searching for a solution, you need to end up with something that is as simple for authors as what little effort is needed for fig.alt; having looked at the HTML, I'd rather know what is happening at the Rmd file stage and how anything created there gets passed on.

IMO:  Your reflections on the content of the tags is bang on target. In a perfect world, this is where authors' efforts should be, not on the technical "how do I get that done" aspects.

I suspect that fixing the toolkit is necessary. A demonstration that a problem can be solved is often a first step in creating access. Furthermore, this is not a problem unique to your single document. Other authors will want to use the same tools which you are demonstrating.

Alt tags are a perfect demonstration of access that does not impinge on everyone who doesn't need that feature. Use of fig.cap (initially) and latterly fig.alt to provide the access was done at the toolkit level, and it cannot get any easier for authors. That maximises the chances that authors do then turn to the content of the tags.

I'm happy to assist on projects that lead to positive improvements under the hood that ultimately create access without authors having to become experts in providing access.

We might take the testing off list, but keep the discussion of access on list.

Jonathan


-----Original Message-----
From: Duncan Murdoch <murdoch.duncan at gmail.com> 
Sent: Saturday, 18 March 2023 12:20 pm
To: Jonathan Godfrey <A.J.Godfrey at massey.ac.nz>; R Package Development <R-package-devel at r-project.org>
Subject: Re: [R-pkg-devel] Screen reader help request

Thanks very much for your response.

The two images where the tags showed up are regular figures, using lattice and base graphics.  There are also a lot of rgl figures, which have HTML code like this in the source .html file:

   <div id="rgl61108" style="width:480px;height:296.662546353523px;" 
class="rglWebGL html-widget "></div>

(Looks like I should think about rounding the height value!)

All the interesting stuff (including the alt tags) is added within the div by Javascript that runs after the page is loaded.  The fact that it didn't show up in your reader indicates to me that either it needs to be there before the Javascript runs, or that I put the text in the wrong place.  I'll try a few variations on the code and hopefully find something that works.

Your comments about the content of the tags was also very helpful.  I am imagining that there are at least two groups of readers who might make use of them:

   - readers who would skip over the graphics completely, but who would be helped by knowing what they missed.

   - readers who can get information from the graphics but only with an effort, so they would want to know where to apply that effort.

For the document I posted, there might not be very many people in either group, but I'm hoping to make the package useful to others, who would be writing documents with different audiences.

Duncan Murdoch
On 17/03/2023 5:18 p.m., Jonathan Godfrey wrote: