gpt4 book ai didi

html - 电话号码和屏幕阅读器

转载 作者:太空狗 更新时间:2023-10-29 13:29:14 29 4
gpt4 key购买 nike

是否有一种标准方法可以让屏幕阅读器拼出数字?

我目前正在使用 NVDA 和 Firefox,电话号码如下

<p>01234 567890</p>

这是读作

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

这让听众很困惑。我想要某种方式来指定屏幕阅读器应该像这样拼出数字

Zero one two three four five six seven eight nine zero

最佳答案

也许是 speak-numeral样式表中的属性?

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.

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

此外,我发现这篇文章很有帮助: 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”.

进一步

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

关于html - 电话号码和屏幕阅读器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21832888/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com