Search code examples
iosuiwebviewaccessibilityvoiceover

Make iOs VoiceOver spell out abbreviated "W" as "Watt"


I'm adding accessibility support to an app where one part of the app is a UIWebView with text information. The text contains abbreviated units such as W for watt, lm for lumen, etc...

The VoiceOver functionality does not by it self recognize the letter W as watt (of course it is hard) and it needs some help.

I know about the html tags and (http://www.w3schools.com/tags/tag_abbr.asp)

Eg.

15 <ABBR title='Watt'>W</ABBR><br>
15 <ACRONYM title='Watt'>W</ACRONYM><br>

Unfortunately they are not recognized by the VoiceOver system.

Does anybody know a way to make this work?


Solution

  • You can test to see if voiceover is active with

    BOOL UIAccessibilityIsVoiceOverRunning();
    

    If it is active write out the html with watt instead of w. As a blind user I question weather expanding the abreviation to a full word is necessary. I ahve no problems with abbreviations like mm, m, and kmf or distance. I assume anyone using the app can tell based on your apps function and context that w is watt.