generation of checked/unchecked and other words
generation of checked/unchecked and other words
- Subject: generation of checked/unchecked and other words
- From: Ricky Sharp <email@hidden>
- Date: Tue, 5 Sep 2006 13:09:11 -0500
Where does VoiceOver obtain phrases such as "checked" and "unchecked"
for checkboxes?
For example, in the Sound prefs panel (Mac OS X 10.4.7), there's a
checkbox:
[ ] Mute
Acc Inspector shows (among other things), these attributes:
AXRole: "AXCheckbox"
AXRoleDescription: "check box"
AXValue: "0"
AXDescription: "output volume mute"
Anyhow, when VoiceOver speaks this checkbox, it produces:
"Mute<pause>unchecked check box" where <pause> is a longer break in
the speech (as compared to the normal pause/silence between words>.
It appears as if the word "unchecked" or "checked" do not come from
any attributes. My guess is that VoiceOver is modifying the role
description before speaking. Is that correct?
For my custom list object, I want to have items be spoken as either
"<title> list item" or "<title> selected list item". The only way
I've found to do this was to conditionally build up my role description:
else if ([anAttribute
isEqualToString:NSAccessibilityRoleDescriptionAttribute])
{
if ([self state] == NSOnState)
theValue = @"selected list item";
else
theValue = @"list item";
}
I've looked at code examples, but I cannot find any that need to
provide state info into what is spoken by VoiceOver.
Note that if I just build up an AXDescription myself, I do not get
the longer <pause> at the right place. For example, I get this:
"<title> selected<pause>list item" or even this run-on sentence
"<title> selected list item"
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden