fuzzy searching of a dictionary or use of word names w/ spaces
  Home FAQ Contact Sign in
comp.lang.forth only
 
Advanced search
POPULAR GROUPS

more...

comp.lang.forth Profile…
 Up
fuzzy searching of a dictionary or use of word names w/ spaces         


Author: Jeff Fox
Date: Nov 29, 2006 19:01

Besides the old SavvyPC software does anyone know of Forth systems
either with
fuzzy dictionary searches or that allow the use of spaces in word names?
34 Comments
Re: fuzzy searching of a dictionary or use of word names w/ spaces         


Author: Andreas Kochenburger
Date: Nov 29, 2006 23:44

On 29 Nov 2006 19:01:32 -0800, "Jeff Fox" ultratechnology.com>
wrote:
>Besides the old SavvyPC software does anyone know of Forth systems
>either with
>fuzzy dictionary searches or that allow the use of spaces in word names?

What do you mean by fuzzy? Regexp dictionary searching?
Unorthodoxly organized namespaces?
As for spaces in names, I once extended CREATE to replace _underscores
by spaces in the header. That was the simplest way.

Andreas
-------
1 + 1 = 3, for large values of 1.
10 Comments
Re: fuzzy searching of a dictionary or use of word names w/ spaces         


Author: Anton Ertl
Date: Nov 30, 2006 05:49

"Jeff Fox" ultratechnology.com> writes:
>Besides the old SavvyPC software does anyone know of Forth systems
>either with
>fuzzy dictionary searches or that allow the use of spaces in word names?

Gforth can have any character in word names, including spaces.
However, you cannot use the usual parsing words for dealing with such
words, but have to pass the string on the stack. E.g.,:

s" a b" nextname create ok
words
a b disasm disassembler base-addr show-name default-32bit default-16bit
...
s" a b" find-name .s <1> 1075487920 ok
name>int execute . 1075487944 ok

- anton
no comments
Re: fuzzy searching of a dictionary or use of word names w/ spaces         


Author: Aleksej Saushev
Date: Nov 30, 2006 06:30

Jerry Avins ieee.org> writes:
> DOS has a character that prints as a space but isn't $20. IIRC,
> it is $FF. I used to make directories inaccessible by appending
> one or more to the end of their visible names. (A file extension
> would reveal it.) Some word-processing fonts have a non-breaking
> space. I think all fonts would benefit from one.

It is very bad idea. If you wish such a thing, choose the code
for it <=7F, do not touch anything from 80...FF range.
7 Comments
Re: fuzzy searching of a dictionary or use of word names w/ spaces         


Author: Brad Eckert
Date: Nov 30, 2006 07:07

Jeff Fox wrote:
> Besides the old SavvyPC software does anyone know of Forth systems
> either with
> fuzzy dictionary searches or that allow the use of spaces in word names?

What's the fuzzy dictionary search for? So the Forth will accept
misspelled words? That would be great, given the spelling proficiency
of the typical programmer. You could pop up a "Did you mean this?"
message instead of aborting with "???".

I think SEARCH-WORDLIST and FIND don't care about spaces, but putting
spaced names in a wordlist looks implementation dependent.

Brad
no comments
Re: fuzzy searching of a dictionary or use of word names w/ spaces         


Author: Jerry Avins
Date: Nov 30, 2006 08:18

Aleksej Saushev wrote:
> Jerry Avins ieee.org> writes:
>
>> DOS has a character that prints as a space but isn't $20. IIRC,
>> it is $FF. I used to make directories inaccessible by appending
>> one or more to the end of their visible names. (A file extension
>> would reveal it.) Some word-processing fonts have a non-breaking
>> space. I think all fonts would benefit from one.
>
> It is very bad idea. If you wish such a thing, choose the code
> for it <=7F, do not touch anything from 80...FF range.

Since DOS ignores parity, $7F and $FF are the same in essence. It is an
escape sequence in some text processors. In HTML, .

Jerry
--
Engineering is the art of making what you want from things you can get.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
6 Comments
Correction: fuzzy searching of a dictionary or use of word names         


Author: Jerry Avins
Date: Nov 30, 2006 08:37

Jerry Avins wrote:
> Aleksej Saushev wrote:
>> Jerry Avins ieee.org> writes:
>>
>>> DOS has a character that prints as a space but isn't $20. IIRC,
>>> it is $FF. I used to make directories inaccessible by appending
>>> one or more to the end of their visible names. (A file extension
>>> would reveal it.) Some word-processing fonts have a non-breaking
>>> space. I think all fonts would benefit from one.
>>
>> It is very bad idea. If you wish such a thing, choose the code for it
>> <=7F, do not touch anything from 80...FF range.
>
> Since DOS ignores parity, $7F and $FF are the same in essence. It is an
> escape sequence in some text processors. In HTML, .

Correction:  .
--
Engineering is the art of making what you want from things you can get.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
1 Comment
Re: fuzzy searching of a dictionary or use of word names w/ spaces         


Author: Jerry Avins
Date: Nov 30, 2006 08:39

Jerry Avins wrote:
> Aleksej Saushev wrote:
>> Jerry Avins ieee.org> writes:
>>
>>> DOS has a character that prints as a space but isn't $20. IIRC,
>>> it is $FF. I used to make directories inaccessible by appending
>>> one or more to the end of their visible names. (A file extension
>>> would reveal it.) Some word-processing fonts have a non-breaking
>>> space. I think all fonts would benefit from one.
>>
>> It is very bad idea. If you wish such a thing, choose the code for
it <=7F, do not touch anything from 80...FF range.
>
> Since DOS ignores parity, $7F and $FF are the same in essence. It is
an escape sequence in some text processors. In HTML, .

Correction:   .
--
Engineering is the art of making what you want from things you can get.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
no comments
Re: fuzzy searching of a dictionary or use of word names w/ spaces         


Author: Coos Haak
Date: Nov 30, 2006 08:44

Op Thu, 30 Nov 2006 11:18:03 -0500 schreef Jerry Avins:
> Aleksej Saushev wrote:
>> Jerry Avins ieee.org> writes:
>>
>>> DOS has a character that prints as a space but isn't $20. IIRC,
>>> it is $FF. I used to make directories inaccessible by appending
>>> one or more to the end of their visible names. (A file extension
>>> would reveal it.) Some word-processing fonts have a non-breaking
>>> space. I think all fonts would benefit from one.
>>
>> It is very bad idea. If you wish such a thing, choose the code
>> for it <=7F, do not touch anything from 80...FF range.
>
> Since DOS ignores parity, $7F and $FF are the same in essence. It is an
> escape sequence in some text processors. In HTML, .
Show full article (0.99Kb)
2 Comments
1 2 3 4