Thread View: news.software.readers
4 messages
4 total messages
Started by uno
Thu, 01 May 2003 08:17
[slrn] use aspell instead of ispell
Author: uno
Date: Thu, 01 May 2003 08:17
Date: Thu, 01 May 2003 08:17
8 lines
1050 bytes
1050 bytes
What's the syntax to use in slrnrc and how do I configure it to ingnore quoted content? -- Regards Steve
Re: [slrn] use aspell instead of ispell
Author: SINNER
Date: Thu, 01 May 2003 12:20
Date: Thu, 01 May 2003 12:20
22 lines
1947 bytes
1947 bytes
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. here is what is in my vimrc ^T checks the spelling. "Spelling Macros " map ^T \1\2<CR>:e! %<CR> map \1 :w!<CR> map \2 :!newsbody -qs -n % -p aspell check \%f<CR> HTH -- David Good day for overcoming obstacles. Try a steeplechase.
Re: [slrn] use aspell instead of ispell
Author: Thierry Thomas
Date: Thu, 01 May 2003 12:39
Date: Thu, 01 May 2003 12:39
53 lines
2509 bytes
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.
Re: [slrn] use aspell instead of ispell
Author: SINNER
Date: Thu, 01 May 2003 12:49
Date: Thu, 01 May 2003 12:49
22 lines
2225 bytes
2225 bytes
While strolling through news.software.readers, Thierry Thomas was overheard plotting: > 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: [snip the details] OK, but my way was easier and less typing :) of cource it requires that you use vim. Does anyone use anything else :P~ -- David If a man loses his reverence for any part of life, he will lose his reverence for all of life. -- Albert Schweitzer
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