[322] in Zephyr Mailing List

home help back first fref pref prev next nref lref last post

zwgc with perl interpreter (was: undead zwgcs)

daemon@ATHENA.MIT.EDU (David Nolan)
Sun Oct 4 12:45:41 1998

Date: Sun, 04 Oct 1998 12:36:07 -0400
From: David Nolan <vitroth+@cmu.edu>
To: zephyr@MIT.EDU
In-Reply-To: <tx1vhm8fd76.fsf@cygnus.com>



--On Monday, September 28, 1998, 11:51 AM -0400 Ken Raeburn
<raeburn@cygnus.com> wrote:

> On the other hand, I don't see that either Tcl or Perl would be a
> particularly poor choice either.  For any of the three, a few
> auxiliary routines would be needed that could be written in the target
> language or in C, and some hooks for receiving the message and for
> displaying it.

In fact this has already been done for perl.  Someone at MIT did a version
of zwgc called Zion that just replaced the zwgc interpreter with a perl
interpreter, and provides a few functions (notably put, and fields) to the
interpreter.    

As far as I can tell no one at MIT has touched this in ages, but I did some
work on it a while back to make it work in the current CMU zephyr source.
I also wrote a few perl functions to provide some other useful features
(stylestrip, protect, verbatim, etc.)

I've found it most usefull when combined with CMU's zwgcplus modifications.
(which allow keypress events in zwgc windows to be processed by the
zwgc.desc)  (For example, one common meme in the CS.CMU.EDU zephyr realm is
q-encoding, where some piece of text which not everyone would want to read
is encoded with alternating q's... i.e.  qAqtq qtqhqeq qeqnqdq qoqfq
qBqaqbqyqlqoqnq q5q'qsq qlqaqsqtq qeqpqiqsqoqdqeq,q qSqlqeqeqpqiqnqgq qiqnq
qLqiqgqhqtq,q qCqaqpqtqaqiqnq qSqhqeqrqiqdqaqnq qtquqrqnqsq qiqnqtqoq qaq
qwqaqlqrquqsq.q   Most of the CS zephyr folk use emacs-zephyr, which makes
decoding this easy...  In zwgc.desc this would be annoying to decode.  But
in Zion, obviously that can be stripped out with a simple perl regexp, and
thus when I get such a zephyr I can strike meta-q to redisplay the zephyr
with the q's removed.  Another useful feature I use is regular expression
punting...)

Anyway... If anybody would be interested in getting their hands on this, I
can clean it up and send it to you.  (Unfortunately, right now its
integrated with the zephyr build process, because it builds in the same way
zwgc does.  Maybe I'll strip it out of the zephyr build tree when I get a
chance.)

-David

David Nolan                    <*>                    vitroth+@cmu.edu
curses: May you be forced to grep the termcap of an unclean yacc while
      a herd of rogue emacs fsck your troff and vgrind your pathalias!


home help back first fref pref prev next nref lref last post