I have been tasked with marking up a document whose visual headings have been authored something like:
- Our paper discussing a variety of 2022 XYZ efforts
- XYZ in 2022 within the fine arts sector
- XYZ's 2022 progress in the fine arts sector summarized
- Results of XYZ's 2022 progress by individual genre
- Fine arts sector progress at XYZ within the craftsman movement
- Fine arts sector progress at XYZ within the impressionist movement
- Fine arts sector progress at XYZ within the postrecessional movement
- XYZ in 2022 within the science sector
- XYZ's 2022 progress in the science sector summarized
- Results of XYZ's 2022 progress by individual branch
- Science sector progress at XYZ within the chemistry field
- Science sector progress at XYZ within the biology field
- Science sector progress at XYZ within the phlogistonomy field
- XYZ in 2022 within the advanced research sector
- XYZ's 2022 progress in the research sector summarized
- Results of XYZ's 2022 progress by endeavor
- Research sector progress at XYZ within the public transit space
- Research sector progress at XYZ within the quantum photonics space
- Research sector progress at XYZ within the renewable mining space
- XYZ in 2022 within the fine arts sector
My concern is that the way the headings are worded will make them tedious to navigate via screen reader. For example if I want to jump to the "impressionist movement" section I will have to listen to lots of repeated "XY within fine arts results" prefixes ahead of the actual info distinguishing each heading from the other.
This is not my content and I am not allowed to change the headings, nor will the authors. However, I have been given permission to adjust the markup so as to present a modified semantic "outline" view that differs from the visual one. Feedback welcome, but I think an outline like the following would be more useful to someone navigating by screen reader:
- Our paper discussing a variety of 2022 XYZ efforts
- Fine arts sector at XYZ in 2022
- Summary of XYZ's 2022 progress
- Results by individual genre
- craftsman movement
- impressionist movement
- postrecessional movement
- Science sector at XYZ in 2022
- Summary of XYZ's 2022 progress
- Results by individual branch
- chemistry field
- biology field
- phlogistonomy field
- Advanced research at XYZ in 2022
- Summary of XYZ's 2022 progress
- Results by endeavor
- public transit space
- quantum photonics space
- renewable mining space
- Fine arts sector at XYZ in 2022
My question is, how do I accomplish this in a way that real-world screenreading utilities will pick up?
If I simply take each heading like:
<h4>Fine arts sector progress at XYZ within the impressionist movement</h4>
And add an aria-label
with the shortened version like:
<h4 aria-label="impressionist movement">Fine arts sector progress at XYZ within the impressionist movement</h4>
Will that be an effective and appropriate solution? Is there a way I can test the results using something built into the OS like VoiceOver or ChromeVox, or do the paid utilities like JAWS behave quite a bit differently in this regard?