From owner-freebsd-questions@FreeBSD.ORG Tue May 26 17:19:21 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C430C1065672 for ; Tue, 26 May 2009 17:19:21 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr14.xs4all.nl (smtp-vbr14.xs4all.nl [194.109.24.34]) by mx1.freebsd.org (Postfix) with ESMTP id 3EC1C8FC0C for ; Tue, 26 May 2009 17:19:21 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr14.xs4all.nl (8.13.8/8.13.8) with ESMTP id n4QHJKo9072157; Tue, 26 May 2009 19:19:20 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id E0BC4BAA3; Tue, 26 May 2009 19:19:19 +0200 (CEST) Date: Tue, 26 May 2009 19:19:19 +0200 From: Roland Smith To: Kelly Jones Message-ID: <20090526171919.GC75202@slackbox.xs4all.nl> References: <26face530905260939r41ba8848yd1a142441b52af3f@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IpbVkmxF4tDyP/Kb" Content-Disposition: inline In-Reply-To: <26face530905260939r41ba8848yd1a142441b52af3f@mail.gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.19 (2009-01-05) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Better version of ispell? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2009 17:19:22 -0000 --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--