• 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: Jacob Small <email@hidden>
  • Date: Thu, 12 Jan 2017 13:49:53 -0500

Well, replacing the ligatures appears to me to be the best solution, but I'm not finding anything, so here's the root problem.

The following script is supposed to pull email addresses out of strings:

do shell script "echo '" & (characters of inputString) & "' >" & quoted form of (filepath & "grepTarget.txt")

set theResult to paragraphs of (do shell script "grep -E -o '\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}\\b' " & quoted form of (filepath & "grepTarget.txt"))


this is hanging up on a ligature in the domain name of an email address. Any thoughts on a way to address this?


Sincerely,


Jacob


On Thu, Jan 12, 2017 at 12:39 PM, Jacob M. Small <email@hidden> wrote:
What I'm looking for:

on removeLigaturesFromString(inputStringWithLigatures)
    set stringWithLigaturesRemoved to someFunctionThatReplacesLigatures()
    return stringWithLigaturesRemoved
end removeLigaturesFromString

Jacob M. Small wrote:

I need to find a way to coerce all ligatures out of strings. Does
anyone know a method to do this or have a link to something ready-made?

Sincerely,

Jacob
--
Jacob M. Small, Principal
J. Madison PLC
1750 Tysons Boulevard, Suite 1500
McLean, Virginia 22102
T 703.910.5062 F 703.910.5107
www.jmadisonplc.com

This email may contain confidential information or information
protected by the attorney-client privilege. If you have received this
email by mistake, please notify me and then delete the email.
<https://www.postbox-inc.com/?utm_source=email&utm_medium=siglink&utm_campaign=reach>


Jacob M. Small
January 12, 2017 at 12:28 PM
I need to find a way to coerce all ligatures out of strings. Does anyone know a method to do this or have a link to something ready-made?

Sincerely,

Jacob

--
Jacob M. Small, Principal
J. Madison PLC
1750 Tysons Boulevard, Suite 1500
McLean, Virginia 22102

T 703.910.5062 F 703.910.5107
www.jmadisonplc.com

This email may contain confidential information or information protected by the attorney-client privilege. If you have received this email by mistake, please notify me and then delete the email.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Coercing ligatures to expanded characters
      • From: Steve Mills <email@hidden>
    • Re: Coercing ligatures to expanded characters
      • From: debt <email@hidden>
    • Re: Coercing ligatures to expanded characters
      • From: Denis Boyd <email@hidden>
References: 
 >Coercing ligatures to expanded characters (From: "Jacob M. Small" <email@hidden>)
 >Re: Coercing ligatures to expanded characters (From: "Jacob M. Small" <email@hidden>)

  • Prev by Date: Re: Coercing ligatures to expanded characters
  • Next by Date: Re: Coercing ligatures to expanded characters
  • Previous by thread: Re: Coercing ligatures to expanded characters
  • Next by thread: Re: Coercing ligatures to expanded characters
  • Index(es):
    • Date
    • Thread