🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #3641

Help from Macro guru sought.

#3641
From: Kurt Swanson
Date: Fri, 22 Jan 1993 14:58
35 lines
1897 bytes
I read a few news groups in the Swedish language.  Unfortunately quite
a few sites (not to mention nn) are not completely 8-bit clean, so the
last 3 letters of the swedish alphabet show up as brackets.  This is
quite annoying to read.  Thus I would like to run these articles
through a pipe to translate them into 8-bit.  I wrote the following
macro to do the pipe:

map show | macro 1
define 1
  save-full "|tr '}{|][\\' '�����\�'>/tmp/knn"
  goto-group "/tmp/knn"
  'a'
  continue
end

This works fine, but I have to hit "|" every time I get the bad
characters, and this puts me up a level such that when I finish
reading the translated copy, I return to the untranslated.  What I
would like is some way to see the translated message within nn without
jumping up a level.

Ideally I would like all messages in certain newsgroups to be piped
through the above tr statement before I see them. If this is not
possible i would like some sort of translation style like rot13 ("D"
in reading mode).  This translates what one sees, but doesn't jump up
a level...

Maybe my above solution could be modified such that "n" is
automatically enacted when I return down to the untranslated article.
Is this possible?

Any other ideas?
-- 
Kurt Swanson, Dept. of Computer Science,
Lunds universitet.  Kurt.Swanson@dna.lth.se
Technical Details
Message-ID: <1993Jan22.145852.1562@lth.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!mcsun!sunic!news.lth.se!kurt

Show Full Headers
Complete Article Headers
Message-ID: <1993Jan22.145852.1562@lth.se>
Subject: Help from Macro guru sought.
Date: Fri, 22 Jan 1993 14:58:52 GMT
From: kurt@dna.lth.se (Kurt Swanson)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!mcsun!sunic!news.lth.se!kurt
Newsgroups: news.software.nn
Sender: news@lth.se
Organization: Lund Institute of Technology, Sweden
Lines: 35