[comp.sys.mac.hypercard] Question about "find"

gandalf@apple.com (Martin Gannholm) (01/23/91)

In article <1991Jan20.030529.21660@cbnewsi.att.com> tanju@cbnewsi.att.com 
(tanju.cataltepe) writes:
> ...I want to find i-with-umlaut (hex code $95) it also finds the regular 
i.

  HyperCard tries to be nice about finding what you want, not necessarily 
what you asked for. Therefore, it strips off all diacritical marks from 
letters and in essence treats letters that have the same "base" character 
as identical.

  To solve your problem and getting around this you need to write a script 
that does a find, checks to see if the result is not empty, gets the 
foundChunk and checks the chartonum of the "i" that was found to see if it 
was 149 ($95). Otherwise it should loop back and find again.
  Since there are usually many i's in normal text this could turn out to 
be slow.

Remember, the more text you give HyperCard to find, the faster it will 
find it. 
  For example, if you're looking for "Jack Robinson" HyperCard will find 
it faster if you look for the whole string (or at least "jac rob" than if 
you only look for "jack".

Incidentally, some of the localized versions of HyperCard (e.g. the 
Swedish one) have slightly different rules for which letters are 
considered unique. Here the a-diaresis, a-ring, and o-diaresis are 
distinct from "a" and "o". Info on how one changes the "uniqueness" of 
letters in HyperCard can be gotten by mailing me and requesting it.

Martin Gannholm
Apple Computer

Exclaimer!!!
I never said it...Nobody heard me say it...You can't prove anything!