From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4122 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: ROT13 and alike Date: Mon, 19 Feb 2001 12:19:12 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010219121912.01800640@server-1> References: <001101c09844$ebd9ee20$a3ccfea9@nuovo> <3A8EC33F.3DB883D3@quicknet.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394812 23120 80.91.224.250 (23 Oct 2002 17:40:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:40:12 +0000 (UTC) Cc: "ConTeXt" Original-To: "Giuseppe Bilotta" In-Reply-To: <000001c099ab$fe257960$a3ccfea9@nuovo> Xref: main.gmane.org gmane.comp.tex.context:4122 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4122 At 01:50 PM 2/18/01 +0100, Giuseppe Bilotta wrote: >Taco Hoekwater wrote: > >> Here is a solution that is just a little bit more robust than >> your one: it obeys spaces and is properly nested. It also allows >> primitives in the input string (\par, for example); and \unexpanded >> macros that dont have an argument. >> >> Note that this is a hacker's version: you can't use this to process >> arbitrary text: macro's that expand into something and e.g. accents >> won't work! >> >> In general, it is very hard to do this kind of stuff safely in TeX. >> A verbatim module would probably be the best solution. OTOH, my >> approach allows: >> >> \section{\ROT{A section}} >> >[snip code] > >Well, that's an extremely instructive example! > >I gave a look at the verbatim approach, and got to the >attached files. > >They still don't handle accents etc; Hans, how to make >a verbatim that obeys cs's? They will if you have an encoding that makes char>127 active Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------