我来回搜索文档,默认情况下找不到激活激活可访问性功能的方法。仅通过右键单击Mathjax元素打开上下文菜单,然后选择辅助功能->激活。
该文档显示:“扩展名可以通过上下文菜单激活,该菜单本身可以完全访问,或者默认情况下使用配置选项激活。”
但是我找不到如何使用配置激活它的信息。This is the configuration我发现了,那里没有“激活”选项。
我想念什么?
((我正在使用最新的MathJax版本:3.0)
这是我配置MathJax的方式,下面是我得到的上下文菜单,其中可访问性选项未激活。
MathJax = {
tex: {
inlineMath: [['##', '##'], ['\\(', '\\)']]
},
options: {
a11y: {
speech: true,
subtitles: true
}
}
};
在黄色配置选项框的正下方,它显示all of the accessibility options:-
我认为您是在描述中使用a11y
而不是A ccessibilit Y-这是'Accessibility'的numeronym。这与i18n(I nternationalisatio N)
是的,我知道具有讽刺意味的是,这不是很容易获得,他们应该只使用单词!
如果配置了所有选项,则默认情况下它们将处于启用状态,您不需要'激活'-通过包括ally
及其子选项来完成。 (请注意,如果要将其他信息添加到屏幕阅读器输出中,则可能需要使用enrichSpeech: 'shallow'
或enrichSpeech: 'deep'
。)
MathJax = {
options: {
a11y: { //everything within here will be on if you set that item to a 'truthy' statement i.e. speech: true
经过两天的文档研究,我放弃了。我认为默认情况下无法激活辅助功能。我个人认为这很荒谬,因为盲人应该怎么猜,如果屏幕阅读器不阅读它,该如何激活呢?
最终,我要做的是在每个页面的顶部位置隐藏一个div,并提供有关如何激活该插件的说明。我正在使用css向所有用户隐藏该div,并将其暴露给屏幕阅读器,例如所以:
.accessibility_hint{font: 400 12px arial; color: #0e2d6d; background-color: white; position: absolute; left: 50%; margin-left: -55px; top: 0px; padding: 2px 4px; opacity: 0;}
.accessibility_hint:focus, .accessibility_hint:active{opacity: 1; z-index:999;}
the div is here. you'll see it only if you use keyborad navigation to focus on it
<div class=accessibility_hint tabindex=0>[insert textual explanation on how to use keyboard navigation to activate the plug-in]</div>