🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by Byrial Jensen Sun, 09 Jul 2000 00:00
Re: [slrn] Calling ispell
#63129
Author: 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/

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads