Re: attributedName on UIAccessibilityCustomAction
Re: attributedName on UIAccessibilityCustomAction
- Subject: Re: attributedName on UIAccessibilityCustomAction
- From: Chris Fleizach <email@hidden>
- Date: Mon, 12 Feb 2018 09:11:45 -0800
You can use some of the following speech attributes
/*
Accessibility Speech Attributes
The following attributes can be used in an NSAttributedString to modify how
an assistive technology like VoiceOver will pronounce the string.
*/
// Use an NSNumber with a YES or NO value.
// If YES, then all punctuation will be spoken (e.g. when displaying code).
// If NO, then no punctuation will be spoken.
// By default, if this attribute is not present, the user's settings will be
used.
UIKIT_EXTERN NSString *const UIAccessibilitySpeechAttributePunctuation
NS_AVAILABLE_IOS(7_0);
// Use an NSString with a BCP-47 language code to identify the language of a
segment of a string.
UIKIT_EXTERN NSString *const UIAccessibilitySpeechAttributeLanguage
NS_AVAILABLE_IOS(7_0);
// Use an NSNumber with a value between [0-2] that specifies the pitch.
// For example, you may want to lower the pitch when an object is deleted, or
raise the pitch if an object is inserted.
// Default value == 1.0f.
UIKIT_EXTERN NSString *const UIAccessibilitySpeechAttributePitch
NS_AVAILABLE_IOS(7_0);
// The corresponding value for this key should be a NSNumber with a YES or NO
value.
// If YES, then this announcement will be queued behind existing speech; if NO,
then it will interrupt existing speech.
// Default behavior is to interrupt existing speech.
UIKIT_EXTERN NSString *const UIAccessibilitySpeechAttributeQueueAnnouncement
NS_AVAILABLE_IOS(11_0);
// Use an NSString, containing International Phonetic Alphabet (IPA) symbols.
// Controls the pronunciation of a word or phrase, e.g. a proper name.
UIKIT_EXTERN NSString *const UIAccessibilitySpeechAttributeIPANotation
NS_AVAILABLE_IOS(11_0);
> On Feb 12, 2018, at 9:06 AM, Matt Pennig <email@hidden> wrote:
>
> I see that UIAccessibilityCustomAction has an attributedName property, and
> I’m curious what its purpose is. Does VoiceOver read an attributed string
> differently than a plain string?
>
> [matt]
> _______________________________________________
> 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
_______________________________________________
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