• 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: Scott McCormack <email@hidden>
  • Date: Tue, 04 Jun 2013 16:40:04 -0700

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


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

  • Prev by Date: Re: Accessibility and NSCollectionView
  • Next by Date: Re: In-line language changes
  • Previous by thread: Re: In-line language changes
  • Next by thread: Re: In-line language changes
  • Index(es):
    • Date
    • Thread