Text modifiers

Text modifiers are objects or components that analyze and modify text input. Each typing configuration can contain a chain of text modifiers. After keystrokes are converted to text using the virtual keyboard, the configuration applies each text modifier, in order, to the text. For example, you could include tools such as a spelling checker or a translator to process text.

The typing configuration encapsulates text modifiers using the abstract class TTextModifier. Derived classes encapsulate a particular kind of modifier. Currently the only concrete class is TTransliteratorModifier.

This figure shows the text modifier classes.


TTextModifier defines the abstract protocol that lets the typing configuration encapsulate and call a text modifier. The Modify function is implemented for each derived class; the configuration calls Modify to activate the modifier.

TTransliteratorModifier encapsulates a transliterator by storing a TTransliteratorHandle, a lightweight reference to a transliterator. Transliterators are described in detail in the next section.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker