diacriticals
These accent characters are ignored in string
comparisons that use an ignoring
diacriticals
...end ignoring
statement block. By default, AppleScript considers diacriticals when
comparing strings.
This AppleScript shows that by default the strings that have
diacritical marks do not return true
when compared
with the same string
without the marks. The result
is reversed when the diacritical
constant is
ignored (hasDiacritical
returns
false
and hasDiacritical2
returns true
):
set hasDiacritical to ("spät is late in German" is equal to "spat is late in German") -- returns false ignoring diacriticals set hasDiacritical2 to ("spät is late in German" is equal to "spat is late in German") -- returns true end ignoring log hasDiacritical -- is false log hasDiacritical2 -- is true because the diacritical in "ä" is ignored