accessibility

In HTML, how can I have text that is only accessible for screen readers (i.e. for blind people)?

对着背影说爱祢 提交于 2019-12-18 03:52:18
问题 I have a website that has colored divs with numbers, e.g. a red block with the number 2 inside of it. The color is important to understanding. A blind user emailed me asking if I could make it say "2 red" for his screen reader. I tried adding this as an alt="2 red" but he said that didn't do anything. He thinks it might only read alt tags for images. Is there a good way to do this for divs? 回答1: As far as alt text, you are correct, that only works for images.. But you can use aria-label in

Can I dynamically set tabindex in JavaScript?

a 夏天 提交于 2019-12-17 22:37:59
问题 Is there any attribute like tab-index? CONTEXT : I'm making a section in a web form visible or invisible depending on some condition where I want to set the tab-index manually when that particular section is visible. 回答1: document.getElementById("link3").tabIndex = 6; 回答2: Using JQuery we can set tab index dynamically easily Try this code- set the tabindex and increment the variable $(function() { var tabindex = 1; $('input,select').each(function() { if (this.type != "hidden") { var $input =

Tagged PDF with PDFBox

こ雲淡風輕ζ 提交于 2019-12-17 20:47:23
问题 Is it possible to create tagged PDF(PDF/UA) with PDFBox? It looks like PDFBox has an API for that (package org.apache.pdfbox.pdmodel.documentinterchange.taggedpdf ), but I can't find any tutorials or code examples. Using the code below, I generated a PDF file containing an image, and the screen reader NVDA (in my case) recognizes it and reads '... graphic Alternate Description'. However, the accessibility checker PAC 2 shows an error: 'Image object not tagged'. PDDocument doc = new PDDocument

Safari ignoring tabindex

耗尽温柔 提交于 2019-12-17 17:53:14
问题 I have 2 buttons next to a textbox and another textbox after the 2 buttons. The tabindex for the first textbox is 1000, the first button is 1001 and the second button is 1002. The second textbox has a tabindex of 1003. When I press tab, the tabindex works fine in all browsers except for Safari, where it immediately moves from the first textbox to the second textbox although the tabindex has been set properly. Any ideas on how to prevent this issue? 回答1: By default tab-access is disabled in

Mac / Cocoa - Getting a list of windows using Accessibility API

孤者浪人 提交于 2019-12-17 07:29:07
问题 I want to use the Accessibility API to get a list of all windows for a given application (external). The goal is to check if a certain window is open. First I check that the application is running (using [NSWorkspace runningApplications] and checking each one), and then I want to check the title bar text of each window that is open for that application. PS So I can create an element for the app using the PID: AXUIElementRef app = AXUIElementCreateApplication(pid); but what do I do with it? Am

Enable access for assistive devices programmatically on 10.9

偶尔善良 提交于 2019-12-17 05:38:44
问题 I want to enable access for assistive devices programatically on 10.9. On 10.8 and lower I was using following Applescript to enable access for assistive devices: tell application "System Events" if UI elements enabled is false then set UI elements enabled to true end if end tell With 10.9, Apple has moved the accessibility options to System Preferences ➞ Security & Privacy ➞ Privacy ➞ Accessibility. Unlike previous versions of OS X, which used a universal checkbox for all applications, the

Distinguish the keypress and click in Mozilla when NVDA is ON

时光毁灭记忆、已成空白 提交于 2019-12-14 02:38:33
问题 Requirement is to distinguish the keypress and mouse click events in Mozilla browser. The condition is that the Mozilla browser should be able to distinguish the events (click and enter) when the NVDA IS TURNED ON 回答1: If you're only looking to distinguish between Enter/Space press and mouse/pointer press, I would probably go for using both an onclick and an onmousedown . If the onmousedown is fired, I would set a flag, that I would read in the onclick , telling me whether this was actually

event.getSource() returns null Accessibility in android

柔情痞子 提交于 2019-12-14 02:18:52
问题 I try to fill a EditText field by using a accessibility service like DashLane or some other apps which are using accessibility service. I am using an event view focused. When EditText gets focused the event getting started but getSource() returns null. Code: AccessibilityNodeInfo source = event.getSource(); if (source != null) { ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE); ClipData clip = ClipData.newPlainText("label", "TEST DATA");

Should I avoid javascript , jquery, flash, ajax, silverlight if i want to make my site cross platform compatible and screen reader compatible?

风格不统一 提交于 2019-12-14 00:27:04
问题 Should I avoid JavaScript , jQuery, flash, Ajax, Silverlight if i want to make my site cross platform compatible (PC, iPHONE other mobiles, PDA) and Accessible(screen reader compatible)? Should i only use xhtml css with server side language for wider accessibility? and for PC pr MAC i made everything first for Firefox so for mobile which browser should i choose? 回答1: Flash and Silverlight aren't available on the iPhone, and some other mobile devices. jQuery supports screen reader

Android - Preventing TalkBack to read the application Name and current Orientation

做~自己de王妃 提交于 2019-12-14 00:22:16
问题 Problem is I am using TTS to read a long string message when my activity is launched, but TalkBack automatically reads the application name in the middle of it and cuts the long string and is very annoying. I would like to disable the TalkBack read the Application name every time an activity is launched. Removing its android:label attribute is not a viable solution as the application is controlled by someone else and I have no control over it. So, Is there any API that I could call to prevent