Handling Unicode Text Editing With MLTE
PDF
MLTE Introduction
MLTE Concepts
Introduction to International Text on the Mac OS
Characters, Character Encodings, and Unicode
Keyboards and Input Methods
Overview of Text Handling
How MLTE Handles Text
Text Objects (TXNObject)
Text Attributes
The MLTE User Interface
Menu Support
Font Menu
Fonts Window
Document-Wide Formatting
Tab Settings
Text Alignment
Typing and Inline Input
Caret Position and Movement
The Selection Range, the Insertion Point, and Highlighting in MLTE
Drag and Drop
Line Breaking
ATSUI Font Features and Variations
Keyboard and Font Synchronization
Keyboard to Font Synchronization
Font to Keyboard Synchronization
Overriding Font Synchronization
Font Substitution
MLTE and Carbon Events
MLTE Tasks
Displaying Static Text
Initializing MLTE
Setting Up Font Descriptions
Assigning Initialization Options
Calling the MLTE Initialization Function
Setting Up the Menu Bar
Creating a Font Menu Object
Terminating MLTE
Working With Text Objects
Creating a Window
Setting Options for the Text Object’s Frame
Creating a Text Object
Disposing of a Text Object
Handling File and Edit Menu Commands
Calling the Appropriate MLTE Function
Updating the File and Edit Menus
Setting Font Size and Style
Handling Multiple Text Objects
Posting an Alert
Working With Document-Wide Settings
Implementing Word Wrap
Implementing Line Justification
Advanced Topics
Working With Embedded Objects
Displaying Chemical Equations
Accessing and Displaying Advanced Typographical Features
Providing an Interface for Users to Select Advanced Features
Responding to User Selected Events for Advanced Features
Translating the User’s Selections to Constants
Assigning Constants to the Type Attributes Data Structure
Calling the MLTE Set Type Attributes Function
Updating the Display
Supporting Monostyled Text
Customizing MLTE Support for Carbon Events
What’s Installed On a Text Object
Building a Dictionary
Instantiating the Carbon Events Structure
Calling the function TXNSetTXNObjectControls
Turning Off MLTE Support for Carbon Events
Writing an Action Key Mapping Callback Function
Migrating an Application from TextEdit to MLTE
Revision History
MLTE Glossary