Up   Previous

Tags and Data

Table B-1 lists the tags that MLTE recognizes.

Table B-1. Tags and Data
Tag Data Comments
utxt A 4-byte word that specifies the length of the tagged data in bytes (that is, everything in the file except the 4-byte word and the caret position), followed by a block of data of variable length that represents the contents of the file. An MLTE file begins with this tag. If the file contains only text, this data is simply the Unicode text characters. If the file contains text and embedded data, the text data consists of the text characters and a character for each embedded object that represents the data type of that object. The data that describes the content of the object appears after the appropriate tag later in the file. See the pict , aiff , and moov tags.
runs A 4-byte word that specifies the total number of bytes of the style run data that follows. This tag normally appears after the utxt data and before individual style run tags and data.
UCTx Horizontal scaling factor (2 bytes), vertical scaling factor (2 bytes), font name (a Pascal string--byte length followed by characters), font size, (2 bytes), font face (4 bytes), and text color (an RGB color). This block of data defines QuickDraw style attribute information.
UCga Size (the number of bytes of attribute data that follows) followed by attribute data. Each attribute is specified as a tag (4 bytes), size (4 bytes), and a value. UCga stands for Universal Global Attribute. This block of data defines ATSUI style information. It should always be used unless ATSUI is not available.
pict A 4-byte word that specifies the length of the pict data, followed by two 16-bit words to represent scaling, followed by a block of data of variable length that represents the PICT object. MLTE does not alter the graphics data, nor does it know anything about PICT format.
aiff A 4-byte word that specifies the length of the aiff data, followed by two 16-bit words to represent scaling, followed by a block of data of variable length that represents the sound object. MLTE does not alter the sound data, nor does it know anything about AIFF.
moov A 4-byte word that specifies the length of the moov data, followed by two 16-bit words to represent scaling, followed by a block of data of variable length that represents the movie object. MLTE does not alter the movie data, nor does it know anything about 'MooV' format.
rlrs A 4-byte word that specifies the length of all ruler data followed by the ruler data. The ruler data is as follows:
Ruler class ID (4 bytes) In version 1 this value is 'brlr'
A 4-byte word that specifies the length of the class data.
Justification type (1-byte char ) Possible values are: 1 (left), 2 (right), 4 (center), 8 (full justification), and 16 (full justification for all lines, including the last line)
Line width (4-byte long ) Specifies the width of the line in pixels.
Justification, ATSUI (4-byte fract ) The degree of justification in a line. See also, kATSULineJustificationFactor in the ATSUI reference documentation.
Line flush, ATSUI (4-byte fract ) Specifies the value that represents how the text is aligned in relation to one or both margins. See also kATSULineFlushFactorTag in the ATSUI reference documentation.
Default tab value (2-byte short ) Width of the default tab in pixels.
Cursor/selection data does not have a tag Starting offset (4-byte long ), trailing edge (2 bytes, the last byte of which indicates true or false ), ending offset (4-byte long ), trailing edge (2 bytes, the last byte of which indicates true or false ) Information about the starting and ending points of the selection in the document.
The starting and ending offsets are actual character offsets. If the starting and ending offsets are the same value, they indicates cursor position.
Trailing edge data is used for caret handling; true indicates that the caret is closer to the trailing edge of the character at "offset -1."


Copyright © 2001 Apple Computer, Inc. (Last Updated January 11, 2001)

Up   Previous