• 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: Coercing ligatures to expanded characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coercing ligatures to expanded characters


  • Subject: Re: Coercing ligatures to expanded characters
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 14 Jan 2017 23:15:30 +1100

On 14 Jan 2017, at 10:56 pm, Shane Stanley <email@hidden> wrote:

It counts grapheme clusters, but that doesn't mean it doesn't use NSString (probably CFString). There's no reason they can't be using CFString and the equivalent of -enumerateSubstringsInRange:: with NSStringEnumerationByComposedCharacterSequences.

I should have kept reading further down the 10.6 Release Notes:

character elements are now counted using CFStringGetRangeOfComposedCharactersAtIndex. This mostly matches the 10.5 behavior of counting grapheme clusters, but counts a CR-LF (\r\n) sequence as two separate characters, as it did in 10.4 and earlier, not one.

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Coercing ligatures to expanded characters (From: has <email@hidden>)
 >Re: Coercing ligatures to expanded characters (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Coercing ligatures to expanded characters
  • Next by Date: Re: Finder Renaming Unpleasant Surprise
  • Previous by thread: Re: Coercing ligatures to expanded characters
  • Next by thread: set theAttachments to theMessage's mail attachments fails when called by a rule
  • Index(es):
    • Date
    • Thread