Hi Jorj -- on Dec 22 1995 at 18:04, you wrote:
JS> There's a TSE 2.51 out? A patch to 2.50, perhaps?
Dunno about that -- it was 2.51 on the install disks.
DH> I'm trying to change the default wordset....
> The charset I want is
> WordSet = ChrSet(" *-_a-zA-Z0-9")
JS> The asterisk is a special regular expression character, so it may
^^^^^^^^^^^^^^^^^^^^^
Huh?
JS> have to be escaped. The hyphen is a range character, so you're
JS> then saying "any character from * to _ in normal order". Look at
JS> normal order, and you see that means *+,-./:;?@[\]^_ as well as
JS> A-Z and 0-9. Do you really want that? Also, do you really want a
JS> space to be considered part of a word?
I DID want the space. I don't see a definition of "normal order" -- the
example you've given doesn't match MY keyboard! :-)) Can you point me to the
definition so I can try and understand this better?
JS> That would make TSE consider this whole line a single word.
I noticed that! :-( It isn't QUITE what I had in mind! :-))
JS> ChrSet("*\-0-9A-Z_a-z"), where the backslash overrides the
JS> range meaning of the hyphen, and the order is conventional. If you
JS> really want the space, stick it in before the star.
That works quite well, but adding the space seems to override the A-Za-z --
TSE finds ONLY the spaces between words!
It's certainly closer to what I wanted, and I'm closer to understanding it --
thanks!
Cheers... Dallas
--- timEd/386 1.10+
---------------
* Origin: The BandMaster, Vancouver CANADA [604 266-7754] (1:153/715)
|