- Inside Macintosh: Text /
- Chapter 6 - Script Manager / Script Manager Reference
Routines
The Script Manager routines documented in this section allow you to
- control the system direction
- access Script Manager variables
- access script variables
- control the keyboard and keyboard script
- determine script codes
- obtain character-type information
- directly access a script system's international resources
- tokenize text
- transliterate text
- replace the default routines for a 1-byte complex script system
Throughout these routine descriptions, unless otherwise noted, the Script Manager expects that
- there is a buffer containing text characters only; font and style information are stored separately
- the storage order of the characters--the order in which character codes are stored in memory--is their logical order, the order in which they would most naturally be entered from the keyboard
- all offsets within text buffers are zero-based and specified in bytes, not characters
- a valid graphics port exists, and the font of the port is set correctly; all text-related fields in the graphics port record reflect the characteristics of the text being manipulated
- Assembly-language note
- You can invoke each of the Script Manager routines that uses the
_ScriptUtil trap with a macro that has the same name as the routine, preceded by an underscore. See "Summary of the Script Manager" at
the end of this chapter for a list of the routines that use the _ScriptUtil trap.
Subtopics
- Checking and Setting the System Direction
-
- Checking and Setting Script Manager Variables
-
- Checking and Setting Script Variables
-
- Making Keyboard Settings
-
- Determining Script Codes From Font Information
-
- Analyzing Characters
-
- Directly Accessing International Resources
-
- Tokenization
-
- Transliteration
-
- Replacing a Script System's Default Routines
-
© Apple Computer, Inc.
6 JUL 1996