Carbon


DelimiterInfo

Header: SpeechSynthesis.h

struct DelimiterInfo {
    Byte startDelimiter[2]; 
    Byte endDelimiter[2];
};

Field descriptions

startDelimiter

The start delimiter for an embedded command. By default, the start delimiter is “[[”.

endDelimiter

The end delimiter for an embedded command. By default, the end delimiter is “]]”.

A delimiter information structure defines the characters used to indicate the beginning and end of a command embedded in text. A delimiter can be one or two characters. The DelimiterInfo data type defines a delimiter information structure.

Ordinarily, applications that support embedded speech commands should not change the start or end delimiters. However, if for some reason you must change the delimiters, you can use the SetSpeechInfo function with the soCommandDelimiter selector. For example, you might do this if a text buffer naturally includes the delimiter strings. Before passing such a buffer to the Speech Manager, you can change the delimiter strings to some two-character sequences not used in the buffer and then change the delimiter strings back once processing of the buffer is complete.

If a single-byte delimiter is desired, it should be followed by a NULL (0) byte. If the delimiter strings both consist of two NULL bytes, embedded command processing is disabled.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)