Verbs for GetEnvirons and SetEnvirons
Verbs for GetEnvirons and SetEnvirons
When you call GetEnvirons or SetEnvirons, you use a verb to describe the
variable that interests you. The names, values, sizes, and meanings of the
GetEnvirons and SetEnvirons verbs are listed in the following Table.
With version 7.0, the Script Manager global variables include a variable
that indicates if a double-byte script system (that is, one containing
double-byte character codes) is installed. The Boolean variable is accessible
with the smDoubleByte verb. (Examples of double-byte script systems include
KanjiTalk and Zhong-WenTalk.)
With version 7.0, the Script Manager global variables also contain a
pointer to the cache that stores the current 'KCHR' resource data. The pointer
is accessible with the smKCHRCache verb.Finally, with version 7.0, an
integer, accessible with the smRegionCode verb, has been added to the
Script Manager global variables. This integer contains the current region
code obtained from the 'itlc' resource.
Verbs for GetEnvirons and SetEnvirons
Global
size
Verb (in bytes) Meaning
smVersion 2 Script Manager version number
smMunged 2 Global modification count
smEnabled 1 Script count; 0 if the Script Manager is
not enabled
smBidirect 1 Bidirectional script flag; TRUE if
bidirectional script installed
smFontForce 1 fontForce flag
smIntlForce 1 intlForce flag
smForced 1 TRUE if current script forced to system
script
smDefault 1 TRUE if current script defaulted to Roman
Script System
smPrint 4 Print action vector
smSysScript 2 Preferred system script
smLastScript 2 Last keyboard script
smKeyScript 2 Keyboard script
smSysRef 2 System Folder (volume reference number)
smKeyCache Keyboard cache (obsolete)
smKeySwap 4 Keyboard swapping resource handle
smGenFlags 4 General flags
smOverride 4 Script override flags
smCharPortion† 2 Proportion of intercharacter versus white
space, 4.12 fixed-point format
smDoubleByte* 1 Flag; TRUE if double-byte script system
installed
smKCHRCache* 4 Pointer to cache containing current 'KCHR'
resource
smRegionCode* 2 Integer with current region code
*New with system software version 7.0
†The variable specified by the smCharPortion verb is used for text
justification. It denotes the weight allocated to intercharacter space versus
white space (10 percent by default for Roman). The 4.12 fixed-point format
specifies 4 bits of integer and 12 bits of fraction.
Note: To identify a localized non-U.S. script system, look at the
smRegionCode verb.