Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!agate!twinkies.berkeley.edu!lippin From: lippin@twinkies.berkeley.edu (The Apathist) Newsgroups: comp.sys.mac.programmer Subject: Re: FindScriptRun ?!$@! Message-ID: <1990Nov8.024436.4088@agate.berkeley.edu> Date: 8 Nov 90 02:44:36 GMT References: <27387FBD.12689@orion.oac.uci.edu> Sender: usenet@agate.berkeley.edu (USENET Administrator) Reply-To: lippin@math.berkeley.edu Organization: Authorized Service, Incorporated Lines: 26 Recently ggiergiel@vmsa.oac.uci.edu wrote: >Version 2.0 of Script Manager "documents" a new script interface >routine called FindScriptRun. The thing is supposed to take a pointer >to a block of character codes and to return the first contiguous >script block within that text. The obvious question is: How does it >determine which script a character code belongs to? While I don't have the documentation at my fingertips, I believe that FindScriptRun uses the current script system (according to thePort^.txFont) to parse the text, which it then splits into script runs. So the text you pass it has to be all of the same script. This leads one to wonder as to the utility of FindScriptRun. The solution to this puzzle lies in the fact that some (most?) script systems are two--two--two scripts in one: they contain roman characters as well as the native ones. FindScriptRun lets you find the roman characters that don't belong. --Tom Lippincott lippin@math.berkeley.edu "The living dead don't need to solve word problems!" --Calvin