🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Jens Wahnes Mon, 03 Mar 2003 18:46
Re: [slrn] Watch Thread & Spell Check
#121202
Author: Jens Wahnes
Date: Mon, 03 Mar 2003 18:46
42 lines
2688 bytes
Mike Vanecek wrote:

> As an old Agent user I am use to being able to mark an article with
> Watch Thread and having it automatically be marked whenever that thread
> had new posts. Under slrn, if I understand it correctly, one uses
> scoring. However, a Watch Thread is somewhat temporary in that the
> thread eventually goes away. What is the easiest approach to take with
> slrn to be able pick out threads in the message list?

I'd suggest to have a look at the onekey scoring macro available from
the slrn website.  If you modify it to suit your needs, e.g. make it
- give +100 points,
- based upon the subject,
- in the current group only,
- expire in 30 days
then you should come pretty close to the "watch thread" functionality. 
You'll also may want to utilize cleanscore to remove old entries from
the scorefile when using this function heavily.  If you fear the work
of modifying the macro, you could of course just enter these values
every time you hit "K".

> Also, Agent had a built in spelling checker that would check one's post
> when sending or upon demand. Does anything exist to give slrn a check a
> post for spelling?

Well, there is ispell available to do spell checking.  It's probably
best to have it called from your editor so you can correct things right
in place, but one could possibly also use post_filter_hook to have it
called from slrn.

> I have been reading the docs.

Will wonders never cease ...


Jens

-- 
"What is robbing a bank compared with founding a bank?"

        - Bertolt Brecht
Re: [slrn] Watch Thread & Spell Check
#121214
Author: Byrial Jensen
Date: Mon, 03 Mar 2003 20:53
13 lines
1662 bytes
Jens Wahnes <jewa@gmx.net> wrote:
> 
> Well, there is ispell available to do spell checking.  It's probably
> best to have it called from your editor so you can correct things right
> in place, but one could possibly also use post_filter_hook to have it
> called from slrn.

You can also use newsbody as a filter when you call ispell or aspell
or whatever is your favorite spell checker. Newsbody is a little
program I wrote some years ago which can remove headers, quotes and
signature before calling the real spell checker. Get it at
<http://http://home.worldonline.dk/byrial/spellutils/>.
Re: [slrn] Watch Thread & Spell Check
#121692
Author: Mike Vanecek
Date: Tue, 11 Mar 2003 17:33
41 lines
2270 bytes
On Mon, 03 Mar 2003 20:53:17 GMT, Byrial Jensen wrote:
> Jens Wahnes <jewa@gmx.net> wrote:
>> 
>> Well, there is ispell available to do spell checking.  It's probably
>> best to have it called from your editor so you can correct things right
>> in place, but one could possibly also use post_filter_hook to have it
>> called from slrn.
> 
> You can also use newsbody as a filter when you call ispell or aspell
> or whatever is your favorite spell checker. Newsbody is a little
> program I wrote some years ago which can remove headers, quotes and
> signature before calling the real spell checker. Get it at
><http://http://home.worldonline.dk/byrial/spellutils/>.

I am still having problems getting a connection to newsbody that works.
I have the following:

[rhread@www]$ cat .vimrc
" Spelling Macros
map ^T \1\2<CR>:e! %<CR>
map \1 :w!<CR>
map \2 :!newsbody -qs -n % -p aspell check \%f<CR>

[rhread@www]$ newsbody -v
newsbody (spellutils) 0.7

[rhread@www]$ aspell -v
@(#) International Ispell Version 3.1.20 (but really Aspell .32.6 alpha)

If I do a Ctrl-T while in command mode in VI while editing my post; I
get an E73: tag stack empty error printed at the bottom of the screen.

What else do I need or need to do to get this to work on a RH 7.1
system? I am running slrn via ssh. I am at a loss as to where to look
next.

Thanks, Mike.



Re: [slrn] Watch Thread & Spell Check
#121703
Author: Thierry Thomas
Date: Tue, 11 Mar 2003 20:05
18 lines
1795 bytes
On 11 Mar 2003 11:33:05 -0600, Mike Vanecek wrote:
>  I am still having problems getting a connection to newsbody that works.
>  I have the following:
>  
>  [rhread@www]$ cat .vimrc
>  " Spelling Macros
>  map ^T \1\2<CR>:e! %<CR>
>  map \1 :w!<CR>
>  map \2 :!newsbody -qs -n % -p aspell check \%f<CR>

Two "-" are requested before aspell's args:

#v+
/usr/local/bin/newsbody -qs -k Subject -n '%s' -p /usr/local/bin/aspell -- -c -x %%f
#v-
-- 
Th. Thomas.
Re: [slrn] Watch Thread & Spell Check
#121765
Author: Mike Vanecek
Date: Thu, 13 Mar 2003 01:03
42 lines
2088 bytes
On Tue, 11 Mar 2003 20:05:30 +0000 (UTC), Thierry Thomas wrote:
> On 11 Mar 2003 11:33:05 -0600, Mike Vanecek wrote:
>>  I am still having problems getting a connection to newsbody that works.
>>  I have the following:
>>  
>>  [rhread@www]$ cat .vimrc
>>  " Spelling Macros
>>  map ^T \1\2<CR>:e! %<CR>
>>  map \1 :w!<CR>
>>  map \2 :!newsbody -qs -n % -p aspell check \%f<CR>
> 
> Two "-" are requested before aspell's args:
> 
> #v+
> /usr/local/bin/newsbody -qs -k Subject -n '%s' -p /usr/local/bin/aspell -- -c -x %%f
> #v-

Thank you for your help. It took a while, but I finally found a
reference that suggested that ^T might not be an available key in vim,
especially via a ssh session. I finally settled on:

[rh_lists@www rh_lists]$ cat .vimrc
" Spelling Macros
map V \1\2<CR>:e! %<CR>
map \1 :w!<CR>
map \2 :!/usr/local/bin/newsbody -qs -n % -p /usr/bin/aspell check \%f<CR>

which now works as advertised.

I tried your combination and had an error about not being able to find a
file

newsbody: error: open .articles for reading: No such file or
directory.

shell returned 1

It don't matter now, cause it is finally working.

Mike.
 
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