Article View: news.software.readers
Article #88620Re: [slrn] ispell macro
From: Tim Hammerquist
Date: Sun, 02 Dec 2001 00:49
Date: Sun, 02 Dec 2001 00:49
42 lines
2573 bytes
2573 bytes
Phil Boutros <philb@total.net> graced us by uttering:
> Tim Hammerquist <tim@vegeta.ath.cx> wrote:
>>
>> Wow. You sure are gung-ho about all this spell checking stuff to go
>> through all that!
>>
>> Mine:
>> Save and exit editor (vim: ":x<CR>")
>> Filter article through ispell (slrn: "f")
>
> I do the same, the few times I remember to use spellcheck.
> However, it would be great if we could somehow get the macro to filter
> only what's after the headers and before the sig.
>
> Unfortunately, since the macro just calls ispell on the file
> created, I don't know of a way to do that. I can't find any options
> in ispell that would make this work.
>
> Anyone have any ideas?
I'm currently working on some scripts to do just this. Ideally, they'd
be a work-alike utility to just drop in the ispell.sl macro, but they're
giving me trouble.
The perl script works very well, actually. ispell just wants to leave a
backup file despite the explicit -x switch.
The python script is a bit farther from production code, but once
finished, should be much more graceful..."sexy", if you will. ;)
Anyone interested in the scripts, just let me know. They're not the
most robust of scripts, but at least you won't have to tell ispell that
the comp in comp.editors isn't mispelled anymore!
NB: perl script requires perl >= 5
python script requires python >= 2
Tim Hammerquist
--
Error: No keyboard detected. Press F1 to continue.
-- actual MS Windows error message
Technical Details
Message-ID:
<slrna0iudi.l3f.tim@vegeta.ath.cx>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed.slurp.net!not-for-mailReferences:
<Xns9169504726A04luutrangeocities@63.169.72.7> <Xns91698AE3DFCBCbutterflybillgrapevi@209.242.76.10> <slrna0fqt7.e1b.tim@vegeta.ath.cx> <slrna0gbau.r1.philb@wolf14.nols.com>Show Full Headers
Complete Article Headers
Message-ID: <slrna0iudi.l3f.tim@vegeta.ath.cx> Subject: Re: [slrn] ispell macro Date: Sun, 02 Dec 2001 00:49:23 GMT From: Tim Hammerquist <tim@vegeta.ath.cx> References: <Xns9169504726A04luutrangeocities@63.169.72.7> <Xns91698AE3DFCBCbutterflybillgrapevi@209.242.76.10> <slrna0fqt7.e1b.tim@vegeta.ath.cx> <slrna0gbau.r1.philb@wolf14.nols.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed.slurp.net!not-for-mail Newsgroups: news.software.readers Reply-To: timmy@cpan.org X-Editor: Vim-600 http://www.vim.org/ User-Agent: slrn/0.9.7.3 (Linux) Lines: 41 NNTP-Posting-Host: 206.100.200.57 X-Trace: newsfeed.slurp.net 1007254163 206.100.200.57 (Sat, 01 Dec 2001 18:49:23 CST) NNTP-Posting-Date: Sat, 01 Dec 2001 18:49:23 CST