简体   繁体   English

NVDA 不读取缩写标题

[英]NVDA does not read abbr title

My HTML page contains the following line:我的 HTML 页面包含以下行:

<abbr title="World Wide Web Consortium">W3C</abbr>

When reading the page with NVDA screen reader (version 2016.1) it only read "W3C" but never the title.使用 NVDA 屏幕阅读器(2016.1 版)阅读页面时,它只读取“W3C”而从不读取标题。

I tried to find a setting in NVDA to activate the reading of the title attribute but without any luck.我试图在 NVDA 中找到一个设置来激活标题属性的读取,但没有任何运气。 Nothing also on Google about this limitation (last version of NVDA should read titles). Google 上也没有关于此限制的内容(最新版本的 NVDA 应阅读标题)。

I have not tried with any other screen readers like JAWS or Voice Over.我还没有尝试过任何其他屏幕阅读器,如 JAWS 或 Voice Over。

Blind people understand abbreviations like other people .盲人像其他人一样理解缩写 So they do not want to hear the definition of FBI, NASA, W3C each time those abbreviations are spoken.所以他们不想在每次提到这些缩写时都听到 FBI、NASA、W3C 的定义。 (although this can be configured in some screen readers) (虽然这可以在某些屏幕阅读器中配置)

If you think that an abbreviation should be explained, then everyone is concerned, and providing a definition with an abbr tag is a bad idea, because it requires a standard user to hover the term with a mouse.如果你认为一个缩写应该被解释,那么每个人都会关心,提供一个带有abbr标签的定义是一个坏主意,因为它需要标准用户用鼠标悬停该术语。

In fact, the only interest of the abbr tag is to mark semantically an abbeviation, in order to be spell-out for instance.事实上, abbr标签的唯一目的是在语义上标记一个缩写,例如为了拼写。 If you want to explain an abbreviation use full definitions.如果要解释缩写,请使用完整定义。

Bad example : <abbr title="Doctor">Dr</abbr> Martin lives in Lincoln <abbr title="Drive">Dr</abbr>不好的例子<abbr title="Doctor">Dr</abbr> Martin lives in Lincoln <abbr title="Drive">Dr</abbr>

He works for the <abbr title="Worldwide Web Consortium">W3C</abbr>

Good example: Doctor Martin lives in Lincoln Drive很好的例子: Doctor Martin lives in Lincoln Drive

He works for the World Wide Web Consortium (known as the <abbr>W3C</abbr>)

I found this article that clarifies a lot: title attribute and accessibility我发现这篇文章澄清了很多: 标题属性和可访问性

Basically, using title attributes is of no use for screen reader.基本上,使用标题属性对屏幕阅读器没有用。 Instead we should always use hidden text for screen readers (in addition to the title attribute that is still useful for other cases).相反,我们应该始终为屏幕阅读器使用隐藏文本(除了在其他情况下仍然有用的 title 属性)。

For example if you use Bootstrap with the question example:例如,如果您将 Bootstrap 与问题示例一起使用:

<abbr title="World Wide Web Consortium">
  W3C
  <span class="sr-only">World Wide Web Consortium</span>
</abbr>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM