I believe VO only knows about a set of attributes as defined in
NSAccessiblityConstants.h, which is seemingly a subset of everything that
NSAttributedString supports. Apple has been adding attributes there
recently, e.g. the list attributes starting in 10.11.
The constants take the form of NSAccessibilityFooBarTextAttribute, so you
can look for things like NSAccessibilityStrikethroughTextAttribute.
I would love to see support for custom attributes as it would mean we could
support a lot of things without having to wait for new keys to be defined in
the header.
--Charlie
Message: 1
Date: Fri, 26 Aug 2016 11:56:30 +0100
From: Tim Burgess <
email@hidden>
To: Apple <
email@hidden>
Subject: VoiceOver and custom text attributes
Message-ID: <
email@hidden" class="">
email@hidden>
Content-Type: text/plain; charset="utf-8"
Hi,
I have VO set to speak attributes when they change in our custom text
editor, but I don’t hear any of my custom attribute values being announced
as I cursor over the transition point. If I change VO’s configuration to
issue a sound when attributes change I hear a beep at the appropriate point,
so there’s definitely something happening in my text.
Is VoiceOver limited to reading a set of standard attributes (e.g. bold,
italic, etc.), or should it be able to cope with custom attributes?
Best wishes.
Tim Burgess