From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20197 Path: news.gmane.org!not-for-mail From: "Adam Lindsay" Newsgroups: gmane.comp.tex.context Subject: Re: Capitalized headings Date: Tue, 3 May 2005 23:58:56 +0100 Message-ID: <20050503235856.24135@mail.comp.lancs.ac.uk> References: <98D0564335EC4848A87BEDEFF4EA056B55C2@posti.kpatents.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1115160791 20982 80.91.229.2 (3 May 2005 22:53:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 3 May 2005 22:53:11 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed May 04 00:53:06 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DT6Fs-00087T-1J for gctc-ntg-context-518@m.gmane.org; Wed, 04 May 2005 00:52:40 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0B6381281A; Wed, 4 May 2005 00:59:04 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24067-03; Wed, 4 May 2005 00:58:58 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1104E1280A; Wed, 4 May 2005 00:58:58 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 26C501280A for ; Wed, 4 May 2005 00:58:56 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23924-04-3 for ; Wed, 4 May 2005 00:58:55 +0200 (CEST) Original-Received: from mail.comp.lancs.ac.uk (mail.comp.lancs.ac.uk [148.88.3.45]) by ronja.ntg.nl (Postfix) with ESMTP id 2717D127F4 for ; Wed, 4 May 2005 00:58:55 +0200 (CEST) Original-Received: from [192.168.31.106] (localhost [127.0.0.1]) by mail.comp.lancs.ac.uk (8.12.10/8.12.10) with ESMTP id j43Mwr69013171 for ; Tue, 3 May 2005 23:58:53 +0100 (BST) Original-To: "mailing list for ConTeXt users" In-Reply-To: <98D0564335EC4848A87BEDEFF4EA056B55C2@posti.kpatents.com> X-Mailer: CTM PowerMail version 5.1 build 4340 English X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20197 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20197 Ville Voipio said this at Wed, 4 May 2005 00:32:59 +0300: >As \uppercase is a plain TeX macro, fixing it is not a good >choice, especially because it is known to be bad. However, >if \WORD could be built on \cap but without the font size >changing, it would work fine. The odd behaviour of \uppercased >(and the reasons to use it instead of the other choices) remains >unclear to me. I'm not entirely sure what's going on here, either, but as you've observed, the smallcaps mechanism handles these things very robustly. I was mucking about in this area recently, so here's a hack that hooks into that mechanism (hopefully without ruining the rest of the smallcaps). Insert disclaimers here ;) \unprotected \def\useallcaps {\def\cap@@uppercase{\the\everyuppercase\uppercased}% \def\cap@@lowercase{\the\everylowercase\lowercased}% \def\cap@@visualize{}} \protected \def\CAPITALIZED#1{\bgroup\useallcaps\smallcapped{#1}\egroup} \CAPITALIZED{abcABC=E5=E4=F6=C5=C4=D6} \smallcapped{abcABC=E5=E4=F6=C5=C4=D6} \userealcaps \smallcapped{abcABC=E5=E4=F6=C5=C4=D6} This is new stuff to me, so I can't really articulate what's happening at the moment. The code in core-fnt.tex isn't too tough to follow, though, if you want to examine further. -- =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-