Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site eosp1.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!princeton!eosp1!lincoln
From: lincoln@eosp1.UUCP (Dick Lincoln)
Newsgroups: net.jokes.d
Subject: Re: Rotation and lines that wont
Message-ID: <934@eosp1.UUCP>
Date: Thu, 14-Jun-84 11:17:07 EDT
Article-I.D.: eosp1.934
Posted: Thu Jun 14 11:17:07 1984
Date-Received: Fri, 15-Jun-84 00:48:10 EDT
References: <322@ames-lm.UUCP>
Organization: Exxon Office Systems, Princeton, NJ
Lines: 40

> I have a REALLY bad joke that I want to post, but there is no way I 
> will post it without rotating it.  I know how to rotate it, but the
> problem occurs when people try to unrot it.  Caesar, on this system
> anyway, doesn't rotate some lines.  It checks character frequencies
> or something like that.  I use tr on my system to encode it, but to
> decode it, I press D when the joke comes up mostly decoded, whereas
> some lines don't.  Any solutions?

On systems with the "tr" program the following command works perfectly.

	tr a-zA-Z n-za-mN-ZA-M

which reads from "stdin" and writes to "stdout".  This both "rotates"
and "unrotates" - executing twice returns to the original form.

On Berkeley VAX systems this fits nicely into both the ex or vi editors
with an alias for this "tr" command stored in the ".cshrc" file to
rotate portions of an edited file.  For example, with

	alias rot13 tr a-zA-Z n-za-mN-ZA-M

in my .cshrc I use the "piped filter" (!) vi command to rotate any
portion of my current text, by placing the cursor on the first line of
text to be rotated and executing

     !Grot13

where  stands for "carriage return".  For example,

     !Grot13

rotates all the remaining text from the starting point.

     !Lrot13

rotates just the text from the current cursor line to the last line on
the screen.

Both the "readnews" and "vnews" programs rot13 with the (D) command for
reading "rotated" notes.