• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: In-line language changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >In-line language changes (From: Scott McCormack <email@hidden>)
 >Re: In-line language changes (From: Chris Fleizach <email@hidden>)
 >Re: In-line language changes (From: Scott McCormack <email@hidden>)

  • Prev by Date: Re: In-line language changes
  • Next by Date: accessibilityLabel for app name?
  • Previous by thread: Re: In-line language changes
  • Next by thread: accessibilityLabel for app name?
  • Index(es):
    • Date
    • Thread