Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

At many levels, Perl is a "diagonal" language. -- Larry Wall in <199709021854.LAA12794@wall.org>


computers / alt.comp.os.windows-10 / Re: request for easy to implement spell checker

SubjectAuthor
* requst for easy to implement spell checkerAndy Burnelli
+* Re: requst for easy to implement spell checkerHerbert Kleebauer
|`* Re: requst for easy to implement spell checkerHerbert Kleebauer
| `- Re: requst for easy to implement spell checkerHerbert Kleebauer
+- Re: requst for easy to implement spell checkerAndy Burnelli
+* Re: requst for easy to implement spell checkerAndy Burnelli
|`* Re: requst for easy to implement spell checkerKerr-Mudd, John
| `* Re: requst for easy to implement spell checkerAndy Burnelli
|  +- Re: requst for easy to implement spell checkerKerr-Mudd, John
|  `* Re: requst for easy to implement spell checkerStan Brown
|   +* Re: requst for easy to implement spell checkerKen Blake
|   |`- Re: requst for easy to implement spell checkerStan Brown
|   `* Re: requst for easy to implement spell checkerAndy Burnelli
|    +* Re: requst for easy to implement spell checkerHerbert Kleebauer
|    |`* Re: request for easy to implement spell checkerKerr-Mudd, John
|    | `* Re: request for easy to implement spell checkerHerbert Kleebauer
|    |  `- Re: request for easy to implement spell checkerAndy Burnelli
|    `* Re: requst for easy to implement spell checkerStan Brown
|     `* Re: requst for easy to implement spell checkerAndy Burnelli
|      `* Re: requst for easy to implement spell checkerHerbert Kleebauer
|       `* Re: requst for easy to implement spell checkerAndy Burnelli
|        +* Re: requst for easy to implement spell checkerHerbert Kleebauer
|        |+* Re: requst for easy to implement spell checkerAndy Burnelli
|        ||`- Re: requst for easy to implement spell checkerHerbert Kleebauer
|        |`* Re: requst for easy to implement spell checkerJ. P. Gilliver (John)
|        | `* Re: requst for easy to implement spell checkerAndy Burnelli
|        |  +- Re: requst for easy to implement spell checkerKerr-Mudd, John
|        |  `- Re: requst for easy to implement spell checkerHerbert Kleebauer
|        `* Re: requst for easy to implement spell checkerHerbert Kleebauer
|         `- Re: requst for easy to implement spell checkerAndy Burnelli
`* Re: requst for easy to implement spell checkerJ. P. Gilliver (John)
 `- Re: requst for easy to implement spell checkerAndy Burnelli

Pages:12
Re: requst for easy to implement spell checker

<UkJluscNukBiFw6Z@a.a>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=58983&group=alt.comp.os.windows-10#58983

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.usage.english
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: G6J...@255soft.uk (J. P. Gilliver (John))
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.usage.english
Subject: Re: requst for easy to implement spell checker
Date: Fri, 11 Feb 2022 11:42:05 +0000
Organization: 255 software
Lines: 20
Message-ID: <UkJluscNukBiFw6Z@a.a>
References: <stns19$drf$1@gioia.aioe.org> <stv80b$g3k$1@gioia.aioe.org>
<20220209104023.546c7df7e73a3f4fca66452a@127.0.0.1>
<su12v4$1552$1@gioia.aioe.org>
<MPG.3c6dcab1bbde614c98fea3@news.individual.net>
<su1hda$1jl4$1@gioia.aioe.org>
<MPG.3c6ed96ba29952cf98fea6@news.individual.net>
<su3ich$n81$1@gioia.aioe.org> <su3p84$a7s$1@gioia.aioe.org>
<su488n$vq0$1@gioia.aioe.org> <su4akg$1puj$1@gioia.aioe.org>
<rfgb0hp0h2lgjmpmm7mqnr55dmr9gebtlv@4ax.com>
Reply-To: G6JPG@255soft.uk
Mime-Version: 1.0
Content-Type: text/plain;charset=us-ascii;format=flowed
Injection-Info: reader02.eternal-september.org; posting-host="96f88aa353820505e91b1f0fdd5d5093";
logging-data="17951"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18gsj0RXCWUfU95cu8GCjf9"
User-Agent: Turnpike/6.07-M (<r+tDLIwH8kCDZAEgsFSACAMZJq>)
Cancel-Lock: sha1:LfMdouPJYiXqY6czpll0ggn3UdI=
 by: J. P. Gilliver (John - Fri, 11 Feb 2022 11:42 UTC

On Thu, 10 Feb 2022 at 17:57:13, Nobody <jock@soccer.com> wrote (my
responses usually follow points raised):
>On Fri, 11 Feb 2022 01:29:03 +0100, Herbert Kleebauer <klee@unibwm.de>
>wrote:
>
>>On 11.02.2022 00:48, Andy Burnelli wrote:
[long set of instructions]
>>Isn't that a bit to complicated
[yes]
>
>Spillchucker alert! Isn't that a bit *too* complicated...
>
><g>
Interesting question - was that a spelling error or a grammar error?
<g>
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G()AL-IS-Ch++(p)Ar@T+H+Sh0!:`)DNAf

Veni, Vidi, Vera (I came, I saw, we'll meet again) - Mik from S+AS Limited
(mik@saslimited.demon.co.uk), 1998

Re: requst for easy to implement spell checker

<su5ifp$300$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=58984&group=alt.comp.os.windows-10#58984

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.usage.english
Path: i2pn2.org!i2pn.org!aioe.org!jpFlpbVCkD0A4MDyM0/IrA.user.46.165.242.91.POSTED!not-for-mail
From: kle...@unibwm.de (Herbert Kleebauer)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.usage.english
Subject: Re: requst for easy to implement spell checker
Date: Fri, 11 Feb 2022 12:49:12 +0100
Organization: Aioe.org NNTP Server
Message-ID: <su5ifp$300$1@gioia.aioe.org>
References: <stns19$drf$1@gioia.aioe.org> <stv80b$g3k$1@gioia.aioe.org>
<20220209104023.546c7df7e73a3f4fca66452a@127.0.0.1>
<su12v4$1552$1@gioia.aioe.org>
<MPG.3c6dcab1bbde614c98fea3@news.individual.net>
<su1hda$1jl4$1@gioia.aioe.org>
<MPG.3c6ed96ba29952cf98fea6@news.individual.net>
<su3ich$n81$1@gioia.aioe.org> <su3p84$a7s$1@gioia.aioe.org>
<su488n$vq0$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="3072"; posting-host="jpFlpbVCkD0A4MDyM0/IrA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Herbert Kleebauer - Fri, 11 Feb 2022 11:49 UTC

On 11.02.2022 00:48, Andy Burnelli wrote:

>> It's up to you, to add code for statistics and to prefer
>> words which have been spelled wrong in the past.

> Especially since I'm not a coder (although I use what people create).

I added a few lines of code for you. This version stores any
misspelled word in "spellerr.txt". Next time you start the
batch, first all words in "spellerr.txt" are presented and
then all words in "spell.txt" in a random order. You can
exit the batch any time by entering "x".

It's up to you, to add a full path or %temp% to the
temporary generated files (I prefer all in the same directory).

@echo off
MODE CON: COLS=50 LINES=10
color f0
cls
echo createobject("sapi.spvoice").speak wsh.arguments(0)>speak.vbs

for /f "tokens=*" %%i in (spell.txt) do call echo %%random%% %%i>>spellerr.txt
sort /o spelltmp.txt spellerr.txt
del spellerr.txt
set /a ok=0
set /a not_ok=0

for /f "tokens=1*" %%i in (spelltmp.txt) do call :sub %%j
:end
del speak.vbs
del spelltmp.txt
echo.
echo %ok% words correct, %not_ok% words incorrect
echo.
pause
exit

:sub
echo.
set /a n=0
:sub1
set /a n=n+1
if %n%==3 goto :sub2
cscript //nologo speak.vbs "%*"
set a=
set /p a=
if /i "%a%"=="x" goto :end
if /i not "%*"=="%a%" goto :sub1
set /a ok=ok+1
goto :eof

:sub2
echo 0 %*>>spellerr.txt
echo ---------- %*
set /a not_ok=not_ok+1

Re: requst for easy to implement spell checker

<su68b1$12ag$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=58989&group=alt.comp.os.windows-10#58989

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.usage.english
Path: i2pn2.org!i2pn.org!aioe.org!uC+u+wrvCiJRhswcuU7oWw.user.46.165.242.75.POSTED!not-for-mail
From: spa...@nospam.com (Andy Burnelli)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.usage.english
Subject: Re: requst for easy to implement spell checker
Date: Fri, 11 Feb 2022 18:02:10 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <su68b1$12ag$1@gioia.aioe.org>
References: <stns19$drf$1@gioia.aioe.org> <stv80b$g3k$1@gioia.aioe.org> <20220209104023.546c7df7e73a3f4fca66452a@127.0.0.1> <su12v4$1552$1@gioia.aioe.org> <MPG.3c6dcab1bbde614c98fea3@news.individual.net> <su1hda$1jl4$1@gioia.aioe.org> <MPG.3c6ed96ba29952cf98fea6@news.individual.net> <su3ich$n81$1@gioia.aioe.org> <su3p84$a7s$1@gioia.aioe.org> <su488n$vq0$1@gioia.aioe.org> <su4akg$1puj$1@gioia.aioe.org> <rfgb0hp0h2lgjmpmm7mqnr55dmr9gebtlv@4ax.com> <UkJluscNukBiFw6Z@a.a>
Injection-Info: gioia.aioe.org; logging-data="35152"; posting-host="uC+u+wrvCiJRhswcuU7oWw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
X-Notice: Filtered by postfilter v. 0.9.2
 by: Andy Burnelli - Fri, 11 Feb 2022 18:02 UTC

On Fri, 11 Feb 2022 11:42:05 +0000, J. P. Gilliver (John) wrote:

>>>Isn't that a bit to complicated
> [yes]

J.P. Gilliver,

I'm going to try to be as gentle with you as I possibly can because even
though you didn't add any value (so you wasted our time), I recognize some
people are on Usenet purely for the amusement value (not me, but some).

I'm here to either add tremendous value, or to obtain it (as we did from
Herbert who basically, with JJ, crafted a solution that works perfectly!).

My first rhetorical question, being gentle, John, is this basic question:
Why do you _always_ respond to the trolls, but you don't try to add value?

But moving on (since Usenet is water under the bridge), allow me to post
this response to you & to him together since I don't see Nobody's trolls.

I'm going to next make an _adult_ observation, which is not so much for you,
but for everyone out there to benefit from, since Usenet is a team sport.

Whenever something rather simple, and yet, detailed (so it's long) is
posted, there is _always_ a troll whose brain fogged over after the first
line, who then claims it's "complicated" (this happens all the time on the
iKook newsgroups so I'm well aware that detail confuses them to no end).

They can't comprehend that the detail is there so that everyone can do it.
That's because they use Usenet purely for their own sadistic amusement.

They don't _care_ one bit about the topic.
They don't care one bit about _solving_ the problem.
They are only on Usenet for their own amusement, John.

They're attention whores.

Even the ones who aren't trolls may want "Apple-like" instructions:
STEP 1. Type "spell" to add to the file, otherwise "spelltest" to test it.

That's it.
It's _that_ simple.

Now. Having written those instructions, are you satisfied John?
Are they now a lot simpler, John?
a. Run the file

That's it.
That's the instructions.
(Seriously, John, it _is_ that easy!)

BTW, the trolls are trying to derail the thread because they are attention
whores, where I suggest you get back to the kind-hearted purposefully
helpful people who made far better comments you _could_ have responded to.

To that end, I'll test Herbert's simplification, where the goal is always:
a. *Extreme efficiency* (to the max!) [Always a _single_ step!]
b. *Extreme generality* (to the max!) [Always using freeware anyone can use]

Thanks to Herbert & JJ, we have met that goal in an exemplary fashion.

To run the spelltest, just type "spelltest".
--
That may be too complex for the trolls, but not for intelligent people.

Re: requst for easy to implement spell checker

<20220211192604.e12e0d4c80726fc2dc3ca5a3@127.0.0.1>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=58992&group=alt.comp.os.windows-10#58992

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.usage.english
Followup: alt.comp.os.windows-10
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: adm...@127.0.0.1 (Kerr-Mudd, John)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.usage.english
Subject: Re: requst for easy to implement spell checker
Followup-To: alt.comp.os.windows-10
Date: Fri, 11 Feb 2022 19:26:04 +0000
Organization: Dis
Lines: 29
Message-ID: <20220211192604.e12e0d4c80726fc2dc3ca5a3@127.0.0.1>
References: <stns19$drf$1@gioia.aioe.org>
<stv80b$g3k$1@gioia.aioe.org>
<20220209104023.546c7df7e73a3f4fca66452a@127.0.0.1>
<su12v4$1552$1@gioia.aioe.org>
<MPG.3c6dcab1bbde614c98fea3@news.individual.net>
<su1hda$1jl4$1@gioia.aioe.org>
<MPG.3c6ed96ba29952cf98fea6@news.individual.net>
<su3ich$n81$1@gioia.aioe.org>
<su3p84$a7s$1@gioia.aioe.org>
<su488n$vq0$1@gioia.aioe.org>
<su4akg$1puj$1@gioia.aioe.org>
<rfgb0hp0h2lgjmpmm7mqnr55dmr9gebtlv@4ax.com>
<UkJluscNukBiFw6Z@a.a>
<su68b1$12ag$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="edb504ef2a4626a9b9c91620e2de1d2e";
logging-data="25806"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zeHdtWb+01AFyLYB9Mh3lIW5j9SiLSQY="
Cancel-Lock: sha1:5/5NcVmAHPpmJjkZASbDZA9oc3I=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
;X-no-Archive: Maybe
GNU: Terry Pratchett
 by: Kerr-Mudd, John - Fri, 11 Feb 2022 19:26 UTC

On Fri, 11 Feb 2022 18:02:10 -0000 (UTC)
Andy Burnelli <spam@nospam.com> wrote:

> On Fri, 11 Feb 2022 11:42:05 +0000, J. P. Gilliver (John) wrote:
>
> >>>Isn't that a bit to complicated
> > [yes]
>
> J.P. Gilliver,
>
> I'm going to try to be as gentle with you as I possibly can because even
> though you didn't add any value (so you wasted our time), I recognize some
> people are on Usenet purely for the amusement value (not me, but some).
>
[Lot's of words]
Please don't talk down to a regular contributor to amb. Especially as Herbert has been so kind.

HTH

> --
> That may be too complex for the trolls, but not for intelligent people.

Hmm.

FU set to just alt.comp.os.windows-10, as I think that's where you're possibly a regular. (Well it ain't the other 2!)

--
Bah, and indeed Humbug.

Re: requst for easy to implement spell checker

<su6iup$1ttu$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=58998&group=alt.comp.os.windows-10#58998

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.usage.english
Path: i2pn2.org!i2pn.org!aioe.org!jpFlpbVCkD0A4MDyM0/IrA.user.46.165.242.91.POSTED!not-for-mail
From: kle...@unibwm.de (Herbert Kleebauer)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.usage.english
Subject: Re: requst for easy to implement spell checker
Date: Fri, 11 Feb 2022 22:03:19 +0100
Organization: Aioe.org NNTP Server
Message-ID: <su6iup$1ttu$1@gioia.aioe.org>
References: <stns19$drf$1@gioia.aioe.org> <stv80b$g3k$1@gioia.aioe.org>
<20220209104023.546c7df7e73a3f4fca66452a@127.0.0.1>
<su12v4$1552$1@gioia.aioe.org>
<MPG.3c6dcab1bbde614c98fea3@news.individual.net>
<su1hda$1jl4$1@gioia.aioe.org>
<MPG.3c6ed96ba29952cf98fea6@news.individual.net>
<su3ich$n81$1@gioia.aioe.org> <su3p84$a7s$1@gioia.aioe.org>
<su488n$vq0$1@gioia.aioe.org> <su4akg$1puj$1@gioia.aioe.org>
<rfgb0hp0h2lgjmpmm7mqnr55dmr9gebtlv@4ax.com> <UkJluscNukBiFw6Z@a.a>
<su68b1$12ag$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="63422"; posting-host="jpFlpbVCkD0A4MDyM0/IrA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Herbert Kleebauer - Fri, 11 Feb 2022 21:03 UTC

On 11.02.2022 19:02, Andy Burnelli wrote:
> On Fri, 11 Feb 2022 11:42:05 +0000, J. P. Gilliver (John) wrote:

>>>>Isn't that a bit to complicated
>> [yes]

> I'm going to try to be as gentle with you as I possibly can because even
> though you didn't add any value (so you wasted our time), I recognize some
> people are on Usenet purely for the amusement value (not me, but some).

Not even a little bit humor?

>>Spillchucker alert! Isn't that a bit *too* complicated...
>>
>><g>

We are talking about a tool to improve correct spelling so
I find this comment very appropriate.

> Interesting question - was that a spelling error or a grammar error?
> <g>

And that too. Just enter both words, "to" and "too" in your spell.txt
and tell us if you have written both words correct after you heard
them spoken.

I read this thread only in alt.msdos.batch so I can't say anything
about the other two (add "two" also to spell.txt) groups (but they
are also alt.* groups). alt.msdos.batch is completely dead. So even
an off topic post with some sort of humor would be very welcome here.

I'm glad that you forwarded the line

echo createobject("sapi.spvoice").speak wsh.arguments(0)>%tf%

to alt.msdos.batch because the OP seems to have removed a.m.b
from the crosspost. This is the most interesting information
I got in the last years in this group.

And about the:

>>>>Isn't that a bit to complicated
>> [yes]

a.m.b is a group to provide information, help and discussion
about batch problems. The goal is not to provide ready to
use solutions and give step by step instructions at the
lowest level. Nobody learns anything by just copy&paste
or following instructions word by word without understanding
them.

For a program you want, batch is a completely inappropriate
language. Just use Google to search for a compiled exe program,
there should be plenty of them. I just wanted to find out
if at least very simple version could be made with batch code.
But it's only a proof of concept and not real usable code.
But it was worth the effort, batch code which starts speaking
(as a one liner) is real cool.

Re: requst for easy to implement spell checker

<t27aqm$rbg$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=61306&group=alt.comp.os.windows-10#61306

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.usage.english
Path: i2pn2.org!i2pn.org!aioe.org!Gj+613xB9sVIQxAtFideEw.user.46.165.242.75.POSTED!not-for-mail
From: spa...@nospam.com (Andy Burnelli)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.usage.english
Subject: Re: requst for easy to implement spell checker
Date: Fri, 1 Apr 2022 17:56:00 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t27aqm$rbg$1@gioia.aioe.org>
References: <stns19$drf$1@gioia.aioe.org> <stv80b$g3k$1@gioia.aioe.org> <20220209104023.546c7df7e73a3f4fca66452a@127.0.0.1> <su12v4$1552$1@gioia.aioe.org> <MPG.3c6dcab1bbde614c98fea3@news.individual.net> <su1hda$1jl4$1@gioia.aioe.org> <MPG.3c6ed96ba29952cf98fea6@news.individual.net> <su3ich$n81$1@gioia.aioe.org> <su3p84$a7s$1@gioia.aioe.org> <su488n$vq0$1@gioia.aioe.org> <su5ifp$300$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="28016"; posting-host="Gj+613xB9sVIQxAtFideEw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: Andy Burnelli - Fri, 1 Apr 2022 16:56 UTC

Herbert Kleebauer wrote:

> On 11.02.2022 00:48, Andy Burnelli wrote:
>
> >> It's up to you, to add code for statistics and to prefer
> >> words which have been spelled wrong in the past.
>
>> Especially since I'm not a coder (although I use what people create).
>
> I added a few lines of code for you. This version stores any
> misspelled word in "spellerr.txt". Next time you start the
> batch, first all words in "spellerr.txt" are presented and
> then all words in "spell.txt" in a random order. You can
> exit the batch any time by entering "x".
>
> It's up to you, to add a full path or %temp% to the
> temporary generated files (I prefer all in the same directory).
>
> @echo off
> MODE CON: COLS=50 LINES=10
> color f0
> cls
> echo createobject("sapi.spvoice").speak wsh.arguments(0)>speak.vbs
>
> for /f "tokens=*" %%i in (spell.txt) do call echo %%random%% %%i>>spellerr.txt
> sort /o spelltmp.txt spellerr.txt
> del spellerr.txt
> set /a ok=0
> set /a not_ok=0
>
> for /f "tokens=1*" %%i in (spelltmp.txt) do call :sub %%j
>:end
> del speak.vbs
> del spelltmp.txt
> echo.
> echo %ok% words correct, %not_ok% words incorrect
> echo.
> pause
> exit
>
>:sub
> echo.
> set /a n=0
>:sub1
> set /a n=n+1
> if %n%==3 goto :sub2
> cscript //nologo speak.vbs "%*"
> set a=
> set /p a=
> if /i "%a%"=="x" goto :end
> if /i not "%*"=="%a%" goto :sub1
> set /a ok=ok+1
> goto :eof
>
>:sub2
> echo 0 %*>>spellerr.txt
> echo ---------- %*
> set /a not_ok=not_ok+1

Thank you Herbert Kleebauer, on behalf of all who wish to spell better.
The goal is to lessen the redsquiggles in an efficient & timely manner.

I apologize for not having responded sooner as I was dealing with other
technical issues on the various platforms (iOS, Android, Windows, etc.).

Below is my annotated modification of your helpful spelling script.
a. I added strategic & tactical background commentary (and instructions).
b. I added a user-defined location variable for the 3 {txt,err,tmp} files.
c. I added a misspelling pause & action (adds time to reflect on errors).

---< begin spellit.bat >---
@echo off
REM spellit.bat for Windows 10, originally by Herbert Kleebauer 20220211
REM A self-test of redsquiggled words with a self-reinforcing misspelled DB.
REM Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.usage.english
REM Message-ID: <su5ifp$300$1@gioia.aioe.org>
REM Randomly speaks words giving you a chance to type them correctly.
REM Strategy being it _must_ be quick & easy; otherwise you won't do it.
REM Purposefully uses audio instead of a visual to present the word.
REM Strategically, this uses a visual to reinforce the correct spelling.
REM Logic being that seeing it _before_ trying to spell it taints memory.
REM Logic being seeing it _after_ an attempt tends to reinforce memory.
REM Tactic is auto-honing of just the words _you_ have recently misspelled.
REM Tactic is repetition specifically for the words _you_ misspelled most.
REM Recommended one-time setup:
REM 1. Set up an AppPath for a quick command: "Run > spell"
REM (Use that command to add redsquiggled words into spelltxt.txt)
REM HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\spell.exe
REM @default = C:\data\db\tts\spelltxt.txt
REM 2. Set up an AppPath for a quick command: "Run > spellit"
REM (Use that command to initiate the audio-visual testing process)
REM HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\spellit.exe
REM @default = C:\data\db\tts\spellit.bat
REM 3. Optionally, choose a filespecs for the spell txt, err & tmp files
REM Note any explicit path is optional (it can be %TEMP% as the default).
REM spelltxt.txt is manually maintained redsquiggled words (1 per line)
REM spelltxt.err is a dynamic error file autocreated & automainained
REM spelltxt.tmp is a dynamic tmp file autocreated by this script
REM Note: %TEMP% defaults to C:\Users\<username>\AppData\Local\Temp\
REM Recommended daily-use model
REM 4. Ad hoc, as words are redsquiggled, rightclick, correct & copy...
REM Run > spell
REM Paste the now-correctly-spelled redsquiggle into that spell.txt file
REM Note: Most people pin a "Run" shortcut icon to their Win10 taskbar.
REM Note: Otherwise, they press "Windows+R" to pop up the Run box.
REM 5. Periodically, as needed, to refresh & reinforce spelling memory...
REM Run > spellit
REM a. Speaks words you previously doubly misspelled (in spellerr.txt)
REM (if you spell it incorrectly, another entry is added)
REM (if you spell it correctly, only one entry is removed)
REM b. Then randomly speaks the list of misspelled words (in spelltxt.txt)
REM (if you spell it incorrectly, one entry is added to the error file)
REM (if you spell it correctly, it moves on to the next word in the file)
REM The more you misspell a word, the more it shows up in the error file.
REM Each time a word is presented you have two chances to spell it out.
REM The more you correctly spell it, the less it shows up in the error file.
REM When incorrect, a "pause" allows timely introspection of errors.
REM Pressing "x" will end the session (as will pressing "Control+C").
REM
REM Please choose a desired filespec for the spelling text, error & temp files.
set spelltxtfile=%TEMP%\spelltxt.txt
set spellerrfile=%TEMP%\spellerr.txt
set spelltmpfile=%TEMP%\spelltmp.txt
REM set spelltxtfile=C:\data\db\tts\spelltxt.txt
REM set spellerrfile=C:\data\db\tts\spellerr.txt
REM set spelltmpfile=C:\data\db\tts\spelltmp.txt
REM
MODE CON: COLS=50 LINES=10
color f0
cls
echo createobject("sapi.spvoice").speak wsh.arguments(0)>speak.vbs
for /f "tokens=*" %%i in (%spelltxtfile%) do call echo %%random%% %%i>>%spellerrfile%
sort /o %spelltmpfile% %spellerrfile%
del %spellerrfile%
set /a ok=0
set /a not_ok=0
for /f "tokens=1*" %%i in (%spelltmpfile%) do call :sub %%j
:end
del speak.vbs
del %spelltmpfile%
echo.
echo %ok% words correct, %not_ok% words incorrect
echo.
pause
exit
:sub
echo.
set /a n=0
:sub1
set /a n=n+1
if %n%==3 goto :sub2
cscript //nologo speak.vbs "%*"
set a=
set /p a=
if /i "%a%"=="x" goto :end
if /i not "%*"=="%a%" goto :sub1
set /a ok=ok+1
goto :eof
:sub2
echo 0 %*>>%spellerrfile%
echo ---------- %*
pause
set /a not_ok=not_ok+1
REM <end of spellit.bat>
---< end spellit.bat >---
---< begin sample spelltxt.txt >---
Afghani
Vallejo
abscissa
abysmal
accommodations
admittance
aficionados
anachronism
annihilate
anomaly
ante
appalled
archaic
arithmetic
assessments
belligerent
boreal
bureaucracy
cacophony
cinnabar
clientele
colloquial
commingled
concise
concomitant
contagious
corroborating
credulity
debuted
deficit
de rigueur
disastrous
discretion
disparage
disparity
duplicitous
echelon
egregious
emanated
emanates
eminently
etymological
euphemism
euphemistically
exemplary
exhilarating
exorbitant
extol
fascists
felicitously
fluorescent
foresaw
foresee
foreseeable
frivolity
geneticist
gratefully
guaranteed
gynecologist
hoi polloi
hors d'oeuvre
ignominiously
imbue
immaculate
immiscible
impedance
incipient
inherited
insightful
lavender
lectern
liaison
lieu
marshal
masquerading
matriarchal
mayonnaise
medieval
methodically
mosquito
neutralize
obsolescence
occurrence
paraplegic
parroting
phenomenal
pliers
preceded
preceding
programmatic
proletariat
remunerate
sanctity
scholarships
semblance
senesce
shish kebab
supersedes
surreptitiously
symmetric
sympathetic
tassels
thereabouts
tragedy
triptych
ubiquitous
ubiquity
unnecessarily
unnecessary
vicious
viscous
---< end sample spelltxt.txt >---

Re: request for easy to implement spell checker

<t2nhue$v8q$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=61507&group=alt.comp.os.windows-10#61507

 copy link   Newsgroups: alt.comp.os.windows-10 alt.msdos.batch alt.usage.english
Path: i2pn2.org!i2pn.org!aioe.org!3PLzD/rb74ta/CXxNcmbeA.user.46.165.242.75.POSTED!not-for-mail
From: spa...@nospam.com (Andy Burnelli)
Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.usage.english
Subject: Re: request for easy to implement spell checker
Date: Thu, 7 Apr 2022 21:35:37 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t2nhue$v8q$1@gioia.aioe.org>
References: <stns19$drf$1@gioia.aioe.org> <stv80b$g3k$1@gioia.aioe.org> <20220209104023.546c7df7e73a3f4fca66452a@127.0.0.1> <su12v4$1552$1@gioia.aioe.org> <MPG.3c6dcab1bbde614c98fea3@news.individual.net> <su1hda$1jl4$1@gioia.aioe.org> <su2r01$296$1@gioia.aioe.org> <20220210154939.7ad3706863b4c229432ffc78@127.0.0.1> <su3gmv$1ot1$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="32026"; posting-host="3PLzD/rb74ta/CXxNcmbeA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
 by: Andy Burnelli - Thu, 7 Apr 2022 20:35 UTC

Herbert Kleebauer wrote:

> On 10.02.2022 16:49, Kerr-Mudd, John wrote:
>
>>> starts. But it only works in 64 bit Windows because there
>>> seems to be no 32 bit version of the Microsoft reader.
>>>
>> Oh? there is on my (32bit) XP machine; but it only "says" each letter, not words, AFAICT
>>
>> Ah, it does say "Foreground Window [the subject line] - Compose *
>> (which is the window title)
>>
>> (but I can't see how to say selected text)
>
> It should read the text in the foreground window. Therefore
> I added a 4 second delay between starting the reader and
> starting the cmd window which echoes the words. This should
> allow the reader to finish loading before the cmd window
> is opened, which makes the cmd window topmost. On a very slow
> computer maybe you should increase this delay time. Alternatively
> you can just click on the cmd window to make it topmost after
> the speech starts.
>
> start "" %p% /min %windir%\system32\narrator.exe
> timeout /t 4 >nul
> start "" "%~f0" xxx
> exit

I only now saw this where the four seconds works well for me
timeout /t 4 >nul
I was previously using a pause which required user action whenever
a word was misspelled twice but which gave time for introspection.
pause

The four seconds still allow for introspection of any errors.
And it has the advantage of not requiring user action after that.

Here's the current use model and setup on Windows 10.
a. To add a redsquiggled word, run "spell".
b. To run audible challenges for rote memorization, run "spellit".
c. Misspelled words are automatically repeated by design of the script.

OPTIONAL: (Create a "Win+R > spell" command to save redsquiggled words).
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\spell.exe
@default = c:\pathto\spelltxt.txt

OPTIONAL: (Create a "Win+R > spellit" command to exercise rote learning).
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\spellit.exe
@default = c:\pathto\spellit.bat

c:\pathto\spellit.bat
@echo off
REM spellit.bat for Windows 10, originally by Herbert Kleebauer 20220211
REM A self-test of redsquiggled words with a self-reinforcing misspelled DB.
REM Newsgroups: alt.comp.os.windows-10,alt.msdos.batch,alt.usage.english
REM Message-ID: <su5ifp$300$1@gioia.aioe.org>
REM Summary: To add a redsquiggled word, run "spell".
REM To run audible challenges for rote memorization, run "spellit".
REM Strategy: It absolutely must be efficient & easy or you won't do it!
REM Tactic: Presents words that you misspelled in the frequency you err.
REM Win+R > spellit
REM Randomly speaks words giving you two chances to type them correctly.
REM Purposefully uses audio in order to force memory recall.
REM After two mistakes the word is reinforced in a separate error file.
REM
REM Recommended one-time setup for efficiency:
REM 1. Set up an AppPath for a quick command: "Win+R > spell"
REM (Use that Run command to add redsquiggled words into spelltxt.txt)
REM HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\spell.exe
REM @default = c:\pathto\spelltxt.txt
REM 2. Set up an AppPath for a quick command: "Win+R > spellit"
REM (Use that Run command to initiate the audio-visual testing process)
REM HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\spellit.exe
REM @default = c:\pathto\spellit.bat
REM 3. Optionally, choose a filespecs for the spell txt, err & tmp files
REM Explicit paths are optional (it can be %TEMP% as the default).
REM "spelltxt.txt" is a list of redsquiggled misspelled words
REM "spelltxt.err" is a dynamic error file autocreated & automaintained
REM "spelltxt.tmp" is a dynamic tmp file autocreated by this script
REM Note: %TEMP% defaults to C:\Users\<username>\AppData\Local\Temp\
REM Recommended use model
REM 4. Ad hoc, as words are redsquiggled, rightclick, correct & copy...
REM Run > spell
REM Paste the now-correctly-spelled redsquiggle into that spell.txt file
REM Note: Most people pin a "Run" shortcut icon to their Win10 taskbar.
REM Note: Otherwise, they press "Windows+R" keys to pop up the Run box.
REM 5. Periodically, as needed, to refresh & reinforce spelling memory...
REM Run > spellit
REM a. First speaks words you _repeatedly_ misspelled (in spellerr.txt)
REM (if you spell it incorrectly, yet another entry is added)
REM (if you spell it correctly, only one entry is removed each time)
REM b. Then randomly speaks the misspelled words (in spelltxt.txt)
REM c. Each time a word is presented you have two spelling chances.
REM When incorrect, there is a 4-second introspection of errors.
REM Pressing "x" will end the session (as will "Control+C" keys).
REM
REM Please choose a filespec for the spelling text, error & temp files.
REM set spelltxtfile=%TEMP%\spelltxt.txt
REM set spellerrfile=%TEMP%\spellerr.txt
REM set spelltmpfile=%TEMP%\spelltmp.txt
set spelltxtfile=c:\pathto\spelltxt.txt
set spellerrfile=c:\pathto\spellerr.txt
set spelltmpfile=c:\pathto\spelltmp.txt
REM The user does not need to modify anything below this line.
MODE CON: COLS=50 LINES=10
color f0
cls
echo createobject("sapi.spvoice").speak wsh.arguments(0)>speak.vbs

for /f "tokens=*" %%i in (%spelltxtfile%) do call echo %%random%%
%%i>>%spellerrfile%
sort /o %spelltmpfile% %spellerrfile%
del %spellerrfile%
set /a ok=0
set /a not_ok=0

for /f "tokens=1*" %%i in (%spelltmpfile%) do call :sub %%j
:end
del speak.vbs
del %spelltmpfile%
echo.
echo %ok% words correct, %not_ok% words incorrect
echo.
pause
exit

:sub
echo.
set /a n=0
:sub1
set /a n=n+1
if %n%==3 goto :sub2
cscript //nologo speak.vbs "%*"
set a=
set /p a=
if /i "%a%"=="x" goto :end
if /i not "%*"=="%a%" goto :sub1
set /a ok=ok+1
goto :eof

:sub2
echo 0 %*>>%spellerrfile%
echo ---------- %*
REM Sets a four-second delay for error introspection
timeout /t 4 >nul
set /a not_ok=not_ok+1
---< Above is the spellit.bat script >---
---< Below is a sample spelltxt.txt list >---
abscissa
abysmal
accommodate
accommodations
admittance
Afghani
aficionados
anachronism
annihilate
anomaly
ante
antediluvian
appalled
archaic
arithmetic
assessments
bankruptcy
belligerent
boreal
Bruscietta
bureaucracy
cacophony
Cannoli
cinnabar
clientele
colloquial
commingled
concise
concomitant
contagious
corroborating
credulity
de rigueur
debuted
deficit
disastrous
discretion
disingenuous
disparage
disparity
duplicitous
echelon
egregious
emanated
emanates
eminently
etymological
euphemism
euphemistically
exemplary
exhilarating
exorbitant
extol
fascists
felicitously
Fettuccini
fluorescent
foresaw
foresee
foreseeable
frivolity
geneticist
gratefully
guaranteed
gynecologist
horsd'oeuvres
ignominiously
imbue
immaculate
immiscible
impedance
incipient
inherited
insightful
lavender
lectern
liaison
lieu
Linguini
mannequin
marshal
masquerading
matriarchal
mayonnaise
medieval
methodically
millennium
mosquito
neutralize
obsolescence
occurrence
Panini
paraplegic
parroting
phenomenal
phenomenally
pleasurable
pliers
preceded
preceding
programmatically
proletariat
Prosciutto De Parma
remunerate
sanctity
scholarships
semblance
senesce
shish kebab
supersedes
surreptitiously
symmetric
sympathetic
tassels
thereabouts
tragedy
triptych
ubiquitous
ubiquity
unnecessarily
unnecessary
Vallejo
vicious
viscous
---< Above is a sample spelltxt.txt list >---

See also: <https://en.wikipedia.org/wiki/Commonly_misspelled_English_words>

Pages:12
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor