Re: In-line language changes
Re: In-line language changes
- Subject: Re: In-line language changes
- From: Chris Fleizach <email@hidden>
- Date: Tue, 04 Jun 2013 17:02:12 -0700
I think you may need to specifically return that attributed string as the accessibilityLabel. I think for performance reasons, VoiceOver does not normally serialize the whole attributed string.
Sent from my iPhone
On Jun 4, 2013, at 4:40 PM, Scott McCormack <email@hidden> wrote:
>
> On Jun 4, 2013, at 12:29 PM, Chris Fleizach <email@hidden> wrote:
>
>> I think you can do this
>>
>> [attributedString setAttributeValue:@YES forKey:@"accessibilityLanguage" withRange:range]
>
> Ok first off the accessibilityLanguage setting needs a language not just a YES so here's what I tried:
>
> NSMutableAttributedString *universalHello = [[NSMutableAttributedString alloc] initWithString:@"Hello Hola привет"];
> NSDictionary *accRu = @{@"accessibilityLanguage": @"ru"};
> [universalHello setAttributes:accRu range:NSMakeRange(11, 6)];
> [self.inLineLabel setAttributedText:universalHello];
>
> I did an nslog of my attributed string:
> NSLog(@"%@",universalHello.description);
> and this is what I got back:
> Hello Hola {
> }привет{
> accessibilityLanguage = ru;
> }
>
> So it looks right but VO isn't picking up on the russian attribute and reading gibberish.
>
> What am I missing?
_______________________________________________
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