NSAccessibilityListItemPrefixTextAttribute for non-standard Unicode characters
NSAccessibilityListItemPrefixTextAttribute for non-standard Unicode characters
- Subject: NSAccessibilityListItemPrefixTextAttribute for non-standard Unicode characters
- From: Charlie Powell <email@hidden>
- Date: Tue, 27 Oct 2015 23:34:43 +0000
- Thread-topic: NSAccessibilityListItemPrefixTextAttribute for non-standard Unicode characters
- X_v_e_cd: e510f8f286cec55cd3ff5af7122f7d68
- X_v_r_cd: 057ca98db72a7dac10df5d5ef619fc14
Has anyone played around with this new attribute in El Capitan? I've been able to successfully add support for the various list attributes, and it seems to work for the most part.
The "documentation" for this attribute (which simply lives in NSAccessibilityConstants.h) says that for *common* Unicode characters, just return the character, and other things like images should have a label describing the image. But what are we supposed to do for *uncommon* Unicode characters? For example, I have the Wingdings font which uses the private Unicode range for certain characters, one of which is 0xF04A to represent a smiley face. The app will know to convert that to 0x4A since that's the character code for the symbol in the Wingdings. However, creating a string with this data, VoiceOver reads it as 'J' which has the standard Unicode value of 0x4A.
Since this attribute apparently takes an NSAttributedString, I tried setting the font name attribute on the string to Wingdings, but that didn't help. Does anyone know if there's something I'm missing? Or perhaps this is just a limitation of the API, in which case I'll make sure a radar gets filed.
_______________________________________________
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