Discussion:
[Aspell-user] aspell in non-interactive mode
Wolfgang Weinhold
2008-11-17 02:56:55 UTC
Permalink
Hi All,

Is it somehow possible to run aspell on Windows XP Professional in
non-interactive mode, i.e. have it to save all suspect words silently to a
separate file and exit when finished?

Thanks in advance for any help.

Best regards
Wolfgang
ge
2008-11-18 16:46:42 UTC
Permalink
Hi All,
Is it somehow possible to run aspell on Windows XP Professional in
non-interactive mode, i.e. have it to save all suspect words silently to a
separate file and exit when finished?
Thanks in advance for any help.
Best regards
Wolfgang
<<<
Just one idea. Aspell has a perl interface.
It is relatively easy to write a little perl program,
that checks a word list, and writes all wrong words
in an other list.

First, of course you must separate all words of
the file to be checked into a one word/line list,
but that is easy using awk or perl.

gawk words very well on windows, also active perl works well there.
Not sure, if the aspell perl interface works on windows,
but i believe yes, it does.

-eleonora
Kevin Atkinson
2008-11-18 23:40:54 UTC
Permalink
Post by Wolfgang Weinhold
Is it somehow possible to run aspell on Windows XP Professional in
non-interactive mode, i.e. have it to save all suspect words silently to a
separate file and exit when finished?
Try "aspell list".
Wolfgang Weinhold
2008-11-20 23:40:37 UTC
Permalink
Thank you very much for your helpful advice.

I am still experimenting and was using the following from the command
prompt:
COMMAND.COM /c type c:\<folder name\test1.txt |
c:\progra~1\aspell\bin\aspell -a > c:\<folder name>\misspell.txt

After your reply I replaced aspell -a by aspell list:
COMMAND.COM /c type c:\<folder name\test1.txt |
c:\progra~1\aspell\bin\aspell list > c:\<folder name>\misspell.txt
This works fine and produces the desired results for me.

Example for file test1.txt
This is justt a litle test.
Run: COMMAND.COM /c type c:\<folder name\test1.txt |
c:\progra~1\aspell\bin\aspell list > c:\<folder name>\misspell.txt
Resulting file misspell.txt
justt
litle


-----Original Message-----
From: Kevin Atkinson [mailto:***@gnu.org]
Sent: Wednesday, November 19, 2008 8:41 AM
To: Wolfgang Weinhold
Cc: aspell-***@gnu.org
Subject: Re: [Aspell-user] aspell in non-interactive mode
Post by Wolfgang Weinhold
Is it somehow possible to run aspell on Windows XP Professional in
non-interactive mode, i.e. have it to save all suspect words silently
to a separate file and exit when finished?
Try "aspell list".
Wolfgang Weinhold
2008-11-20 23:46:00 UTC
Permalink
Thanks a lot. I will keep that in mind.
For the time being I will use the following from the command prompt:
COMMAND.COM /c type c:\<folder name>\test1.txt |
c:\progra~1\aspell\bin\aspell list > c:\<folder name>\misspell.txt

Best regards
Wolfgang

-----Original Message-----
From: aspell-user-bounces+wweinh=***@gnu.org
[mailto:aspell-user-bounces+wweinh=***@gnu.org] On Behalf Of ge
Sent: Wednesday, November 19, 2008 1:47 AM
To: aspell-***@gnu.org
Subject: [Aspell-user] aspell in non-interactive mode
Hi All,
Is it somehow possible to run aspell on Windows XP Professional in
non-interactive mode, i.e. have it to save all suspect words silently to a
separate file and exit when finished?
Thanks in advance for any help.
Best regards
Wolfgang
<<<
Just one idea. Aspell has a perl interface.
It is relatively easy to write a little perl program, that checks a word
list, and writes all wrong words in an other list.

First, of course you must separate all words of the file to be checked into
a one word/line list, but that is easy using awk or perl.

gawk words very well on windows, also active perl works well there.
Not sure, if the aspell perl interface works on windows, but i believe yes,
it does.

-eleonora
JXNWarner
2010-10-23 21:54:23 UTC
Permalink
Thanks for this thread. I knew if I found the correct command I would save a
lot of time.
With Cygwin on Windows, the following command is equivalent:

# cat *.tex | /usr/bin/aspell --mode=tex list | sort > mispelledwords.out

THNX!
--
View this message in context: http://old.nabble.com/aspell-in-non-interactive-mode-tp20545338p30038085.html
Sent from the Gnu - Aspell - User mailing list archive at Nabble.com.
Loading...