Numbers
Something which is often questioned is how screen‐readers seem to handle things like long reference numbers and phone numbers.
Activity - how NVDA handles different formats
Read the following list of examples with NVDA to hear how they might sound to a user:
- A UTR like 1234567890
- A reference number like 123PX0012345X
- A National Insurance number like QQ123456C
- A telephone number like 01632 960 001
- A currency value like £1500
Whilst some screen‐readers have options for modifying how numbers are read out, NVDA doesn't currently have an easy way of doing this.
Resist the urge to fix
So this might feel less than ideal and you might be tempted to try and “fix” it, but screen‐reader users are used to how these types of content sound and trying to force them to be announced a particular way can have unintended side‐effects.
It's also worth pointing out that users can read these numbers out number-by-number if they want.
Navigating content
It is possible for NVDA users to move word‐by‐word or character‐by‐character when needed.
Activity - reading text
Move to the sentence in the following example.
Once on the sentence, use NVDA + Ctrl + right/left arrow to move word-by-word through the sentence (note if you are using Windows as a VM on a Mac you might need to disable this as a “spaces” switching shortcut in your Mac keyboard settings to allow this).
You can also use the left/right arrow keys by themselves to move character-by-character.
A UTR like 1234567890
Acronyms and abbreviations
Whilst it might be tempting to use the abbr
element along with a title
attribute, like in the following example for UTR, to help screen‐readers with these, there are a few issues with this approach.
Activity - abbreviations
Use NVDA to read the sentence in the following example. It uses an abbr
tag for the UTR, but as you should hear this is not exposed to the user.
Do you know your UTR number?
Even if NVDA did expose the abbreviation by default, there are still issues with this approach:
- this does not help other users in explaining the acronym
- the
abbr
tag is not announced to most assistive technology, including NVDA. Whilst NVDA users can query information about an item, they would need to know to look for it. - you have to hover with a mouse on the acronym to expose the expansion, which is only helpful for some people
- you need to add additional styling to provide affordance to users that an expansion is available, which adds visual noise
It is much better to expand the acronym on first usage so the user is aware of it. Screen‐reader users can then add it to their screen‐reader's vocabulary so they pronounce it correctly.
Other semantic markup
You might think that using the semantic <strong>
and <em>
tags might convey their meaning to screen‐readers - perhaps changing the voice announcement slightly?
Activity - text level semantic tags
Use NVDA to read the sentences in the following example. Try to listen for any differences between the two.
Tulips are a perennial bulb and are very easy to grow.
Tulips are a perennial bulb and are very easy to grow.
As you should be able to hear, there is no difference in how the two paragraphs are announced. What is probably more important is that the common styling for these elements (bold and italics) is not overwritten as screen‐readers can be set to report styling of text.
Whilst using this markup can have visual advantages for users, the meaning is not communicated audibly. That is not to say you should not continue using this markup.
Key takeaway:
In general I recommend you do not make any adjustments for screen‐readers to make content sound different.
Workarounds which try to force a screen‐reader to read in a particular way often have undesirable side‐effects and are not required.