Date: Tue, 26 May 2009 19:19:19 +0200 From: Roland Smith <rsmith@xs4all.nl> To: Kelly Jones <kelly.terry.jones@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Better version of ispell? Message-ID: <20090526171919.GC75202@slackbox.xs4all.nl> In-Reply-To: <26face530905260939r41ba8848yd1a142441b52af3f@mail.gmail.com> References: <26face530905260939r41ba8848yd1a142441b52af3f@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--IpbVkmxF4tDyP/Kb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 26, 2009 at 09:39:25AM -0700, Kelly Jones wrote: > Is there a version/improvment of ispell that: >=20 > % 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. >=20 > % Lets you declare correctly-spelled words as being incorrect? >=20 > % Example: I often misspell the word "cron" as "corn"; ispell > obviously doesn't catch this. I rarely use the word "corn".=20 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] --=20 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) --IpbVkmxF4tDyP/Kb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkocJJcACgkQEnfvsMMhpyXXuQCfS2PNJ0n9wzePbPWnWuefuQKo feMAn3SzpmgyIvQ0iBAGH0myhupEiXIl =/M65 -----END PGP SIGNATURE----- --IpbVkmxF4tDyP/Kb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090526171919.GC75202>