JKvr
JKvr

Reputation: 649

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?

Upvotes: 8

Views: 1332

Answers (3)

Juli
Juli

Reputation: 81

<span role="text" aria-label="Watt">W</span>;

Upvotes: 8

Jared
Jared

Reputation: 39877

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.

Upvotes: 5

Prof. Falken
Prof. Falken

Reputation: 24867

Spell out Watt, but make "att" the same color as the background text. Or if you can select which parts should be read out loud, write the text again somewhere else (hidden) but with "Watt" in it instead and read that instead.

Upvotes: 0

Related Questions