On Tue, May 26, 2009 at 09:39:25AM -0700, Kelly Jones wrote: > Is there a version/improvment of ispell that: > > % Lets you exclude certain sections of a file from spellchecking? > Example: I often email sendmail logs with their random-character > queue ids. I don't want ispell to check those cut/pasted logs. > > % Lets you declare correctly-spelled words as being incorrect? > > % Example: I often misspell the word "cron" as "corn"; ispell > obviously doesn't catch this. I rarely use the word "corn".
I've made a file of sed(1) commands to correct common typos, e.g: s/THe/The/g s/corn/cron/g After I've typed something, I use sed to correct these frequent mistakes: sed -i .bak -f mybad.txt file.txt This will leave the original text in file.txt.bak. Using diff(1) to compare the altered file and the backup, I can check if things have been replaced that shouldn't have been, an fix them. If you are using emacs, you can use flyspell-mode[1] to do spell-checking with ispell while you are typing. Roland [1: http://www-sop.inria.fr/members/Manuel.Serrano/flyspell/flyspell.html] -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
pgpNBxX20sr1Y.pgp
Description: PGP signature