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 /
Appendix B - International Resources / International Bundle Resource (Type ' itlb')


The ItlbRecord Data Type

The structure of the standard international bundle resource, defined by the ItlbRecord data type, is as follows:

TYPE ItlbRecord = 
   RECORD
      itlbNumber:    Integer;       {'itl0' ID number}
      itlbDate:      Integer;       {'itl1' ID number}
      itlbSort:      Integer;       {'itl2' ID number}
      itlbFlags:     Integer;       {script flags}
      itlbToken:     Integer;       {'itl4' ID number}
      itlbEncoding:  Integer;       {'itl5' ID number (optional)}
      itlbLang:      Integer;       {current language for script}
      itlbNumRep:    SignedByte;    {current numeral code}
      itlbDateRep:   SignedByte;    {current calendar code}
      itlbKeys:      Integer;       {'KCHR' ID number}
      itlbIcon:      Integer;       {ID of keyboard icon family}
   END;
Field Description
itlbNumber
The resource ID of the numeric-format ('itl0') resource to be used by this script. The Script Manager initializes the script variable accessed through the selector smScriptNumber from this field.
itlbDate
The resource ID of the long-date-format ('itl1') resource to be used by this script. The Script Manager initializes the script variable accessed through the selector smScriptDate from this field.
itlbSort
The resource ID of the string-manipulation ('itl2') resource to
be used by this script system. The Script Manager initializes
the script variable accessed through the selector smScriptSort from this field.
itlbFlags
The bit flags that describe the features of this script system. The Script Manager initializes the script flags variable, accessed through the selector smScriptFlags, from this field. For example, you can set the smsfAutoInit bit in the itlbFlags field to instruct the Script Manager to initialize the script system automatically. For definitions of the constants that specify the components of the script flags word, see the list of selectors for script variables in the chapter "Script Manager" in this book.
itlbToken
The resource ID of the tokens ('itl4') resource to be used by this script. The Script Manager initializes the script variable accessed through the selector smScriptToken from this field.
itlbEncoding
The resource ID of the encoding/rendering ('itl5') resource to be used by this script system. The Script Manager initializes the script variable accessed through the selector smScriptEncoding
from this field. If there is no encoding/rendering resource for this script, this field is set to 0. This field was reserved in versions of system software prior to 7.0.
itlbLang
The language code specifying the default language for this script. The Script Manager initializes the script variable accessed through the selector smScriptLang from this field. See the chapter "Script Manager" in this book for a list of defined language codes.
itlbNumRep
The numeral code to be used by this script system. This byte specifies which types of numerals the script supports. The Script Manager initializes the high-order byte of the script variable accessed through the selector smScriptNumDate from this field. For definitions of the constants that specify numeral codes, see the list of selectors for script variables in the chapter "Script Manager" in this book.
itlbDateRep
The calendar code to be used by this script system. This byte specifies which types of calendars the script supports. The Script Manager initializes the low-order byte of the script variable accessed through the selector smScriptNumDate from this field. For definitions of the constants that specify calendar codes, see the list of selectors for script variables in the chapter "Script Manager" in this book.
itlbKeys
The resource ID of the preferred keyboard-layout ('KCHR') resource to be used by this script system. The Script Manager initializes the script variable accessed through the selector smScriptKeys from this field.
itlbIcon
The resource ID of the keyboard icon family (resource types 'kcs#', 'kcs4', and 'kcs8') for the default keyboard layout to be used with this script. The Script Manager initializes the script variable accessed through the selector smScriptIcon from this field. (When loading a keyboard-layout resource, the Script Manager in fact ignores that variable and looks only for a keyboard icon suite whose ID matches that of the keyboard-layout resource being loaded.)

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996