Aspell spell checker

Questions & Answers

Moderators: fgagnon, nikos, Site Mods

Post Reply
Kirkx
Member
Member
Posts: 13
Joined: 2008 May 18, 03:41

Aspell spell checker

Post by Kirkx »

Has anyone hooked up a spell checker to run with Editor2? Below are instructions how to do it with Aspell v0.50.3. The latest version is 0.60.6 but I haven't got a chance to test it yet.

1) Download and install Aspell v0.50.3

http://aspell.net/win32/

2) In Xplorer2 folder create a batch file Aspell.bat with the following command line:

C:\Aspell\bin\aspell.exe -c -e -x %1

(replace C: with whatever your real drive\folder with Aspell is)

3) In Editor2 go to:

View - Options - External Viewer

and enter: C:\Xplorer2\Aspell.bat

(replace C: with whatever your real drive\folder with Xplorer2 is)
---------
Now you can run the spell checker by hitting F12.

I've run a few quick tests and here are a few observations:

a) the spelling corrections are done even in Read-only mode.
b) the cursor can be anywhere, even at the end of the file.
c) corrections will appear in the text only after you exit/reopen the file.
d) if there have been any corrections done, Aspell saves the file, no need to re-save it with E2.

In short, the only problem to solve is in p. "c" above.
---------

Here is some more info.

Command line switches: open a DOS window in the aspell\bin directory and type: aspell --help

http://img389.imageshack.us/img389/1482 ... 402dy7.png

Switches used in the batch file:

-c or check - check file
-e or --mode=email - do not check quoted text (with ">" and/or "|")

-x or --don't-backup - do not make a backup copy (*.bak) of the file being checked

%1 - filename passed by the program, presumably, some random name generated by Xplorer2.
Last edited by Kirkx on 2008 May 28, 06:06, edited 1 time in total.
Kirkx
Member
Member
Posts: 13
Joined: 2008 May 18, 03:41

Post by Kirkx »

Here is the screenshot that shows how Aspell interface looks like:

http://img151.imageshack.us/img151/7357 ... 616qg0.png

1-0 are preselected replacement words. As for the remaining commands, the most important ones are:

i - ignore
a - add to my personal dictionary, no correction needed
r - replace with (type your own replacement word; see the bottom of the DOS screen)
x - exit

Personal dictionary for English language is the file "en.pws" in the main Aspell folder. It can be edited just like a txt file.

Here is Aspell's home page, where you can find the latest version 0.60.6 released in April 2008, and the user forums:

http://aspell.net/

http://lists.gnu.org/mailman/listinfo/aspell-user
Post Reply