Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!ux1.cso.uiuc.edu!resnick From: resnick@cogsci.uiuc.edu (Pete Resnick) Newsgroups: comp.sys.mac.programmer Subject: Re: upper2lower() Message-ID: <1991Feb17.192911.22844@ux1.cso.uiuc.edu> Date: 17 Feb 91 19:29:11 GMT References: <1991Feb16.212018.1987@sics.se> Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 30 ollef@sics.se (Olle Furberg) writes: > What's the right way to convert a letter from upper to lower case? >For all letters A-Z, it's very easy. But how do I find the lower case >version of "E" with acute accent? > There's another problem with letters like "E" with trema, which only exists >in some fonts (e.g. Times), how do I know if the current font hasn't put >something else in the last 40 positions? In the Script Manager 2.0 docs, there are two routines declared: Pascal: Procedure UprText(textPtr: Ptr; len: Integer); Procedure LwrText(textPtr: Ptr; len: Integer); C: pascal void UprText(Ptr textPtr, short len); pascal void LwrText(Ptr textPtr, short len); Each takes text up to 32K in length. For more compicated conversions, there is the Transliterate function, documented in IM V-311. -- Pete Resnick (...so what is a mojo, and why would one be rising?) Graduate assistant - Philosophy Department, Gregory Hall, UIUC System manager - Cognitive Science Group, Beckman Institute, UIUC Internet/ARPAnet/EDUnet : resnick@cogsci.uiuc.edu BITNET (if no other way) : FREE0285@UIUCVMD