Article View: comp.text.tex
Article #1353Re: Summary: How to \upcase in an 8-bit font
From: Frank Jensen
Date: Wed, 12 Aug 1992 12:12
Date: Wed, 12 Aug 1992 12:12
53 lines
2315 bytes
2315 bytes
>>>>> On 5 Aug 92 19:03:02 GMT, rolfl@karl.uio.no (Rolf Lindgren) said:
Rolf> Nntp-Posting-Host: karl.uio.no
Rolf> The problem with the upper half of the fonts not being capitalized has
Rolf> been solved.
Rolf> The problem may have been one out of two:
Rolf> 1. I tried to be clever and set the catcode to 13, so as to avoid having
Rolf> to place ` in front of every character. This was pointed out by several
Rolf> persons, but I don't think that was the real cause of the problem because
Rolf> I set the catcode to 11 after the assignments was finished.
You did something like this [imagine that `ae' and `AE' are real characters]:
\catcode`ae=\active \chardef ae="1A
\catcode`AE=\active \chardef AE="1D
\uccode ae=AE \lccode ae=ae
\uccode AE=AE \lccode AE=ae
This has the effect of assigning upper and lower case codes to the
ASCII characters with codes "1A and "1D. The correct approach is to say:
\uccode`ae=`AE \lccode`ae=`ae
\uccode`AE=`AE \lccode`AE=`ae
This should be done before making them active.
Rolf> 2. The characters did't have a matchode. In Latin1, e and E have matchodes
Rolf> of "70E5 and "70C5, respectively. This works for e and E:
Rolf> \defe{}\defE{} % Get rid of cmr's definotion
Rolf> \lccode`e=`e\uccode`e=`E
Rolf> \lccode`E=`e\uccode`E=`E
Rolf> \sfcode`e=1000\sfcode`E=999
Rolf> \mathcode`e="70E5\mathcode`E="70C5 % Let TeX know where e and E are
Rolf> % We don't use \chardef at all!
Rolf> \catcode`e=11\catcode`E=11 % cmr wants 13, now we want 11
Rolf> Anyway, I think it was the mathcodes that satisfied my TeX.
Math codes don't have anything to do with this particular problem.
---
Frank Jensen, fj@iesd.auc.dk
Department of Mathematics and Computer Science
Aalborg University
DENMARK
Technical Details
Message-ID:
<FJ.92Aug12131240@loke.iesd.auc.dk>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!dkuug!iesd!iesd.auc.dk!fjReferences:
<ROLFL.92Aug5200302@karl.uio.no>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: Summary: How to \upcase in an 8-bit font Message-ID: <FJ.92Aug12131240@loke.iesd.auc.dk> Date: 12 Aug 92 12:12:40 GMT References: <ROLFL.92Aug5200302@karl.uio.no> Sender: news@iesd.auc.dk (UseNet News) Organization: Mathematics and Computer Science, Aalborg University Lines: 53 In-Reply-To: rolfl@karl.uio.no's message of 5 Aug 92 19:03:02 GMT