Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Telephone numbers and screen readers

Is there a standard way to make screen readers spell out numbers?

I am currently using NVDA and Firefox and have the following telephone number

<p>01234 567890</p>

This is read as

Zero one two three four five hundred and sixty seven thousand eight hundred and ninety

This is quite confusing to the listener. I would like some way of specifying that the screen reader should spell out the number like

Zero one two three four five six seven eight nine zero

like image 225
Kevin Brydon Avatar asked Feb 17 '14 15:02

Kevin Brydon


People also ask

What is the proper way to display a phone number?

To format phone numbers in the US, Canada, and other NANP (North American Numbering Plan) countries, enclose the area code in parentheses followed by a nonbreaking space, and then hyphenate the three-digit exchange code with the four-digit number.

How do I display a phone number in the UK?

The UK mobile phone number '07911 123456' in international format is '+44 7911 123456', so without the first zero. Secondly in the E. 164 notation all spaces, dashes ['-'] and parentheses [ '(' and ')'] are removed, besides the leading '+' all characters should be numeric.

How do screen readers work?

A screen reader uses a Text-To-Speech (TTS) engine to translate on-screen information into speech, which can be heard through earphones or speakers. A TTS may be a software application that comes bundled with the screen reader, or it may be a hardware device that plugs into the computer.


2 Answers

Maybe the speak-numeral property in you stylesheet?

The speak-numeral property is used only in Aural Stylesheets.

The aural rendering of a document combines sounds and voices to go through the content of a document. Aural presentation occurs often by converting the document to plain text and then feeding this to a screen reader.

Situations and markets for listening to information could be:

  • for blind people
  • in the car
  • help users learning to read

The speak-numeral property specifies how numerals will be spoken.

Source: http://www.w3schools.com/xslfo/prop_speak-numeral.asp

Also, I found this post helpful: http://www.nicksmith.co.uk/blog/2007/11/09/does-your-screen-reader-read-phone-numbers-properly/

I then came up with the following idea:

0<span>7000</span> 1<span>2</span>1 0<span>2</span>2

In VoiceOver this reads “zero, seven thousand, one, two, one zero, two, two”. Notice I kept the ’7000′ as one number; to me “seven thousand” is more memorable than “seven zero zero zero”.

and further

My research into aural CSS properties found that the property I’d need is already there – ‘speak-numeral: digits;’

like image 150
Kenny Thompson Avatar answered Oct 17 '22 09:10

Kenny Thompson


I don’t know if (or which) screen readers support these, but (in an ideal world) they should.

CSS: Aural

  • CSS 2.1: speak-numeral: digits;

Speak the numeral as individual digits. Thus, "237" is spoken "Two Three Seven".

  • CSS Speech Module (CR): speak-as: digits;

Speak numbers one digit at a time, for instance, "twelve" would be spoken as "one two", and "31" as "three one".

HTML: tel URI

RFC 3996: The tel URI for Telephone Numbers

So instead of

<p>01234 567890</p>

you would have something like

<a href="tel:01234-567890">01234 567890</a>

HTML: Vocabularies

  • FOAF: phone property
  • Schema.org: telephone property
  • Microformats: tel class (hCard)
like image 22
unor Avatar answered Oct 17 '22 09:10

unor