简体   繁体   English

如何使JAWS屏幕阅读器阅读标题文件,逐字逐句而不是句子阅读?

[英]how to make JAWS screen reader to read the title document to read separately letter by letter instead of sentence?

I am using the title element to update the document title and using JAWS reader to read the page. 我使用title元素更新文档标题并使用JAWS阅读器阅读页面。 Facing issue with the way it is reading the title of the document. 面对它正在阅读文档标题的方式的问题。 Below is my code to update the title attribute 下面是我更新title属性的代码

var _doctit = "MY TITLE";
document.title = "ISL - " + _doctit;

I am sitting through JavaScript, in screen reading like "IS"+L. 我坐在JavaScript中,在屏幕阅读中像“IS”+ L。 But I want to make this to read as IS L. I tried with space/ dot means it works, but I cannot set the title like that with space /dot. 但是我想让它读作IS L.我尝试使用空格/点表示它可以工作,但是我不能用空格/点设置标题。 Anyone please help me with this. 有人请帮帮我。

So you want the page title read as "ISL" but visually you need it to show "ISL"? 所以你希望页面标题读作“ISL”,但在视觉上你需要它来显示“ISL”?

Unfortunately, you can't fix it. 不幸的是,你无法解决它。 If this were an element on the page and not the title, then you could use an aria-label or visibly hidden text to force a certain pronunciation, such as 如果这是页面上的元素而不是标题,那么您可以使用aria-label或明显隐藏的文本来强制某个发音,例如

<h1 aria-label="I S L - my title">ISL - my title</h1>

or 要么

<p><span aria-hidden="true">ISL</span><span class="sr-only">I S L</span> - my title</p>

(See What is sr-only in Bootstrap 3? ) (请参阅Bootstrap 3中什么是sr?

But the <title> element does not allow any aria attributes and the contents of the <title> can only be text. <title>元素不允许任何aria属性, <title>的内容只能是文本。

Screen reader users are used to things being mispronounced. 屏幕阅读器用户习惯于错误发布的事情。 Normally they can navigate letter by letter themselves using the left/right arrow keys while in virtual pc cursor mode, but for the page title, you don't have that option. 通常,在虚拟电脑光标模式下,他们可以使用左/右箭头键逐字导航,但对于页面标题,您没有该选项。

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

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