Ignoring Smart Quotes
Ignoring Smart Quotes
- Subject: Ignoring Smart Quotes
- From: Simon Topliss <email@hidden>
- Date: Thu, 2 Oct 2008 16:32:30 +0100
Hi,
I was hoping that 'ingoring…" something would let me evaluate text
that contains smart quotes against regular hyphens would let me test
to equality of a Unicode text string.
However, this code evaluates to false.
set t1 to "Apple's" -- regular hyphen (ASCII #39 Unicode 0027)
set t2 to "Apple’s" -- U+2019 (8217)
ignoring punctuation and diacriticals
t1 = t2
end ignoring
Does anyone have any code snippets that would help or recommend
another approach.
Simon
_______________________________________________
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