Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Text /


Chapter 6 - Script Manager

This chapter describes the Script Manager, a core component of the Macintosh script management system. The Script Manager oversees script systems and gives you access to their features.

Read this chapter if you are writing a multiscript text-handling application and need access to the general settings and script-specific information provided by the Script Manager. Read this chapter also if you are writing a specialized application that parses source code or converts text among subscripts. Read this chapter also if you wish to modify the features or functions of an individual script system.

Before reading this chapter, you should be familiar with the Macintosh script management system, as described in the chapter "Introduction to Text on the Macintosh" in this book. Useful related information is found in the appendixes "International Resources," "Keyboard Resources," and "Built-in Script Support."

This chapter--and this book--do not catalog the features of individual script systems. More detailed information on the world's writing systems and the Macintosh script systems developed to support them can be found in Guide to Macintosh Software Localization.

The chapter gives a brief introduction to the Script Manager, and then shows how you can use the Script Manager to


Chapter Contents
About the Script Manager
The Script Manager and the Script Management System
The Script Manager and Applications
Evolution of the Script Manager
Using the Script Manager
Testing for the Script Manager and Script Systems
Controlling Settings
Checking and Setting the System Direction
Checking and Setting Script Manager Variables
Checking and Setting Script Variables
Making Keyboard Settings
Synchronizing the Font Script and Keyboard Script
Setting the Keyboard Script From the Font Script
Setting the Font Script From the Keyboard Script
Obtaining Information
Determining Script Codes From Font Information
How a Script Code Is Determined
Using the Font Force Flag
Using the International Resources Selection Flag
Analyzing Characters
Searching Text With Mixed Character Sizes
Getting Character-Type Information
Directly Accessing International Resources
Using Currency, Number, and Date Formats
Using Number Parts
Retrieving Text From Tokens
Using Word-Break Tables
Using Whitespace Information
Converting Text
Tokenization
Data Structures
Delimiters for Literals and Comments
Escape Character
Alphanumeric Tokens
Alternate Numerals
String Generation
Appending Results
Example
Transliteration
Modifying Script Systems
Replacing a Script System's Default International Resources
Replacing a Script System's Default Routines
Script Manager Reference
Constants
Script Codes
Language Codes
Region Codes
Token Codes
Selectors for Script Manager Variables
Selectors for Script Variables
Data Structures
Token Block Record
Token Record
Routines
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
Summary of the Script Manager
Pascal Summary
Constants
Data Types
Routines
C Summary
Constants
Data Types
Routines
Assembly-Language Summary
Trap Macros
Global Variables

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996