[comp.sys.mac] HyperCard-hypertext

avjewe@cvl.umd.edu (Andrew V Jewell) (10/06/87)

I've got the basics down for hypertext. Lock the text of a field,
and then in the script of the field do something like 

set textlock to false     -- or is it locktext? I never get it right
click at the clickloc
click at the clickloc
put selection into it
set textlock to true
go to card it of stack "dictionary"

My problem is that I need to get the next and previous word.
"white" would go to one entry, but "white bread" is different and
"egg white" is separate from those two. Ideally I would like to 
wave my hands and instead of "it" I would have ThisWord, LastWord and
NextWord to play around with. To extend my wish list, I would like to
be able to make m own definition of word, rather than using the Apple-
defined delimiters.

Any help for me out there??


P.S. The one-word hypertext I've shown above is (with apologies to S.J.)
insanely great. A compliment to Hypercard that a simple 6-line script 
can do all that.

gardner@prls.UUCP (Robert Gardner) (10/08/87)

In article <2506@cvl.umd.edu> avjewe@cvl.umd.edu (Andrew V Jewell) writes:
>My problem is that I need to get the next and previous word.
>"white" would go to one entry, but "white bread" is different and
>"egg white" is separate from those two. 

You might try separating words like this with option-space (and do
the same in the dictionary). Option-space looks like a space (though
it's wider in some fonts) but doesn't usually cause word-breaking.

Robert Gardner