ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Giuseppe Bilotta <bourbaki@bigfoot.com>
Cc: "ConTeXt" <ntg-context@ntg.nl>
Subject: Re[2]: ROT13 and alike
Date: Wed, 14 Mar 2001 01:26:25 +0100	[thread overview]
Message-ID: <1268779120.20010314012625@bigfoot.com> (raw)
In-Reply-To: <3.0.6.32.20010312213742.00b48500@server-1>

>>\startscrambling[rot13]
>> \swaps a to m  n to z
>> \swaps A to M  N to Z
>>% also \swaps  <num> to <num>  <num> to <num>, checking for same length
>>\stopscrambling

HH> too tricky probably but `a to `m may work  

Nope.  The  transformation  I meant was not a->m, n->z, but "all codes
between  a  and  m included should be sequentially mapped to the codes
between  n  and z, and vice versa. The same for caps". Maybe with more
keywords, like:

\startscrambling[rot3]
  \swaps a to w with d to z
  \swaps x to z with a to c
\stopscrambling

But for simple swappings:

\startscrambling[carbo]
   \swaps a o, e i     % a <-> o, e <-> i
   \swaps b p, c g, d t, f v % etcetera
\stopscrambling


      reply	other threads:[~2001-03-14  0:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-16 18:15 Giuseppe Bilotta
2001-02-17 18:30 ` Taco Hoekwater
2001-02-18 12:50   ` Giuseppe Bilotta
2001-02-19 11:19     ` Hans Hagen
2001-02-19 10:20 ` Hans Hagen
2001-02-19 22:45   ` Giuseppe Bilotta
2001-02-20 11:29     ` Hans Hagen
2001-02-20 15:58   ` Giuseppe Bilotta
2001-03-12 20:37     ` Hans Hagen
2001-03-14  0:26       ` Giuseppe Bilotta [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1268779120.20010314012625@bigfoot.com \
    --to=bourbaki@bigfoot.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).