Article View: news.software.nn
Article #2835Re: Contents of group.
From: Bill Wohler
Date: Fri, 12 Jun 1992 08:46
Date: Fri, 12 Jun 1992 08:46
246 lines
9536 bytes
9536 bytes
mramey@milton.u.washington.edu (Mike Ramey) writes:
>Lots of what I've seen in news.software.nn seem (to me) to be rather
>esoteric. I'd like to see more questions and answers from/for the
>beginning users. The FAQ also seems to be -very- technical. Perhaps
>two different FAQ's would be useful: part 1 for beginners, part 2 for
>advanced users, part 3 for programmers who install and maintain nn.
mike,
thanks for the feedback--i wish i received more.
i believe the faq does represent the *frequently asked questions* on
this newsgroup, plus other generally useful information. it's just
that the questions are esoteric. ;-)
the faq is already split into "Building nn", "nnmaster" and "Using
nn" sections. i did notice a couple of questions that could be
moved from "using" to "building," and it could be that the "using"
section could be broken into two sections. if you, or anyone else,
would like to arrange the table of contents the way you'd like to
see it and mail it to me, i would appreciate it and use your suggestions.
i'm afraid there has been *0* progress on the following. i believe
such postings would be *very* useful, to beginning and seasoned
users alike. any fresh ideas?
*****
Subject: Is there a library of macros and other nn features?
From: Using nn-27
When complete, it will be a companion posting to this one. If you
have not mailed me <wohler@sap-ag.de> your init file, or you have
made substantial changes since the last time, please send it in. If
anyone is handy in perl or awk and would like to write some scripts
to reduce multiple init files to variable summaries (like the one I
posted a while ago), macro definitions and presentation sequence
tricks, I would like to talk to you.
*****
if you're interested, here is some brainstorming i did at one time:
Specification of Producing a NN Init File Summary
1. Introduction
The following sections are present in the nn init file:
1. Variable settings
2. Key mappings
3. Macros
4. On command
5. On entry
6. Sequence
It would be useful to summarize the init files of all nn users so that
users may have a reference to enable nn to do more for them. The goal
of this brief paper is to produce guidelines on how these summaries
might be created, so that we can all work together to produce these
summaries. Please forward any comments or changes to me so that
this specification represents reality.
This specification is originally accompanied by many example mail
messages. When complete, a program will generate all the summaries
automatically from mail messages. Thus, I will maintain the library
of init files, and run this program--when finished--monthly and post
the results.
If you should feel like attaching a module in this specification,
please let me know so I can reduce duplicate efforts.
2. Language
I had originally intended to do this as an exercise to learn Perl.
Unfortunately I haven't had the time to do this, and thus am releasing
the mail files and this specification now in hopes that people get the
information a little sooner.
So, while I'd like to see this done in Perl, c, lex, yacc, sh, csh,
awk and sed are also fine. The specification is defined in modules
so each section can be performed as desired.
3. Specification
The idea is that we start with some mail messages and we end up with a
series of files that contain the summaries. These specifications are
pie in the sky so punting is allowed (sorry for the American slang ;-).
3.1 Input
The input will simply be a directory that contains mail messages in
their own files that contain private init files, system init files, or
excerpts from init files. Portions of init files that contain
sections from other users that are also found in this directory will
be ignored. These files are named with increasing numbers (like a MH
folder).
Each of the modules will parse these files in their own way, although
it may be necessary to write a generic filter that takes all the mail
messages and filters them into a single file that is then processed by
all modules.
It may be that mail messages will have to be manually processed a bit
in case automatically extracting the information from so many
different mail files proves to be too difficult. The case to purge
older init file from someone who has sent more than one will also have
to addressed, or to extract or remove sections of init files that are
written by one person but included in someone else's.
3.2 Main program
This will be the main driver that calls all the modules. It will be
written in sh, and simply call the modules by name. If any files
using C source are used, then a Makefile will be created whose "all"
target compiles everything, and then calls the main program.
3.3 Modules
Modules will be standalone, meaning they can be called by themselves.
They will also take no arguments and take nothing from standard in and
not write to standard out.
The specification of the following files will be mostly by example.
The name of the output file will be designated in each section. The
basename of this output file is the basis for all the other files used
to generate it. Files will have suffixes based on their contents:
sh Bourne/Korn shell
csh C shell
c,h C source
l,y lex, yacc source
pl Perl
awk awk
sed sed
In the case that several executables based on C source are used, a
number is appended to the source and executable name which is
associated with the order in which it is called.
Enough boring stuff. Here's the meat.
3.3.1. Variable settings
The output file created will be named "variable.out".
This is a summary of all the variables used in the init files with
counts of their occurrences or listings of various values that they
take.
The header and some example variables with different type values are
shown:
Variable On Off Other values (occurrences)
auto-select-subject 10 2
bug-report-address 0 0 cif@uhura.cc.rochester.edu(1)
markw@wc.novell.com(1)
nn-bugs@dkuug.dk(1)
default-distribution 0 0 world(14) na(1) local(2)
check-db-update-time 0 0 6(1) 1(1)
3.3.2. Macros
The output file created will be named macros.out.
This will be a list of macros with increasing numbers (in case they
are to be uniquely referenced by other files). It could be that it
also contains key mapping commands that go along with the macros in
case these key mappings cannot be placed in the key mapping file.
Macros shall appear as follows:
# Comment, if provided.
# Contributing author in the form: Buckaroo Bonzai <bonzai@yoyodyne.sci>
define n
<macro commands>
end
map place key macro n
3.3.3. Key mappings
The output file created will be named key.out.
Some key mappings stand alone. Others are only meaningful in groups
(like if someone is trying to make nn look like emacs). Since the
mappings are basically macros, perhaps the macro parts will be placed
in the macro file, and the key.out file will merely reference them, or
in this case it could be that the mapping will be found in the macro
file along with the macro. Thus, the specification for this file is
not yet well defined.
3.3.4. On command
The output file created will be named on_command.out.
This file will contain all the "on command" sections such as "on
slow", "on start-up" and so on. All examples will be sorted by
command and each will look like:
# Comment, if provided
# Contributing author in the form: Buckaroo Bonzai <bonzai@yoyodyne.sci>
on command
<commands>
end
3.3.5. On entry
The output file created will be named on_entry.out.
This file will show all the actions that are executed with each
newsgroup. Entries will be sorted by newsgroup. In the case that
several newsgroups appear, sort on the first newsgroup. Each on entry
command will look like:
# Comment, if provided
# Contributing author in the form: Buckaroo Bonzai <bonzai@yoyodyne.sci>
on entry newsgroups ...
<commands>
end
3.3.6. Sequence
The output file created will be named sequence.out.
This file will show "interesting" entries in sequences. An uninteresting
sequence is:
rec.arts.bodyart
A slightly more interesting sequence is:
rec.arts.bodyart +$F/$N (1)
But the really interesting sequences look like:
alt.sex.pictures ~/bitmaps/gif/ (
:local consolidated-menu off
)
Perhaps entire sequences might be interesting, if only to show where
to put RC's and NEW and "%" and ">" and so on.
Bill Wohler <wohler@sap-ag.de> <sapwdf!wohler>
Heidelberg Red Barons Ultimate Frisbee Team
Technical Details
Message-ID:
<3530@sapwdf.UUCP>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!Germany.EU.net!unido!sapwdf!wohlerReferences:
<mramey.708282836@milton>Show Full Headers
Complete Article Headers
Message-ID: <3530@sapwdf.UUCP> Subject: Re: Contents of group. Date: Fri, 12 Jun 1992 08:46:03 +0000 From: wohler@sapwdf.UUCP (Bill Wohler) References: <mramey.708282836@milton> 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!Germany.EU.net!unido!sapwdf!wohler Newsgroups: news.software.nn Reply-To: Bill Wohler <wohler@sap-ag.de> Organization: SAP AG, Walldorf, Germany Lines: 246