🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #124252

Re: [slrn] use aspell instead of ispell

#124252
From: Thierry Thomas
Date: Thu, 01 May 2003 12:39
53 lines
2509 bytes
On Thu, 01 May 2003 12:20:07 GMT, SINNER wrote:
>  While strolling through news.software.readers, uno was overheard plotting:
> > What's the syntax to use in slrnrc and how do I configure it to
> > ingnore quoted content?
>  
>  it needs to be added to vimrc not slrnrc and you need the spellutils RPM
>  which contains a macro called newsbody which removes quoted text before
>  checking.

It's OK from vim, but it's possible to call it from slrn:

- in your ~/.slrnrc, put
interpret "/usr/local/share/examples/spellutils/aspell.sl"

- my /usr/local/share/examples/spellutils/aspell.sl contains:

#v+
% This macro demonstrates the use of the post_filter_hook
% In your .slrnrc, add the line `interpret "/usr/local/share/examples/spellutils/aspell.sl"'

%static
define aspell_file (file)
{
   variable cmd = "/usr/local/bin/newsbody -qs -k Subject -n '%s' -p /usr/local/bin/aspell -- -c -x %%f";
   () = system (sprintf (cmd, file));
}


define post_filter_hook (file)
{
   variable rsp;
   variable cmd;
   
   forever 
     {
	rsp = get_response ("NnAa",
			    "Select Filter? \001None, \001Aspell");
	
	switch (rsp)
	  {
	   case 'a' or case 'A':
	     aspell_file (file);
	  }
	  {
	   case 'n' or case 'N':
	     return;
	  }
     }
}
#v-
-- 
Th. Thomas.
Technical Details
Message-ID: <slrnbb25cd.iq.tthomas@graf.pompo.net>
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!newsfeed.vmunix.org!news.cs.univ-paris8.fr!fr.ndsoftwarenet.com!proxad.net!feeder2-1.proxad.net!news3-1.free.fr!not-for-mail
References: <slrnbb1lvn.4qb.Steve@rollcage.bzimage.ca> <8uf7o-rga.ln1@news.gates_of_hell.INVALID>

Show Full Headers
Complete Article Headers
Message-ID: <slrnbb25cd.iq.tthomas@graf.pompo.net>
Subject: Re: [slrn] use aspell instead of ispell
Date: Thu, 01 May 2003 12:39:41 +0000
From: Thierry Thomas <tthomas@mail.dotcom.fr>
References: <slrnbb1lvn.4qb.Steve@rollcage.bzimage.ca> <8uf7o-rga.ln1@news.gates_of_hell.INVALID>
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!newsfeed.vmunix.org!news.cs.univ-paris8.fr!fr.ndsoftwarenet.com!proxad.net!feeder2-1.proxad.net!news3-1.free.fr!not-for-mail
Newsgroups: news.software.readers
Organization: Kabbale Eros
Reply-To: thierry@pompo.net
Mail-Copies-To: nobody
X-No-Productlinks: yes
X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc;y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs:
X-PGP: 0xC71405A2
User-Agent: slrn/0.9.7.4 (FreeBSD)
Lines: 52
NNTP-Posting-Date: 01 May 2003 14:40:03 MEST
NNTP-Posting-Host: 81.56.186.139
X-Trace: 1051792803 news3-1.free.fr 16284 81.56.186.139:1091
X-Complaints-To: abuse@proxad.net