🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #1351

Re: A feature and not a bug

#1351
From: Frank Jensen
Date: Wed, 12 Aug 1992 11:56
56 lines
2129 bytes
>>>>> On 5 Aug 92 13:57:00 GMT, asnd@msr.triumf.ca (Donald Arseneau) said:

Donald> In article <ROLFL.92Aug5130152@karl.uio.no>, rolfl@karl.uio.no (Rolf Lindgren) writes...

[...]

>\catcode198=13	\chardefF="5D
>\catcode230=13	\chardeff="1A
> 
>\uccodef=F\lccodef=f
>\uccodeF=F\lccodeF=f


Donald> That explains it.  The extended characters are made active (like ~) and
Donald> behave just like \control \sequences.  As is the case for the \ae command, 
Donald> an active f is not affected by \uppercase.

[Note: the `ae' letter has been converted to an `f' somewhere on the net.]

This is not true.  `\uppercase' will act on any character with an
appropriate `\uccode'.  Take for eaxample the following TeX code:

	\uccode`\{=`a
	\uccode`\}=`b
	\uccode`\$=`c
	\uccode`\&=`d
	\uccode`\#=`e
	\uccode`\^=`f
	\uccode`\_=`g
	\uccode`\ =`h
	\uccode`\?=`i
	\uccode`\~=`j
	\uppercase{$^{}_{}$ ?~&#}}

Running this code through TeX will produce the following:

	This is TeX, C Version 3.141
	(utest.tex
	! Undefined control sequence.
	<to be read again> cfabgabchij
	                              dee
	l.11 \uppercase{$^{}_{}$ ?~&#}
	                              }
	? 

Now TeX complains about an undefined control sequence, namely the
active character `j'!

This little test clearly shows that active characters can be used to
input special letters and still have \uppercase work!

---
Frank Jensen,   fj@iesd.auc.dk
Department of Mathematics and Computer Science
Aalborg University
DENMARK
Technical Details
Message-ID: <FJ.92Aug12125622@loke.iesd.auc.dk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!dkuug!iesd!iesd.auc.dk!fj
References: <9207301408.AA00220@triples.math.mcgill.ca> <ROLFL.92Aug4154913@karl.uio.no> <ROLFL.92Aug5130152@karl.uio.no> <5AUG199206571142@msr.triumf.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!dkuug!iesd!iesd.auc.dk!fj
From: fj@iesd.auc.dk (Frank Jensen)
Newsgroups: comp.text.tex
Subject: Re: A feature and not a bug
Message-ID: <FJ.92Aug12125622@loke.iesd.auc.dk>
Date: 12 Aug 92 11:56:22 GMT
References: <9207301408.AA00220@triples.math.mcgill.ca>
 <ROLFL.92Aug4154913@karl.uio.no> <ROLFL.92Aug5130152@karl.uio.no>
 <5AUG199206571142@msr.triumf.ca>
Sender: news@iesd.auc.dk (UseNet News)
Organization: Mathematics and Computer Science, Aalborg University
Lines: 56
In-Reply-To: asnd@msr.triumf.ca's message of 5 Aug 92 13:57:00 GMT