Let's say I have the following sentence in HTML:
<p>Please enter your licence number</p>
The screen-reader mis-pronounces the word 'licence' as "liss-ens" (phonetic spelling). It should be pronounced "lice-ens" (phonetic spelling).
I want to fix this by providing a phonetic spelling to the screen-reader, while having the text visually appear the same.
I could use <span>
s, aria-
attributes and styling as follows:
<p>Please enter your <span aria-hidden="true">licence</span><span style="position: absolute; left: -10000em;">license</span> number</p>
This works well enough, except that the screen-reader (I'm testing with VoiceOver on MacOS) pauses when it gets to the first span, forcing me to press [VO]+[Right Arrow] to advance to the next word:
"Please enter your" ... [VO]+[Right Arrow] ... "lice-ens" ... [VO]+[Right Arrow] ... "number"
I want the screen-reader to read out the sentence smoothly without pausing.
Is this possible? Or should I not be trying to control this?
... licence ...
` is pronounced phonetically correct using VoiceOver on OSX, iOS, and TalkBack on Android in my environments (set to UK English). Personally I wouldn't correct/hack pronunciation. What you _think_ you've fixed for one environment is likely to be wrong in another, unless you have the luxury to test it across all platforms using differing AT Tools, and language settings. If a sight impaired user doesn't understand the spoken word then AT Devices/ Screen Readers typically provide tools to spell the word character by character which helps to disambiguate. – RobC Apr 19 '17 at 11:06