🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #63129

Re: [slrn] Calling ispell

#63129
From: Byrial Jensen
Date: Sun, 09 Jul 2000 00:00
37 lines
1938 bytes
John Bacalle <john@unixen.org.spam--me--not.invalid> wrote:
>This is a vim (my editor) thing, but how do I call ispell while posting
>with slrn?

You can call ispell via the slrn's post_filter_hook or directly from
your editor. In both cases you can remove headers and quotes before
the spell checking with a little program called newsbody I once made.

You can find it at <URL: http://home.worldonline.dk/~byrial/spellutils/>.

I use this post_filter_hook to choose between (D)anish or (E)nglish
spell checking or to c(a)ncel:

#v+
define post_filter_hook (file)
{
  variable rsp;
  variable cmd;

  rsp = get_response ("AaDdEe",
                      "Stavekontrol? \001Annul�r, \001Dansk, \001Engelsk");

  if ((rsp == 'd') or (rsp == 'D'))
    cmd = Sprintf ("newsbody -qs -n %s -p ispell -- -d dansk -x %%f", file, 1);
  else if ((rsp == 'e') or (rsp == 'E'))
    cmd = Sprintf ("newsbody -qs -n %s -p ispell -- -x %%f", file, 1);
  else return;

  () = system (cmd);
}
#v-

-- 
Byrial
http://home.worldonline.dk/~byrial/

Technical Details
Message-ID: <slrn8mhip3.7q5.bjensen@ask.ask>
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!not-for-mail
References: <slrn8lrdt0.214.john@localhost.localdomain>

Show Full Headers
Complete Article Headers
Message-ID: <slrn8mhip3.7q5.bjensen@ask.ask>
Subject: Re: [slrn] Calling ispell
Date: Sun, 09 Jul 2000 00:00:00 +0000
From: bjensen@nospam.dk (Byrial Jensen)
References: <slrn8lrdt0.214.john@localhost.localdomain>
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!not-for-mail
X-Deja-AN: 644322464
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: news-abuse@wol.dk
X-Trace: news000.worldonline.dk 963169083 212.54.91.210 (Sun, 09 Jul 2000 20:58:03 MET DST)
Organization: Customer of World Online
Mime-Version: 1.0
User-Agent: slrn/0.9.6.2 (Linux)
NNTP-Posting-Date: Sun, 09 Jul 2000 20:58:03 MET DST
Newsgroups: news.software.readers