Important: The Script Manager is deprecated as of Mac OS X v10.5. Instead, you should update your application to handle Unicode text using the facilities of the Cocoa system (see Text System Overview) or Core Text (see Core Text Programming Guide). See also Internationalization Programming Topics.
| Framework | CoreServices/CoreServices.h |
| Declared in | Script.h |
Important: The Script Manager is deprecated as of Mac OS X v10.5. Instead, you should update your application to handle Unicode text using the facilities of the Cocoa system (see Text System Overview) or Core Text (see Core Text Programming Guide). See also Internationalization Programming Topics.
The Script Manager makes script systems available and coordinates the interaction between many parts of the Mac OS and those available script systems. A script system (or script for short) is a collection of resources that provides for the representation of a particular writing system.
The Script Manager also provides several services directly to your application. Through them you can get information about the current text environment, modify that environment, and perform a variety of text-handling tasks.
The Script Manager has evolved through several versions. It started with sole responsibility for all international-compatibility and multilingual text issues, but as more power and features have been added, many of its specific functions have been moved to the other parts of system software.
For many text-related tasks, the Script Manager’s role is transparent when you make a script-aware Text Utilities or QuickDraw call while processing text, that routine may get the information it needs through the Script Manager. For example, when you call the QuickDraw function DrawText to draw a line of text, DrawText in turn calls the Script Manager to determine which script system your text belongs to before drawing it. In other situations you may need to call the Script Manager explicitly, to properly interpret the text you are processing.
Carbon supports most Script Manager functions. However, Apple recommends that whenever possible you should replace Script Manager calls with the appropriate Unicode functionality. For more information, see Unicode Utilities Reference and Supporting Unicode Input.
See also the KeyScript function documentation.
CharacterByteType Deprecated in Mac OS X v10.4
CharacterType Deprecated in Mac OS X v10.4
FillParseTable Deprecated in Mac OS X v10.4
GetScriptManagerVariable Deprecated in Mac OS X v10.5
SetScriptManagerVariable Deprecated in Mac OS X v10.5
GetScriptVariable Deprecated in Mac OS X v10.5
SetScriptVariable Deprecated in Mac OS X v10.5
GetSysDirection Deprecated in Mac OS X v10.4
SetSysDirection Deprecated in Mac OS X v10.4
FontScript Deprecated in Mac OS X v10.4
FontToScript Deprecated in Mac OS X v10.4
IntlScript Deprecated in Mac OS X v10.4
GetIntlResource Deprecated in Mac OS X v10.5
ClearIntlResourceCache Deprecated in Mac OS X v10.4
GetIntlResourceTable Deprecated in Mac OS X v10.4
IntlTokenize Deprecated in Mac OS X v10.4
TransliterateText Deprecated in Mac OS X v10.4
Represents an array of char values.
typedef char CharByteTable[256];
Used by the function FillParseTable.
Script.h
Represents an array of ScriptTokenType values.
typedef ScriptTokenType CommentType[4];
Script.h
Represents an array of ScriptTokenType values.
typedef ScriptTokenType DelimType[2];
Script.h
Defins a data type for the script token type.
typedef short ScriptTokenType;
Script.h
Contains information about text that is to be converted to tokens, the destination of the token list, a handle to the tokens resource, and a set of options.
struct TokenBlock {
Ptr source;
long sourceLength;
Ptr tokenList;
long tokenLength;
long tokenCount;
Ptr stringList;
long stringLength;
long stringCount;
Boolean doString;
Boolean doAppend;
Boolean doAlphanumeric;
Boolean doNest;
ScriptTokenType leftDelims[2];
ScriptTokenType rightDelims[2];
ScriptTokenType leftComment[4];
ScriptTokenType rightComment[4];
ScriptTokenType escapeCode;
ScriptTokenType decimalCode;
Handle itlResource;
long reserved[8];
};
typedef struct TokenBlock TokenBlock;
typedef TokenBlock * TokenBlockPtr;
sourceA pointer to a stream of characters. On input
to the function IntlTokenize, a
pointer to the beginning of the source text (not a Pascal string)
to be converted.
sourceLengthThe length of the source stream. On input, the number of bytes in the source text.
tokenListA pointer to an array of tokens. On input, a pointer
to a buffer you have allocated. On output, a pointer to a list of
token structures generated by the IntlTokenize function.
tokenLengthThe maximum length of TokenList.
On input, the maximum size of token list (in number of tokens, not
bytes) that will fit into the buffer pointed to by the tokenList field.
tokenCountThe number of tokens generated by the tokenizer.
On input (if doAppend = TRUE),
must contain the correct number of tokens currently in the token list.
(Ignored if doAppend
= FALSE.) On output,
the number of tokens currently in the token list.
stringListA pointer to a stream of identifiers. On input
(if doString = TRUE),
a pointer to a buffer you have allocated. (Ignored if doString
= FALSE) On output, a
pointer to a list of strings generated by the IntlTokenize function.
stringLengthThe length of the string list. On input (if doString
= TRUE), the size in bytes
of the string list buffer pointed to by the stringList field.
(Ignored if doString
= FALSE.)
stringCountThe number of bytes currently used. On input (if doString
= TRUE and doAppend
= TRUE), the correct
current size in bytes of the string list. (Ignored if doString
= FALSE or doAppend
= FALSE.) On output,
the current size in bytes of the string list. (Indeterminate if doString
= FALSE.)
doStringA Boolean value. On input, if TRUE,
instructs IntlTokenize to
create a Pascal string representing the contents of each token it
generates. If FALSE, IntlTokenize generates
a token list without an associated string list.
doAppendA Boolean value. On input, if TRUE,
instructs IntlTokenize to
append tokens and strings it generates to the current token list
and string list. If FALSE, IntlTokenize writes
over any previous contents of the buffer pointed to by tokenList and stringList.
doAlphanumericA Boolean value. On input, if TRUE,
instructs IntlTokenize to
interpret numeric characters as alphabetic when mixed with alphabetic
characters. If FALSE,
all numeric characters are interpreted as numbers.
doNestA Boolean value. A value of type Boolean.
On input, if TRUE, instructs IntlTokenize to
allow nested comments (to any depth of nesting). If FALSE,
comment delimiters may not be nested within other comment delimiters.
leftDelimsA value of type DelimType.
On input, an array of two integers, each of which contains the token
code of the symbol that may be used as an opening delimiter for
a quoted literal. If only one opening delimiter is needed, the other
must be specified to be delimPad.
rightDelimsA value of type DelimType.
On input, an array of two integers, each of which contains the token
code of the symbol that may be used as the matching closing delimiter
for the corresponding opening delimiter in the leftDelims field.
leftCommentA value of type CommentType.
On input, an array of two pairs of integers, each pair of which
contains codes for the two token types that may be used as opening
delimiters for comments.
rightCommentA value of type CommentType.
On input, an array of two pairs of integers, each pair of which
contains codes for the two token types that may be used as closing
delimiters for comments.
escapeCodeA value of type TokenType.
On input, a single integer that contains the token code for the
symbol that may be an escape character within a quoted literal.
decimalCodeA value of type TokenType.
On input, a single integer that contains the token type of the symbol
to be used for a decimal point.
itlResourceA value of type Handle.
On input, a handle to the tokens ( 'itl4') resource
of the script system under which the source text was created.
reservedAn 8-byte array of type LongInt.On
input, this must be set to 0.
The token block structure is a parameter block used to pass
information to the IntlTokenize
function and to retrieve results from it.
Script.h
Contains information about the conversion of a sequence of characters to a token.
struct TokenRec {
ScriptTokenType theToken;
Ptr position;
long length;
StringPtr stringPosition;
};
typedef struct TokenRec TokenRec;
typedef TokenRec * TokenRecPtr;
theTokenA numeric code that specifies the type of token (such as whitespace, opening parenthesis, alphabetic or numeric sequence) described by this token structure. Constants for all defined token codes are listed in “Obsolete Token Codes.”
positionA pointer to the first character in the source text that caused this particular token to be generated.
lengthThe length, in bytes, of the source text that caused this particular token to be generated.
stringPositionIf doString = TRUE,
a pointer to a null-terminated Pascal string, padded if necessary
so that its total number of bytes (length byte + text + null byte +
padding) is even. If doString = FALSE,
this field is NULL.
The value in the length byte of the null-terminated Pascal string does not include either the terminating zero byte or the possible additional padding byte. There may be as many as two additional bytes beyond the specified length.
The token structure holds the results of the conversion of
a sequence of characters to a token by the IntlTokenize function. When it analyzes
text, IntlTokenize generates
a token list, which is a sequence of token structures.
Script.hSpecify constants for various calendars.
enum {
calGregorian = 0,
calArabicCivil = 1,
calArabicLunar = 2,
calJapanese = 3,
calJewish = 4,
calCoptic = 5,
calPersian = 6
};
calGregorianSpecifies the Gregorian calendar.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
calArabicCivilSpecifies the Arabic civil calendar.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
calArabicLunarSpecifies the Arabic lunar calendar.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
calJapaneseSpecifies the Japanese calendar.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
calJewishSpecifies the Jewish calendar.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
calCopticSpecifies the Coptic calendar.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
calPersianSpecifies the Persian calendar.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
These calendar codes are bit numbers, not masks.
Specify character byte types.
enum {
smSingleByte = 0,
smFirstByte = -1,
smLastByte = 1,
smMiddleByte = 2
};
smSingleByteSpecifes a single byte.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smFirstByteSpecifies the first byte.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smLastByteSpecifies the last byte.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smMiddleByteSpecifies the middle byte.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify basic character types.
enum {
smCharPunct = 0x0000,
smCharAscii = 0x0001,
smCharEuro = 0x0007,
smCharExtAscii = 0x0007,
smCharKatakana = 0x0002,
smCharHiragana = 0x0003,
smCharIdeographic = 0x0004,
smCharTwoByteGreek = 0x0005,
smCharTwoByteRussian = 0x0006,
smCharBidirect = 0x0008,
smCharContextualLR = 0x0009,
smCharNonContextualLR = 0x000A,
smCharHangul = 0x000C,
smCharJamo = 0x000D,
smCharBopomofo = 0x000E,
smCharGanaKana = 0x000F,
smCharFISKana = 0x0002,
smCharFISGana = 0x0003,
smCharFISIdeo = 0x0004
};
smCharPunctSpecifies punctuation characters.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharAsciiSpecifies ASCII characters.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharEuroSpecifies smCharEuro.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharExtAsciiSpecifies a more correct synonym for smCharEuro.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharKatakanaSpecifies additional character types for Japanese Katakana.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharHiraganaSpecifies additional character types for Japanese Hiragana.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharIdeographicSpecifies additional character types for Hanzi, Kanji, and Hanja.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharTwoByteGreekSpecifies additional character types for double-byte Greek in Far East systems.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharTwoByteRussianSpecifies additional character types for double-byte Cyrillic in Far East systems.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharBidirectSpecifies additional character types for Arabic/Hebrew.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharContextualLRSpecifies contextual left-right: Thai, Indic scripts.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharNonContextualLRSpecifies additional character types for non-contextual left-right: Cyrillic, Greek.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharHangulSpecifies additional character types for Korean Hangul.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharJamoSpecifies additional character types for Korean Jamo.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharBopomofoSpecifies additional character types for Chinese Bopomofo.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharGanaKanaSpecifies additional character types shared for Japanese Hiragana and Katakana.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharFISKanaSpecifies obsolete Katakana names, for backward compatibility.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharFISGanaSpecifies obsolete Hiragana namde, for backward compatibility.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharFISIdeoSpecifies obsolete Hanzi, Kanji, and Hanja names, for backward compatibility.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify character-type classes for double-byte script systems.
enum {
smCharFISGreek = 0x0005,
smCharFISRussian = 0x0006,
smPunctNormal = 0x0000,
smPunctNumber = 0x0100,
smPunctSymbol = 0x0200,
smPunctBlank = 0x0300,
smPunctRepeat = 0x0400,
smPunctGraphic = 0x0500,
smKanaSmall = 0x0100,
smKanaHardOK = 0x0200,
smKanaSoftOK = 0x0300,
smIdeographicLevel1 = 0x0000,
smIdeographicLevel2 = 0x0100,
smIdeographicUser = 0x0200,
smFISClassLvl1 = 0x0000,
smFISClassLvl2 = 0x0100,
smFISClassUser = 0x0200,
smJamoJaeum = 0x0000,
smJamoBogJaeum = 0x0100,
smJamoMoeum = 0x0200,
smJamoBogMoeum = 0x0300
};
smCharFISGreekSpecfies character-type classes for double-byte Greek in Far East systems.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharFISRussianSpecfies character-type classes for double-byte Cyrillic in Far East systems.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smPunctNormalSpecfies character-type classes for normal
punctuation (smCharPunct).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smPunctNumberSpecfies character-type classes for number
punctuation (smCharPunct).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smPunctSymbolSpecfies character-type classes for symbol
punctuation (smCharPunct).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smPunctBlankSpecfies additional character-type classes for punctuation in double-byte systems.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smPunctRepeatSpecifies a character-type class for repeat markers.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smPunctGraphicSpecifies a character-type class forl ine graphics.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKanaSmallSpecfies character-type classes for Katakana and Hiragana double-byte systems.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKanaHardOKSpecfies character-type classes for Katakana and Hiragana double-byte systems; can have dakuten.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKanaSoftOKSpecfies character-type classes for Katakana and Hiragana double-byte systems; can have dakuten or han-dakuten.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smIdeographicLevel1Specfies character-type classes for Ideographic double-byte systems; level 1 char.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smIdeographicLevel2Specfies character-type classes for Ideographic double-byte systems; level 2 char.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smIdeographicUserSpecfies character-type classes for Ideographic double-byte systems; user char.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smFISClassLvl1Obsolete, for backward compatibility; level 1 char.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smFISClassLvl2Obsolete, for backward compatibility; level 2 char.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smFISClassUserObsolete, for backward compatibility; user char.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smJamoJaeumSpecfies character-type Jamo classes for Korean systems; simple consonant char.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smJamoBogJaeumSpecfies character-type Jamo classes for Korean systems; complex consonant char.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smJamoMoeumSpecfies character-type Jamo classes for Korean systems; simple vowel char.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smJamoBogMoeumSpecfies character-type Jamo classes for Korean systems; complex vowel char.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify masks used to extract information from the return
value of the CharacterType function.
enum {
smcTypeMask = 0x000F,
smcReserved = 0x00F0,
smcClassMask = 0x0F00,
smcOrientationMask = 0x1000,
smcRightMask = 0x2000,
smcUpperMask = 0x4000,
smcDoubleMask = 0x8000
};
smcTypeMaskCharacter-type mask.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smcReservedReserved.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smcClassMaskCharacter-class mask.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smcOrientationMaskCharacter orientation (double-byte scripts).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smcRightMaskWriting direction (bidirectional scripts); main character set or subset (double-byte scripts)
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smcUpperMaskUppercase or lowercase.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smcDoubleMaskSize (1 or 2 bytes).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
These bit masks are used to extract fields from the return
value of the CharacterType function.
The character type of the character in question is the result
of performing an AND operation
with smcTypeMask and
the CharacterType result.
The character class of the character in question is the result
of performing an AND operation
with smcClassMask and
the CharacterType result.
Character classes can be considered as subtypes of character types.
The orientation of the character in question is the result
of performing an AND operation with smcOrientationMask and
the CharacterType result.
The orientation value can be either smCharHorizontal or smCharVertical.
The direction of the character in question is the result of
performing an AND operation with smcRightMask and
the CharacterType result.
The direction value can be either smCharLeft
(left-to-right) or smCharRight
(right-to-left).
The case of the character in question is the result of performing
an AND operation with smcUpperMask and
the CharacterType result.
The case value can be either smCharLower or smCharUpper.
The size of the character in question is the result of performing
an AND operation with smcDoubleMask and
the CharacterType result.
The size value can be either smChar1byte or smChar2byte.
Specify extensions to character sets.
enum {
diaeresisUprY = 0xD9,
fraction = 0xDA,
intlCurrency = 0xDB,
leftSingGuillemet = 0xDC,
rightSingGuillemet = 0xDD,
fiLigature = 0xDE,
flLigature = 0xDF,
dblDagger = 0xE0,
centeredDot = 0xE1,
baseSingQuote = 0xE2,
baseDblQuote = 0xE3,
perThousand = 0xE4,
circumflexUprA = 0xE5,
circumflexUprE = 0xE6,
acuteUprA = 0xE7,
diaeresisUprE = 0xE8,
graveUprE = 0xE9,
acuteUprI = 0xEA,
circumflexUprI = 0xEB,
diaeresisUprI = 0xEC,
graveUprI = 0xED,
acuteUprO = 0xEE,
circumflexUprO = 0xEF,
appleLogo = 0xF0,
graveUprO = 0xF1,
acuteUprU = 0xF2,
circumflexUprU = 0xF3,
graveUprU = 0xF4,
dotlessLwrI = 0xF5,
circumflex = 0xF6,
tilde = 0xF7,
macron = 0xF8,
breveMark = 0xF9,
overDot = 0xFA,
ringMark = 0xFB,
cedilla = 0xFC,
doubleAcute = 0xFD,
ogonek = 0xFE,
hachek = 0xFF
};
Specifies to disable font and keyboard script synchronization.
enum {
smfDisableKeyScriptSync = 27
};
Specify character-type glyph orientation for double-byte systems.
enum {
smCharHorizontal = 0x0000,
smCharVertical = 0x1000,
smCharLeft = 0x0000,
smCharRight = 0x2000,
smCharLower = 0x0000,
smCharUpper = 0x4000,
smChar1byte = 0x0000,
smChar2byte = 0x8000
};
smCharHorizontalSpecifies horizontal character form.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharVerticalSpecifies vertical character form.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharLeftSpecifies left character direction.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharRightSpecifies right character direction.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharLowerSpecifies lowercase character modifers.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCharUpperSpecifies uppercase character modifers.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smChar1byteSpecifies character size modifiers (single or multiple bytes).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smChar2byteSpecifies character size modifiers (single or multiple bytes).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify a keyboard script switching flag and mask.
enum {
smKeyForceKeyScriptBit = 7,
smKeyForceKeyScriptMask = 1 << smKeyForceKeyScriptBit
};
smKeyForceKeyScriptBitA flag that specifies to force keyboard script switching.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeyForceKeyScriptMaskA mask that specifies to force keyboard script switching.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify actions for keyboard scripts.
enum {
smKeyNextScript = -1,
smKeySysScript = -2,
smKeySwapScript = -3,
smKeyNextKybd = -4,
smKeySwapKybd = -5,
smKeyDisableKybds = -6,
smKeyEnableKybds = -7,
smKeyToggleInline = -8,
smKeyToggleDirection = -9,
smKeyNextInputMethod = -10,
smKeySwapInputMethod = -11,
smKeyDisableKybdSwitch = -12,
smKeySetDirLeftRight = -15,
smKeySetDirRightLeft = -16,
smKeyRoman = -17
};
smKeyNextScriptSpecifies to switch to the next available script.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeySysScriptSpecfiies to switch to the system script.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeySwapScriptSpecifies to switch to the previously-used script
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeyNextKybdSpecifies to switch to the next keyboard in current keyscript.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeySwapKybdSpecfies to switch to a previously-used keyboard in the current keyscript.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeyDisableKybdsSpecifies to disable keyboards not in the system or Roman script.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeyEnableKybdsSpecifies to enable keyboards for all enabled scripts.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeyToggleInlineSpecifies to toggle inline input for the current keyscript
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeyToggleDirectionSpecifies to toggle the default line direction
(TESysJust).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeyNextInputMethodSpecfies to switch to the next input method in the current keyscript.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeySwapInputMethodSpecfies to switch to the last-used input method in the current keyscript.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeyDisableKybdSwitchSpecfies to disable switching from the current keyboard.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeySetDirLeftRightSpecfies to set the default line direction to left-right, align left.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeySetDirRightLeftSpecfies to set the default line direction to right-left, align right.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeyRomanSpecfies to set the keyscript to Roman. Does
nothing if on a Roman-only system. This is unlike KeyScript(smRoman) which
forces an update to current default Roman keyboard. See KeyScript documentation
for more information.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Disables font and keyboard script synchronization mask
enum {
smfDisableKeyScriptSyncMask = 1L << smfDisableKeyScriptSync
};
smfDisableKeyScriptSyncMaskDisable font and keyboard script synchronization mask
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify implicit script codes.
enum {
smSystemScript = -1,
smCurrentScript = -2,
smAllScripts = -3
};
smSystemScriptSpecifies the system script.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCurrentScriptSpecifies the font script.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smAllScriptsSpecfies any script.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
You can specify script systems with implicit and explicit
script code constants in the script parameter
of the GetScriptVariable
and SetScriptVariable
functions. The implicit script codes smSystemScript and smCurrentScript are
special negative values for the system script and the font script,
respectively.
Specify special negative verbs that were associated with WorldScript I.
enum {
smLayoutCache = -309,
smOldVerbSupport = -311,
smSetKashidas = -291,
smSetKashProp = -287,
smScriptSysBase = -281,
smScriptAppBase = -283,
smScriptFntBase = -285,
smScriptLigatures = -263,
smScriptNumbers = -267
};
smLayoutCacheSpecifies that HiWrd(param) is
the number of entries, LoWrd is
the maximum input length
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smOldVerbSupportSpecifies that a parameter is added to old verbs to map to WorldScript I verb.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smSetKashidasSpecifies parameter is on or off; obsolete verb = -36.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smSetKashPropSpecifies parameter is kashida proportion; obsolete verb = -32.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptSysBaseSpecifies parameter is associated font to use with the system font; obsolete verb = -26)
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptAppBaseSpecifies parameter is associated font to use with application font; obsolete verb = -28.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptFntBaseSpecifies that a parameter is associated font to use with all other fonts; obsolete verb = -30.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptLigaturesObsolete verb = -8.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptNumbersObsolete verb = -12.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
Specify the kinds of numerals used by a script.
enum {
intWestern = 0,
intArabic = 1,
intRoman = 2,
intJapanese = 3,
intEuropean = 4,
intOutputMask = 0x8000
};
intWesternSpecifies Western numerals.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
intArabicSpecifies Native Arabic numerals.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
intRomanSpecifies Roman numerals.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
intJapaneseSpecifies Japanese numerals.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
intEuropeanSpecifies European numerals.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
intOutputMaskSpecifies an output mask.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
These constants specify bit numbers, not masks.
Specify values for script redraw flags.
enum {
smRedrawChar = 0,
smRedrawWord = 1,
smRedrawLine = -1
};
smRedrawCharSpecifies to redraw character only.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smRedrawWordSpecifies to redraw entire word (double-byte systems).
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smRedrawLineSpecifies to redraw entire line (bidirectional systems).
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
Specify Mac OS encodings that are related to a FOND ID
range.
enum {
smRoman = 0,
smJapanese = 1,
smTradChinese = 2,
smKorean = 3,
smArabic = 4,
smHebrew = 5,
smGreek = 6,
smCyrillic = 7,
smRSymbol = 8,
smDevanagari = 9,
smGurmukhi = 10,
smGujarati = 11,
smOriya = 12,
smBengali = 13,
smTamil = 14,
smTelugu = 15,
smKannada = 16,
smMalayalam = 17,
smSinhalese = 18,
smBurmese = 19,
smKhmer = 20,
smThai = 21,
smLao = 22,
smGeorgian = 23,
smArmenian = 24,
smSimpChinese = 25,
smTibetan = 26,
smMongolian = 27,
smEthiopic = 28,
smGeez = 28,
smCentralEuroRoman = 29,
smVietnamese = 30,
smExtArabic = 31,
smUninterp = 32
};
smRomanSpecifies the Roman script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smJapaneseSpecifies the Japanese script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTradChineseSpecifies the traditional Chinese script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKoreanSpecifies the Korean script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smArabicSpecifies the Arabic script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smHebrewSpecifies the Hebrew script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smGreekSpecifies the Greek script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCyrillicSpecifies the Cyrillic script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smRSymbolSpecifies right-to-left symbols. The script
code represented by the constant smRSymbol is
available as an alternative to smUninterp,
for representation of special symbols that have a right-to-left
line direction. Note, however, that the script management system
provides no direct support for representation of text with this
script code.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smDevanagariSpecifies the Devanagari script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smGurmukhiSpecifies the Gurmukhi script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smGujaratiSpecifies the Gujarati script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smOriyaSpecifies the Oriya script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smBengaliSpecifies the Bengali script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTamilSpecifies the Tamil script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTeluguSpecifies the Telugu script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKannadaSpecifies the Kannada/Kanarese script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smMalayalamSpecifies the Malayalam script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smSinhaleseSpecifies the Sinhalese script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smBurmeseSpecifies the Burmese script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKhmerSpecifies the Khmer script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smThaiSpecifies the Thai script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smLaoSpecifies the Laotian script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smGeorgianSpecifies the Georgian script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smArmenianSpecifies the Armenian script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smSimpChineseSpecifies the simplified Chinese script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTibetanSpecifies the Tibetan script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smMongolianSpecifies the Mongolian script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smEthiopicSpecifies the Geez/Ethiopic script system.
This constant is the same as smGeez.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smGeezSpecifies the Geez/Ethiopic script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smCentralEuroRomanUsed for Czech, Slovak, Polish, Hungarian, Baltic languages.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smVietnameseSpecifies the Extended Roman script system for Vietnamese.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smExtArabicSpecifies the extended Arabic for Sindhi script system.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smUninterpUninterpreted symbols. The script code represented
by the constant smUninterp is
available for representation of special symbols, such as items in
a tool palette, that must not be considered as part of any actual
script system. For manipulating and drawing such symbols, the smUninterp constant
should be treated as if it indicated the Roman script system rather than
the system script; that is, the default behavior of uninterpreted symbols
should be Roman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specifies the extended script code for full Unicode input.
enum {
smUnicodeScript = 0x7E
};
Specify constants used to get and set script variables.
enum {
smScriptNumDate = 30,
smScriptKeys = 32,
smScriptIcon = 34,
smScriptPrint = 36,
smScriptTrap = 38,
smScriptCreator = 40,
smScriptFile = 42,
smScriptName = 44,
smScriptMonoFondSize = 78,
smScriptPrefFondSize = 80,
smScriptSmallFondSize = 82,
smScriptSysFondSize = 84,
smScriptAppFondSize = 86,
smScriptHelpFondSize = 88,
smScriptValidStyles = 90,
smScriptAliasStyle = 92
};
smScriptNumDate(2 bytes) The numeral code and calendar code for the script. The numeral code specifies the kind of numerals the script uses, and is in the high-order byte of the word the calendar code specifies the type of calendar it uses and is in the low-order byte of the word. The value of this variable is initialized from the script system’s international bundle resource. It may be changed during execution when the user selects, for example, a new calendar from a script system’s control panel. See “Numeral Codes” and “Calendar Codes” for the different codes.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptKeys(2 bytes) The resource ID of the script’s
current keyboard-layout ('KCHR') resource.
The keyboard-layout resource is used to map virtual key codes into
the correct character codes for the script. The value of this variable
is initialized from the script system’s international bundle resource.
It is updated when the user selects a new keyboard layout, or when
the application calls the KeyScript function.
You can force a particular keyboard layout to be used with your
application by setting the value of this variable and then calling KeyScript.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptIcon(2 bytes) The resource ID of the script’s
keyboard icon family (resource types 'kcs#', 'kcs4',
and 'kcs8'). The keyboard
icon family consists of the keyboard icons displayed in the keyboard
menu. The value of this variable is initialized from the script
system’s international bundle resource. Note that, unlike smScriptKeys,
the value of this variable is not automatically updated when the
keyboard layout changes. (System software assumes that the icon
family has an identical ID to the keyboard-layout resource, and
usually ignores this variable.)
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptPrint(4 bytes) The print action function vector,
set up by the script system (or by the Script Manager if the smsfAutoInit bit
is set) when the script is initialized.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptTrap(4 bytes) A pointer to the script’s script-structure dispatch function (for internal use only).
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptCreator(4 bytes) The 4-character creator type for
the script system’s file, that is, the file containing the script
system. For the Roman script system, it is 'ZSYS', for
WorldScript I it is 'univ',
and for World Script II it is 'doub'.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptFile(4 bytes) A pointer to the Pascal string that
contains the name of the script system’s file, that is, the file
containing the script system. For the Roman script system, the string
is 'System'.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptName(4 bytes) A pointer to a Pascal string that
contains the script system’s name. For the Roman script system
and single-byte simple script systems, the string is 'Roman'.
For single-byte complex script systems, this name is taken from
the encoding/rendering ('itl5')
resource. For double-byte script systems, it is taken from the WorldScript
II extension and is 'WorldScript II'.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptMonoFondSize(4 bytes) The default font family ID and size (in points) for monospaced text. The ID is stored in the high-order word, and the size is stored in the low-order word. The value of this variable is taken from the script system’s international bundle resource. Note that not all script systems have a monospaced font.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptPrefFondSize(4 bytes) Currently not used.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptSmallFondSize(4 bytes) The default font family ID and size (in points) for small text, generally the smallest font and size combination that is legible on screen. The ID is stored in the high-order word, and the size is stored in the low-order word. Sizes are important for example, a 9-point font may be too small in Chinese. The value of this variable is taken from the script system’s international bundle resource.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptSysFondSize(4 bytes) The default font family ID and size (in points) for this script system’s preferred system font. The ID is stored in the high-order word, and the size is stored in the low-order word. The value of this variable is taken from the script system’s international bundle resource.
This variable holds
similar information to the variable accessed through the smScriptSysFond selector.
If you need font family ID only and don’t want size information,
it is simpler to use smScriptSysFond.
Note, however, that changing the value of this variable has no effect
on the value accessed through smScriptSysFond.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptAppFondSize(4 bytes) The default font family ID and size (in points) for this script system’s preferred application font. The ID is stored in the high-order word, and the size is stored in the low-order word. The value of this variable is taken from the script system’s international bundle resource.
This
variable holds similar information to the variable accessed through the smScriptAppFond selector.
If you need font family ID only and don’t want size information,
it is simpler to use smScriptAppFond.
Note, however, that changing the value of this variable has no effect
on the value accessed through smScriptAppFond.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptHelpFondSize(4 bytes) The default font family ID and size (in points) for Balloon Help. The ID is stored in the high-order word, and the size is stored in the low-order word. Sizes are important for example, a 9-point font may be too small in Chinese. The value of this variable is taken from the script system’s international bundle resource.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptValidStyles(1 byte) The set of all valid styles for the
script. For example, the Extended style is not valid in the Arabic
script. When the GetScriptVariable function
is called with the smScriptValidStyles selector,
the low-order byte of the returned value is a style code that includes
all of the valid styles for the script (that is, the bit corresponding
to each QuickDraw style is set if that style is valid for the specified
script). The value of this variable is taken from the script system’s
international bundle resource.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptAliasStyle(1 byte) The style to use for indicating aliases.
When the GetScriptVariable function
is called with smScriptAliasStyle,
the low-order byte of the returned value is the style code that
should be used in that script for indicating alias names (for example,
in the Roman script system, alias names are indicated in italics).
The value of this variable is taken from the script system’s international
bundle resource.
Some script systems, such as Arabic and Hebrew, have private script-system selectors that are unique to those scripts. Those private selectors are negative, whereas selectors that extend across script systems are positive.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
Specify bits used to examine attributes in the script flags word.
enum {
smsfIntellCP = 0,
smsfSingByte = 1,
smsfNatCase = 2,
smsfContext = 3,
smsfNoForceFont = 4,
smsfB0Digits = 5,
smsfAutoInit = 6,
smsfUnivExt = 7,
smsfSynchUnstyledTE = 8,
smsfForms = 13,
smsfLigatures = 14,
smsfReverse = 15,
smfShowIcon = 31,
smfDualCaret = 30,
smfNameTagEnab = 29,
smfUseAssocFontInfo = 28
};
smsfIntellCPSpecifies the script can support intelligent cut and paste (it uses spaces as word delimiters).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smsfSingByteSpecifies the script has only single-byte characters.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smsfNatCaseSpecifies the script has both uppercase and lowercase native characters.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smsfContextSpecifies the script is contextual.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smsfNoForceFontSpecifies the script does not support font forcing (ignores the font force flag).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smsfB0DigitsSpecifies the script has alternate digits at $B0–$B9. Arabic and Hebrew, for example, have their native numeric forms at this location in their character sets.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smsfAutoInitSpecifies the script is initialized by the Script Manager. Single-byte simple script systems can set this bit to avoid having to initialize themselves.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smsfUnivExtSpecifies the script uses the WorldScript I extension.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smsfSynchUnstyledTESpecifies the script synchronizes keyboard with font for monostyled TextEdit.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smsfFormsSpecifies to use contextual forms if this bit is set; do not use them if it is cleared.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smsfLigaturesSpecifies to use contextual ligatures if this bit is set; do not use them if it is cleared.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smsfReverseSpecifies reverse right-to-left text to draw it in (left-to-right) display order if this bit is set; do not reorder text if this bit is cleared.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smfShowIconSpecifies to show icon even if only one script;
bits in the smGenFlags long.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smfDualCaretSpecifies to use dual caret for mixed direction
text; bits in the smGenFlags long.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smfNameTagEnabReserved for internal use; bits in the smGenFlags long.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smfUseAssocFontInfoSpecifies to set the associated font info for FontMetrics calls;
bits in the smGenFlags long.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
These constants are available for examining attributes in the script flags word. Bits above 8 are nonstatic, meaning that they may change during program execution. (Note that the constant values represent bit numbers in the flags word, not masks.)
Specify selectors you can use with the functions GetScriptManagerVariable and SetScriptManagerVariable.
enum {
smVersion = 0,
smMunged = 2,
smEnabled = 4,
smBidirect = 6,
smFontForce = 8,
smIntlForce = 10,
smForced = 12,
smDefault = 14,
smPrint = 16,
smSysScript = 18,
smLastScript = 20,
smKeyScript = 22,
smSysRef = 24,
smKeyCache = 26,
smKeySwap = 28,
smGenFlags = 30,
smOverride = 32,
smCharPortion = 34,
smDoubleByte = 36,
smKCHRCache = 38,
smRegionCode = 40,
smKeyDisableState = 42
};
smVersionThe Script Manager version number (2 bytes)
. This variable has the same format as the version number obtained
from calling the Gestalt function with
the Gestalt selector gestaltScriptMgrVersion.
The high-order byte contains the major version number, and the low-order
byte contains the minor version number.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smMungedThe modification count for Script Manager variables
(2 bytes) . At startup, smMunged is
initialized to 0, and it is incremented when the KeyScript function
changes the current keyboard script and updates the variables accessed
via smKeyScript and smLastScript.
The smMunged selector
is also incremented when the SetScriptManagerVariable function
is used to change a Script Manager variable. You can check this
variable at any time to see whether any of your own data structures
that may depend on Script Manager variables need to be updated.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smEnabledThe script count (1 byte) ; the number of currently
enabled script systems. At startup time, the Script Manager initializes
the script count to 0, then increments it for each installed and
enabled script system (including Roman). You can use smEnabled to
determine whether more than one script system is installed—that
is, whether your application needs to handle non-Roman text.
Never
call SetScriptManagerVariable with
the smEnabled selector.
It could result in inconsistency with other script system values.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smBidirectThe bidirectional flag, which indicates when
at least one bidirectional script system is enabled. This flag is
set to TRUE ($FF) if
the Arabic or Hebrew script system is enabled.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smFontForceThe font force flag (1 byte). At startup, the
Script Manager sets its value from the system script’s international
configuration ('itlc')
resource. The flag returns 0 for FALSE and
$FF for TRUE. If the
system script is non-Roman, the font force flag controls whether
a font with ID in the Roman script range is interpreted as belonging
to the Roman script or to the system script.
When you call SetScriptManagerVariable with
the smFontForce selector, be
sure to pass only the value 0 or $FF, or a later call to GetScriptManagerVariable may
return an unrecognized value.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smIntlForceThe international resources selection flag
(1 byte). At startup, the Script Manager sets its value from the
system script’s international configuration ('itlc')
resource. The flag returns 0 for FALSE and $FF for TRUE.
This flag controls whether international resources of the font script
or the system script are used for string manipulation.
When
you call SetScriptManagerVariable with
the smIntlForce selector, be
sure to pass only the value 0 or $FF, or a later call to GetScriptManagerVariable may
return an unrecognized value.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smForcedThe script-forced result flag (1 byte). If
the current script has been forced to the system script, this flag
is set to TRUE. Use the smForced selector
to obtain reports of the actions of the FontScript, FontToScript,
and IntlScript functions.
This variable is for information only; never set its value with SetScriptManagerVariable.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smDefaultThe script-defaulted result flag (1 byte).
If the script system corresponding to a specified font is not available,
this flag is set to TRUE.
Use this selector to obtain reports of the actions of the FontScript, FontToScript,
and IntlScript functions.
This variable is for information only; never set its value with SetScriptManagerVariable.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smPrintThe print action function vector, set up by the Script Manager at startup (4 bytes).
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smSysScriptThe system script code (2 bytes) . At startup,
the Script Manager initializes this variable from the system script’s
international configuration ('itlc') resource.
This variable is for information only; never set its value with SetScriptManagerVariable.
Constants for all defined script codes are listed in “Region Codes A.”
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smLastScriptThe previously used keyboard script (2 bytes).
When you change keyboard scripts with the KeyScript function,
the Script Manager moves the old value of smKeyScript into smLastScript. KeyScript can
also swap the current keyboard script with the previous keyboard
script, in which case the contents of smLastScript and smKeyScript are
swapped. Constants for all defined script codes are listed in “Region Codes A.”
Never set the value of this variable with SetScriptManagerVariable.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smKeyScriptThe current keyboard script (2 bytes) . The KeyScript function
tests and updates this variable. When you change keyboard scripts
with the KeyScript function,
the Script Manager moves the old value of smKeyScript into smLastScript. KeyScript can
also swap the current keyboard script with the previous keyboard
script, in which case the contents of smLastScript and smKeyScript are
swapped. The Script Manager also uses this variable to get the proper
keyboard icon and to retrieve the proper keyboard-layout ('KCHR')
resource. Constants for all defined script codes are listed in “Region Codes A.”
Never set the value of this variable directly with SetScriptManagerVariable;
call KeyScript to change
keyboard scripts.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smSysRefThe System Folder volume reference number (2
bytes) . Its value is initialized from the system global variable BootDrive at
startup.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smKeyCacheAn obsolete variable (4 bytes). This variable at one time held a pointer to the keyboard cache. The value it provided was not correct and should not be used.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smKeySwapA handle to the keyboard-swap ('KSWP')
resource (4 bytes). The Script Manager initializes the handle at
startup. The keyboard-swap resource controls the key combinations
with which the user can invoke various actions with the KeyScript function,
such as switching among script systems.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smGenFlagsThe general flags used by the Script Manager
(4 bytes). The Script Manager general flags is a long word value
its high-order byte is set from the flags byte in the system script’s
international configuration ('itlc')
resource. These constants are available to designate bits in the
variable accessed through smGenFlags:
smfNameTagEnab (a
value of 29)Reserved for internal use.
smfDualCaret (a
value of 30)Use a dual caret for mixed-directional text.
smfShowIcon (a
value of 31)Show the keyboard menu even if only one keyboard layout
or one script (Roman) is available. (This bit is checked only at
system startup.)
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smOverrideThe script override flags (4 bytes). At present, these flags are not set or used by the Script Manager. They are, however, reserved for future use.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smCharPortionA value used by script systems to allocate intercharacter and interword spacing when justifying text (2 bytes). It denotes the weight allocated to intercharacter space versus interword space. The value of this variable is initialized to 10 percent by the Script Manager, although it currently has no effect on text of the Roman script system. The variable is in 4.12 fixed-point format, which is a 16-bit signed number with 4 bits of integer and 12 bits of fraction. (In that format, 10 percent has the hexadecimal value $0199.)
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smDoubleByteThe double-byte flag, a Boolean value that
is TRUE if at least one double-byte
script system is enabled. (1 byte)
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smKCHRCache(A pointer to the cache that stores a copy
of the current keyboard-layout ('KCHR')
resource 4 bytes).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smRegionCodeThe region code for this localized version
of system software, obtained from the system script’s international
configuration ('itlc')
resource. This variable identifies the localized version of the
system script. Constants for all defined region codes are listed
in “Region Codes A” (2
bytes).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smKeyDisableStateThe current disable state for keyboards (1
byte). The Script Manager disables some keyboard scripts or keyboard
switching when text input must be restricted to certain script systems
or when script systems are being moved into or out of the System
file. These are the possible values for the variable accessed through smKeyDisableState:
0All keyboards are enabled; switching is enabled.
1Keyboard switching is disabled.
$FFKeyboards for all non-Roman secondary scripts are disabled
The
script management system maintains the keyboard disable state separately
for each application. Never set the value of this variable directly with SetScriptManagerVariable;
call KeyScript to
change the keyboard disable state for your application.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
This section lists and describes the selector constants for
accessing the Script Manager variables through calls to the GetScriptManagerVariable
and SetScriptManagerVariable
functions. In every case the variable parameter passed to or from
the function is a long integer (4 bytes); the number in parentheses
indicates how many of the 4 bytes are necessary to hold the input
or return value for that variable. If fewer than 4 bytes are needed,
the low byte or low word contains the information.
Specify script variables to get or set using the functions GetScriptVariable and SetScriptVariable.
enum {
smScriptVersion = 0,
smScriptMunged = 2,
smScriptEnabled = 4,
smScriptRight = 6,
smScriptJust = 8,
smScriptRedraw = 10,
smScriptSysFond = 12,
smScriptAppFond = 14,
smScriptBundle = 16,
smScriptNumber = 16,
smScriptDate = 18,
smScriptSort = 20,
smScriptFlags = 22,
smScriptToken = 24,
smScriptEncoding = 26,
smScriptLang = 28
};
smScriptVersionThe script system’s version number (2 bytes). When the Script Manager loads the script system, the script system puts its current version number into this variable. The high-order byte contains the major version number, and the low-order byte contains the minor version number.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptMungedThe modification count for this script system’s
script variables. (2 bytes)The Script Manager increments the variable
accessed by the smScriptMunged selector
each time the SetScriptVariable function
is called for this script system. You can check this variable at
any time to see whether any of your own data structures that depend
on this script system’s script variables need to be updated.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptEnabledThe script-enabled flag, a Boolean value that
indicates whether the script has been enabled (1 byte). It is set
to $FF when enabled and to 0 when not enabled. Note that this variable
is not equivalent to the Script Manager variable accessed by the smEnabled selector,
which is a count of the total number of enabled script systems.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptRightThe right-to-left flag, a Boolean value that indicates whether the primary line direction for text in this script is right-to-left or left-to-right (1 byte). It is set to $FF for right-to-left text (used in Arabic and Hebrew script systems) and to 0 for left-to-right (used in Roman and other script systems).
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptJustThe script alignment flag, a byte that specifies
the default alignment for text in this script system (1 byte). It
is set to $FF for right alignment (common for Arabic and Hebrew),
and it is set to 0 for left alignment (common for Roman and other
script systems). This flag usually has the same value as the smScriptRight flag.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptRedrawThe script-redraw flag, a byte that provides redrawing recommendations for text of this script system (1 byte). It describes how much of a line should be redrawn when a user adds, inserts, or deletes text. It is set to 0 when only a character should be redrawn (used by the Roman script system), to 1 when an entire word should be redrawn (used by the Japanese script system), and to –1 when the entire line should be redrawn (used by the Arabic and Hebrew script systems). These constants are available for the script-redraw flag:
smRedrawChar (a
value of 0)Redraw the character only.
smRedrawWord (a
value of 1)Redraw the entire word.
smRedrawLine (a
value of –1)Redraw the entire line.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptSysFondThe preferred system font, the font family ID of the system font preferred for this script (2 bytes). In the Roman script system, this variable specifies Chicago font, whose font family ID is 0 if Roman is the system script. The preferred system font in the Japanese script system is 16384, the font family ID for Osaka.
This variable holds similar information to the variable
accessed through the smScriptSysFondSize selector.
However, changing the value of this variable has no effect on the
value accessed through smScriptSysFondSize.
Remember
that in all localized versions of system software the special value
of 0 is remapped to the system font ID. Thus, if an application
running under Japanese system software specifies a font family ID
of 0 in a function or in the txFont field
of the current graphics port, Osaka will be used. However, the variable
accessed by smScriptSysFond will
still show the true ID for Osaka (16384).
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptAppFondThe preferred application font (2 bytes); the font family ID of the application font preferred for this script. In the Roman script system, the value of this variable is the font family ID for Geneva.
This variable holds similar information
to the variable accessed through the smScriptAppFondSize selector.
However, changing the value of this variable has no effect on the
value accessed through smScriptAppFondSize.
Remember
that in all localized versions of system software the special value
of 1 is remapped to the application font ID. For example, if an application
running under Arabic system software specifies a font family ID
of 1 in a function, Nadeem will be used. However, the variable accessed by smScriptSysFond will
still show the true ID for Nadeem (17926).
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptBundleThe beginning of itlb values.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptNumberThe resource ID of the script’s numeric-format
('itl0') resource (2
bytes). The numeric-format resource includes formatting information
for the correct display of numbers, times, and short dates. The
value of this variable is initialized from the script system’s
international bundle resource.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptDateThe resource ID of the script’s long-date-format
('itl1') resource (2 bytes).
The long-date-format resource includes formatting information for the
correct display of long dates (dates that include month or day names). The
value of this variable is initialized from the script system’s
international bundle resource.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptSortThe resource ID of the script’s string-manipulation
('itl2') resource (2 bytes).
The string-manipulation resource contains functions for sorting
and tables for word selection, line breaks, character types, and
case conversion of text. The value of this variable is initialized
from the script system’s international bundle resource.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptFlagsThe script flags word, which contains bit flags specifying attributes of the script (2 bytes). The value of this variable is initialized from the script system’s international bundle resource. The “Language Codes A” constants are available for examining attributes in the script flags word. Bits above 8 are nonstatic, meaning that they may change during program execution. (Note that the constant values represent bit numbers in the flags word, not masks.)
The smsfIntellCP flag
is set if this script system uses spaces as word delimiters. In
such a script system it is possible to implement intelligent cut and
paste, in which extra spaces are removed when a word is cut from
text, and any needed spaces are added when a word is pasted into
text. Macintosh Human Interface Guidelines recommends that you implement intelligent
cut and paste in script systems that support it.
If
you use the CharToPixel function
to determine text widths, such as for line breaking, you need to
clear the smsfReverse bit
first.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptTokenThe resource ID of the script’s tokens ('itl4')
resource (2 bytes). The tokens resource contains information for
tokenizing and number formatting. The value of this variable is
initialized from the script system’s international bundle resource.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptEncodingThe resource ID of the script’s (optional)
encoding/rendering ('itl5') resource
(2 bytes)For single-byte scripts, the encoding/rendering resource specifies
text-rendering behavior for double-byte scripts, it specifies character-encoding
information. The value of this variable is taken from the script
system’s international bundle resource.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
smScriptLangThe language code for this version of the script. A language is a specialized variation of a specific script system (2 bytes). Constants for all defined language codes are listed in “Language Codes A.” The value of this variable is initialized from the script system’s international bundle resource.
Available in Mac OS X v10.0 and later.
Not available to 64-bit applications.
Declared in Script.h.
This section lists and describes the selector constants for
accessing script variables through calls to the GetScriptManagerVariable and SetScriptManagerVariable functions.
In every case the variable parameter passed to or from the function
is a long integer (4 bytes); the number in parentheses indicates
how many of the 4 bytes are necessary to hold the input or return
value for that variable. If fewer than 4 bytes are needed, the low
byte or low word contains the information.
In many cases the value of a script variable is taken from
the script system’s international bundle ( 'itlb')
resource.
Specify script token types.
enum {
tokenIntl = 4,
tokenEmpty = -1
};
tokenIntlThe 'itl' resource
number of the tokenizer.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenEmptyRepresents an empty flag.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify general transliterate text source masks.
enum {
smMaskAll = 0xFFFFFFFF,
smMaskAscii = 0x00000001,
smMaskNative = 0x00000002,
smMaskAscii1 = 0x00000004,
smMaskAscii2 = 0x00000008,
smMaskKana1 = 0x00000010,
smMaskKana2 = 0x00000020,
smMaskGana2 = 0x00000080,
smMaskHangul2 = 0x00000100,
smMaskJamo2 = 0x00000200,
smMaskBopomofo2 = 0x00000400
};
Specify selectors for the international table
enum {
smWordSelectTable = 0,
smWordWrapTable = 1,
smNumberPartsTable = 2,
smUnTokenTable = 3,
smWhiteSpaceList = 4,
iuWordSelectTable = 0,
iuWordWrapTable = 1,
iuNumberPartsTable = 2,
iuUnTokenTable = 3,
iuWhiteSpaceList = 4
};
smWordSelectTableSpecifies to get the word select break table
from 'itl2'.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smWordWrapTableSpecifies to get the word wrap break table
from 'itl2' .
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smNumberPartsTableSpecifies to get the default number parts table
from 'itl4'.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smUnTokenTableSpecifies to get the unToken table
from 'itl4' .
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smWhiteSpaceListSpecifies to get the white space list from 'itl4' .
Available in Mac OS X v10.0 and later.
Declared in Script.h.
iuWordSelectTableObsolete; specifies to get the word select
break table from 'itl2' .
Available in Mac OS X v10.0 and later.
Declared in Script.h.
iuWordWrapTableObsolete; specifies to get the word wrap break
table from 'itl2' .
Available in Mac OS X v10.0 and later.
Declared in Script.h.
iuNumberPartsTableObsolete; specifies to get the default number
parts table from ''itl4'.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
iuUnTokenTableObsolete; specifies to get the unToken table
from 'itl4'.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
iuWhiteSpaceListObsolete; specifies to get the white space
list from 'itl4'.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
These constants can be used as the value of the tableCode variable,
passed as a parameter to the GetIntlResourceTable
function.
Specify transliterate text target types for Roman or for double-byte scripts
enum {
smTransAscii = 0,
smTransNative = 1,
smTransCase = 0xFE,
smTransSystem = 0xFF,
smTransAscii1 = 2,
smTransAscii2 = 3,
smTransKana1 = 4,
smTransKana2 = 5
};
smTransAsciiSpecifies to convert to ASCII.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransNativeSpecifies to convert to the font script.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransCaseSpecifies to convert case for all text.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransSystemSpecifies to convert to the system script.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransAscii1Specifies to single-byte Roman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransAscii2Specifies to double-byte Roman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransKana1Specifies to single-byte Japanese Katakana.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransKana2Specifies to double-byte Japanese Katakana.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify transliteration targets for double-byte script systems.
enum {
smTransGana2 = 7,
smTransHangul2 = 8,
smTransJamo2 = 9,
smTransBopomofo2 = 10,
smTransLower = 0x4000,
smTransUpper = 0x8000,
smTransRuleBaseFormat = 1,
smTransHangulFormat = 2,
smTransPreDoubleByting = 1,
smTransPreLowerCasing = 2
};
smTransGana2Specifies double-byte Japanese Hiragana (no single-byte Hiragana).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransHangul2Specfies double-byte Korean Hangul.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransJamo2Specifies double-byte Korean Jamo.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransBopomofo2Specifies double-byte Chinese Bopomofo.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransLowerSpecifies target becomes lowercase.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransUpperSpecifies target becomes uppercase .
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransRuleBaseFormatSpecifies rule-based trsl resource
format.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransHangulFormatSpecifies table-based Hangul trsl resource
format.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransPreDoubleBytingSpecifies to convert all text to double byte before transliteration.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
smTransPreLowerCasingSpecifies to convert all text to lower case before transliteration.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify language codes (values 0 though 23).
enum {
langEnglish = 0,
langFrench = 1,
langGerman = 2,
langItalian = 3,
langDutch = 4,
langSwedish = 5,
langSpanish = 6,
langDanish = 7,
langPortuguese = 8,
langNorwegian = 9,
langHebrew = 10,
langJapanese = 11,
langArabic = 12,
langFinnish = 13,
langGreek = 14,
langIcelandic = 15,
langMaltese = 16,
langTurkish = 17,
langCroatian = 18,
langTradChinese = 19,
langUrdu = 20,
langHindi = 21,
langThai = 22,
langKorean = 23
};
langEnglishRepresents the English language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langFrenchRepresents the French language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langGermanRepresents the German language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langItalianRepresents the Italian language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langDutchRepresents the Dutch language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langSwedishRepresents the Swedish language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langSpanishRepresents the Spanish language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langDanishRepresents the Danish language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langPortugueseRepresents the Portuguese language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langNorwegianRepresents the Norwegian language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langHebrewRepresents the Hebrew language. The associated
script code is smHebrew.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langJapaneseRepresents the Japanese language. The associated
script code is smJapanese.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langArabicRepresents the Arabic language. The associated
script code is smArabic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langFinnishRepresents the Finnish language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langGreekRepresents the Greek language. The associated
script code is smGreek.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langIcelandicRepresents the Icelandic language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langMalteseRepresents the Maltese language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langTurkishRepresents the Turkish language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langCroatianRepresents the Croatian language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langTradChineseRepresents the Chinese (traditional chararacters)
language. The associated script code is smTradChinese.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langUrduRepresents the Urdu language. The associated
script code is smArabic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langHindiRepresents the Hindi language. The associated
script code is smDevanagari.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langThaiRepresents the Thai language. The associated
script code is smThai.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langKoreanRepresents the Korean language. The associated
script code is smKorean.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify language codes (values 24 though 46).
enum {
langLithuanian = 24,
langPolish = 25,
langHungarian = 26,
langEstonian = 27,
langLatvian = 28,
langSami = 29,
langFaroese = 30,
langFarsi = 31,
langPersian = 31,
langRussian = 32,
langSimpChinese = 33,
langFlemish = 34,
langIrishGaelic = 35,
langAlbanian = 36,
langRomanian = 37,
langCzech = 38,
langSlovak = 39,
langSlovenian = 40,
langYiddish = 41,
langSerbian = 42,
langMacedonian = 43,
langBulgarian = 44,
langUkrainian = 45,
langByelorussian = 46,
langBelorussian = 46
};
langLithuanianRepresents the Lithuanian language. The associated
script code is smEastEurRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langPolishRepresents the Polish language. The associated
script code is smEastEurRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langHungarianRepresents the Hungarian language. The associated
script code is smEastEurRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langEstonianRepresents the Estonian language. The associated
script code is smEastEurRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langLatvianRepresents the Lettish language. The associated
script code is smEastEurRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langSamiRepresents the language of the Sami people of northern Scandinavia.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langFaroeseModified smRoman/Icelandic
script
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langFarsiRepresents the Farsi language. The associated
script code is smArabic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langPersianRepresents the Farsi language. The associated
script code is smArabic. This
is the same as the language code langFarsi.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langRussianRepresents the Russian language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langSimpChineseRepresents the Chinese (simplified chararacters)
language. The associated script code is smSimpChinese.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langFlemishRepresents the Flemish language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langIrishGaelicRepresents Irish Gaelic. The associated script
code is smRoman or modified smRoman/Celtic
script (without dot above).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langAlbanianRepresents the Albanian language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langRomanianRepresents the Romanian language. The associated
script code is smEastEurRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langCzechRepresents the Czech language. The associated
script code is smEastEurRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langSlovakRepresents the Slovak language. The associated
script code is smEastEurRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langSlovenianRepresents the Slovenian language. The associated
script code is smEastEurRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langYiddishRepresents the Yiddish language. The associated
script code is smHebrew.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langSerbianRepresents the Serbian language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langMacedonianRepresents the Macedonian language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langBulgarianRepresents the Bulgarian language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langUkrainianRepresents the Ukrainian language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langByelorussianRepresents the Byelorussian language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langBelorussianRepresents a synonym for langByelorussian.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify language codes (values 47 though 70).
enum {
langUzbek = 47,
langKazakh = 48,
langAzerbaijani = 49,
langAzerbaijanAr = 50,
langArmenian = 51,
langGeorgian = 52,
langMoldavian = 53,
langKirghiz = 54,
langTajiki = 55,
langTurkmen = 56,
langMongolian = 57,
langMongolianCyr = 58,
langPashto = 59,
langKurdish = 60,
langKashmiri = 61,
langSindhi = 62,
langTibetan = 63,
langNepali = 64,
langSanskrit = 65,
langMarathi = 66,
langBengali = 67,
langAssamese = 68,
langGujarati = 69,
langPunjabi = 70
};
langUzbekRepresents the Uzbek language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langKazakhRepresents the Kazakh language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langAzerbaijaniRepresents the Azerbaijani language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langAzerbaijanArRepresents the Azerbaijani language. The associated
script code is smArabic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langArmenianRepresents the Armenian language. The associated
script code is smArmenian.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langGeorgianRepresents the Georgian language. The associated
script code is smGeorgian.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langMoldavianRepresents the Moldovan language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langKirghizRepresents the Kirghiz language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langTajikiRepresents the Tajiki language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langTurkmenRepresents the Turkmen language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langMongolianRepresents the Mongolian language. The associated
script code is smMongolian.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langMongolianCyrRepresents the Mongolian language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langPashtoRepresents the Pashto language. The associated
script code is smArabic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langKurdishRepresents the Kurdish language. The associated
script code is smArabic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langKashmiriRepresents the Kashmiri language. The associated
script code is smArabic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langSindhiRepresents the Sindhi language. The associated
script code is smExtArabic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langTibetanRepresents the Tibetan language. The associated
script code is smTibetan.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langNepaliRepresents the Nepali language. The associated
script code is smDevanagari.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langSanskritRepresents the Sanskrit language. The associated
script code is smDevanagari.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langMarathiRepresents the Marathi language. The associated
script code is smDevanagari.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langBengaliRepresents the Bengali language. The associated
script code is smBengali.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langAssameseRepresents the Assamese language. The associated
script code is smBengali.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langGujaratiRepresents the Gujarati language. The associated
script code is smGujarati.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langPunjabiRepresents the Punjabi language. The associated
script code is smGurmukhi.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify language codes (values 71 though 94).
enum {
langOriya = 71,
langMalayalam = 72,
langKannada = 73,
langTamil = 74,
langTelugu = 75,
langSinhalese = 76,
langBurmese = 77,
langKhmer = 78,
langLao = 79,
langVietnamese = 80,
langIndonesian = 81,
langTagalog = 82,
langMalayRoman = 83,
langMalayArabic = 84,
langAmharic = 85,
langTigrinya = 86,
langOromo = 87,
langSomali = 88,
langSwahili = 89,
langKinyarwanda = 90,
langRuanda = 90,
langRundi = 91,
langNyanja = 92,
langChewa = 92,
langMalagasy = 93,
langEsperanto = 94
};
langOriyaRepresents the Oriya language. The associated
script code is smOriya.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langMalayalamRepresents the Malayalam language. The associated
script code is smMalayalam.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langKannadaRepresents the Kannada language. The associated
script code is smKannada.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langTamilRepresents the Tamil language. The associated
script code is smTamil.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langTeluguRepresents the Telugu language. The associated
script code is smTelugu.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langSinhaleseRepresents the Sinhalese language. The associated
script code is smSinhalese.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langBurmeseRepresents the Burmese language. The associated
script code is smBurmese.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langKhmerRepresents the Khmer language. The associated
script code is smKhmer.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langLaoRepresents the Lao language. The associated
script code is smLaotian.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langVietnameseRepresents the Vietnamese language. The associated
script code is smVietnamese.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langIndonesianRepresents the Indonesian language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langTagalogRepresents the Tagalog language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langMalayRomanRepresents the Malay language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langMalayArabicRepresents the Malay language. The associated
script code is smArabic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langAmharicRepresents the Amharic language. The associated
script code is smEthiopic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langTigrinyaRepresents the Tigrinya language. The associated
script code is smEthiopic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langOromoRepresents the Galla language. The associated
script code is smEthiopic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langSomaliRepresents the Somali language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langSwahiliRepresents the Swahili language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langKinyarwandaThe associated script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langRuandaRepresents the Ruanda language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langRundiRepresents the Rundi language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langNyanjaThe associated script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langChewaRepresents the Chewa language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langMalagasyRepresents the Malagasy language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langEsperantoRepresents the Esperanto language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify lanaguage codes (values 128 though 141).
enum {
langWelsh = 128,
langBasque = 129,
langCatalan = 130,
langLatin = 131,
langQuechua = 132,
langGuarani = 133,
langAymara = 134,
langTatar = 135,
langUighur = 136,
langDzongkha = 137,
langJavaneseRom = 138,
langSundaneseRom = 139,
langGalician = 140,
langAfrikaans = 141
};
langWelshRepresents the Welsh language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langBasqueRepresents the Basque language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langCatalanRepresents the Catalan language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langLatinRepresents the Latin language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langQuechuaRepresents the Quechua language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langGuaraniRepresents the Guarani language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langAymaraRepresents the Aymara language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langTatarRepresents the Tatar language. The associated
script code is smCyrillic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langUighurRepresents the Uighar language. The associated
script code is smArabic.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langDzongkhaRepresents the Bhutanese language. The associated
script code is smTibetan.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langJavaneseRomRepresents the Javanese language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langSundaneseRomRepresents the Sundanese language. The associated
script code is smRoman.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langGalicianAvailable in Mac OS X v10.0 and later.
Declared in Script.h.
langAfrikaansAvailable in Mac OS X v10.0 and later.
Declared in Script.h.
Specify language codes (values 142 through 150).
enum {
langBreton = 142,
langInuktitut = 143,
langScottishGaelic = 144,
langManxGaelic = 145,
langIrishGaelicScript = 146,
langTongan = 147,
langGreekPoly = 148,
langGreenlandic = 149,
langAzerbaijanRoman = 150
};
langBretonThe associated script code is smRoman or
modified smRoman/Celtic
script
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langInuktitutInuit script using smEthiopic script
code
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langScottishGaelicThe associated script code is smRoman or modified smRoman/Celtic script
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langManxGaelicThe associated script code is smRoman or
modified smRoman/Celtic
script
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langIrishGaelicScriptThe associated script code is modified smRoman/Gaelic
script (using dot above).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langTonganThe associated script code is smRoman script
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langGreekPolyThe associated script code is smGreek script
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langGreenlandicThe associated script code is smRoman script
Available in Mac OS X v10.0 and later.
Declared in Script.h.
langAzerbaijanRomanRepresents the Azerbaijani language. The associated
script code is Roman script.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Indicates the language is not specified.
enum {
langUnspecified = 32767
};
Specify values for the the minimum and maximum defined region codes.
enum {
minCountry = verUS,
maxCountry = verGreenland
};
minCountryThe lowest defined region code (for range-checking);
currently this is equal to the region code verUS.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
maxCountryThe highest defined region code (for range-checking);
currently this is equal to the region code verThailand.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify codes for a variety of regions (values 0 - 25).
enum {
verUS = 0,
verFrance = 1,
verBritain = 2,
verGermany = 3,
verItaly = 4,
verNetherlands = 5,
verFlemish = 6,
verSweden = 7,
verSpain = 8,
verDenmark = 9,
verPortugal = 10,
verFrCanada = 11,
verNorway = 12,
verIsrael = 13,
verJapan = 14,
verAustralia = 15,
verArabic = 16,
verFinland = 17,
verFrSwiss = 18,
verGrSwiss = 19,
verGreece = 20,
verIceland = 21,
verMalta = 22,
verCyprus = 23,
verTurkey = 24,
verYugoCroatian = 25
};
verUSRepresents the region of the United States.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verFranceRepresents the region of France.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verBritainRepresents the region of Great Britain.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verGermanyRepresents the region of Germany.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verItalyRepresents the region of Italy.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verNetherlandsRepresents the region of the Netherlands.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verFlemishAvailable in Mac OS X v10.0 and later.
Declared in Script.h.
verSwedenRepresents the region of Sweden.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verSpainAvailable in Mac OS X v10.0 and later.
Declared in Script.h.
verDenmarkRepresents the region of Denmark.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verPortugalRepresents the region of Portugal.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verFrCanadaRepresents the French Canadian region.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verNorwayAvailable in Mac OS X v10.0 and later.
Declared in Script.h.
verIsraelRepresents the region of Israel.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verJapanRepresents the region of Japan.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verAustraliaRepresents the region of Australia.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verArabicRepresents the Arabic world. This is the same
as the region code verArabia.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verFinlandRepresents the region of Finland.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verFrSwissRepresents French for the region of Switzerland.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verGrSwissRepresents German for the region of Switzerland.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verGreeceRepresents the region of Greece.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verIcelandRepresents the region of Iceland.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verMaltaRepresents the region of Malta.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verCyprusRepresents the region of Cyprus.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verTurkeyRepresents the region of Turkey.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verYugoCroatianRepresents the Croatian system for the region of Yugoslavia.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Each region is associated with a particular language code and script code (not shown). The existence of a defined region code does not necessarily imply the existence of a version of Macintosh system software localized for that region.
Specify region codes (values 26 though 32).
enum {
verNetherlandsComma = 26,
verBelgiumLuxPoint = 27,
verCanadaComma = 28,
verCanadaPoint = 29,
vervariantPortugal = 30,
vervariantNorway = 31,
vervariantDenmark = 32
};
verNetherlandsCommaSpecifies Dutch.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verBelgiumLuxPointSpecifies Belgium.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verCanadaCommaSpecifies Canadian ISO.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verCanadaPointSpecifies Canadian; now unused.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
vervariantPortugalUnused.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
vervariantNorwayUnused.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
vervariantDenmarkSpecifies Danish Mac Plus.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify region codes (values 33 through 61).
enum {
verIndiaHindi = 33,
verPakistanUrdu = 34,
verTurkishModified = 35,
verItalianSwiss = 36,
verInternational = 37,
verRomania = 39,
verGreecePoly = 40,
verLithuania = 41,
verPoland = 42,
verHungary = 43,
verEstonia = 44,
verLatvia = 45,
verSami = 46,
verFaroeIsl = 47,
verIran = 48,
verRussia = 49,
verIreland = 50,
verKorea = 51,
verChina = 52,
verTaiwan = 53,
verThailand = 54,
verScriptGeneric = 55,
verCzech = 56,
verSlovak = 57,
verFarEastGeneric = 58,
verMagyar = 59,
verBengali = 60,
verByeloRussian = 61
};
verIndiaHindiThe Hindi system for the region of India; hi_IN..
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verPakistanUrduUrdu for Pakistan; ur_PK.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verTurkishModifiedAvailable in Mac OS X v10.0 and later.
Declared in Script.h.
verItalianSwissItalian Swiss; it_CH.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verInternationalEnglish for international use; Z en.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verRomaniaRomaniza; ro_RO
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verGreecePolyPolytonic Greek (classical); grc.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verLithuaniaLithuania; lt_LT.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verPolandPoland; pl_PL.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verHungaryRepresents the region of Hungary; hu_HU.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verEstoniaRepresents the region of Estonia; et_EE.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verLatviaRepresents the region of Latvia; lv_LV.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verSamise.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verFaroeIslfo_FO.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verIranPersian/Farsi Represents the region of Iran; fa_IR .
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verRussiaRepresents the region of Russia; ru_RU.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verIrelandRepresents Irish Gaelic for Ireland (without dot above); ga_IE.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verKoreaRepresents the region of Korea; ko_KR.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verChinaSimplified Chinese; zh_CN.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verTaiwanTraditional Chinese; zh_TW.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verThailandRepresents the region of Thailand; th_TH.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verScriptGenericGeneric script system (no language or script).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verCzechcs_CZ.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verSlovaksk_SK.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verFarEastGenericGeneric Far East system (no language or script).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verMagyarUnused; see verHungary.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verBengaliBangladesh or India; bn.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
verByeloRussianbe_B,
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify region codes (values 62 through 97).
enum {
verUkraine = 62,
verGreeceAlt = 64,
verSerbian = 65,
verSlovenian = 66,
verMacedonian = 67,
verCroatia = 68,
verGermanReformed = 70,
verBrazil = 71,
verBulgaria = 72,
verCatalonia = 73,
verMultilingual = 74,
verScottishGaelic = 75,
verManxGaelic = 76,
verBreton = 77,
verNunavut = 78,
verWelsh = 79,
verIrishGaelicScript = 81,
verEngCanada = 82,
verBhutan = 83,
verArmenian = 84,
verGeorgian = 85,
verSpLatinAmerica = 86,
verTonga = 88,
verFrenchUniversal = 91,
verAustria = 92,
verGujarati = 94,
verPunjabi = 95,
verIndiaUrdu = 96,
verVietnam = 97
};
Specify region codes (values 98 through 109).
enum {
verFrBelgium = 98,
verUzbek = 99,
verSingapore = 100,
verNynorsk = 101,
verAfrikaans = 102,
verEsperanto = 103,
verMarathi = 104,
verTibetan = 105,
verNepal = 106,
verGreenland = 107,
verIrelandEnglish = 108
};
Specify tokens used in mathematical operations.
enum {
tokenLeftCurly = 20,
tokenRightCurly = 21,
tokenLeftEnclose = 22,
tokenRightEnclose = 23,
tokenPlus = 24,
tokenMinus = 25,
tokenAsterisk = 26,
tokenDivide = 27,
tokenPlusMinus = 28,
tokenSlash = 29,
tokenBackSlash = 30,
tokenLess = 31,
tokenGreat = 32,
tokenEqual = 33,
tokenLessEqual2 = 34,
tokenLessEqual1 = 35,
tokenGreatEqual2 = 36,
tokenGreatEqual1 = 37,
token2Equal = 38,
tokenColonEqual = 39
};
tokenLeftCurlyRepresents an opening curly bracket.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenRightCurlyRepresents a closing curly bracket.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenLeftEncloseRepresents an opening European double quote.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenRightEncloseRepresents a closing European double quote.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenPlusRepresents a plus sign.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenMinusRepresents a minus sign.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenAsteriskRepresents a times/multiply sign.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenDivideRepresents a divide.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenPlusMinusRepresents a plus-or-minus symbol.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenSlashRepresents a slash.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenBackSlashRepresents a backslash.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenLessRepresents a less than sign.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenGreatRepresents a greater than sign.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenEqualRepresents an equal.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenLessEqual2Represents a less than or equal to sign (2 symbols).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenLessEqual1Represents a less than or equal to sign (1 symbol).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenGreatEqual2Represents a greater than or equal to sign (2 symbols).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenGreatEqual1Represents a greater-than-or-equal-to sign (1 symbol).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
token2EqualRepresents a double equal sign.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenColonEqualRepresents a colon equal sign.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify tokens for various punctuation marks.
enum {
tokenNotEqual = 40,
tokenLessGreat = 41,
tokenExclamEqual = 42,
tokenExclam = 43,
tokenTilde = 44,
tokenComma = 45,
tokenPeriod = 46,
tokenLeft2Quote = 47,
tokenRight2Quote = 48,
tokenLeft1Quote = 49,
tokenRight1Quote = 50,
token2Quote = 51,
token1Quote = 52,
tokenSemicolon = 53,
tokenPercent = 54,
tokenCaret = 55,
tokenUnderline = 56,
tokenAmpersand = 57,
tokenAtSign = 58,
tokenBar = 59
};
tokenNotEqualRepresents a not equal sign.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenLessGreatRepresents a less/greater sign (not equal in Pascal).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenExclamEqualRepresents an exclamation equal sign (not equal in C).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenExclamRepresents as exclamation point.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenTildeRepresents a centered tilde.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenCommaRepresents a comma.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenPeriodRepresents a period.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenLeft2QuoteRepresents an opening double quote.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenRight2QuoteRepresents a closing double quote.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenLeft1QuoteRepresents an opening single quote.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenRight1QuoteRepresents a closing single quote.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
token2QuoteRepresents a double quote.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
token1QuoteRepresents a single quote.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenSemicolonRepresents a semicolon.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenPercentRepresents a percent sign.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenCaretRepresents a caret.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenUnderlineRepresents an underline.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenAmpersandRepresents an ampersand.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenAtSignRepresents an at sign.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenBarRepresents a vertical bar.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify tokens for various symbols.
enum {
tokenQuestion = 60,
tokenPi = 61,
tokenRoot = 62,
tokenSigma = 63,
tokenIntegral = 64,
tokenMicro = 65,
tokenCapPi = 66,
tokenInfinity = 67,
tokenColon = 68,
tokenHash = 69,
tokenDollar = 70,
tokenNoBreakSpace = 71,
tokenFraction = 72,
tokenIntlCurrency = 73,
tokenLeftSingGuillemet = 74,
tokenRightSingGuillemet = 75,
tokenPerThousand = 76,
tokenEllipsis = 77,
tokenCenterDot = 78,
tokenNil = 127
};
tokenQuestionRepresents a question mark.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenPiRepresents a Pi token.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenRootRepresents a square root sign.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenSigmaRepresents a capital sigma.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenIntegralRepresents an integral sign.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenMicroRepresents a micro.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenCapPiRepresents a capital pi.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenInfinityRepresents an infinity sign.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenColonRepresents a colon.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenHashRepresents a pound sign (U.S. weight).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenDollarRepresents a dollar sign.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenNoBreakSpaceRepresents a nonbreaking space.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenFractionRepresents a fraction.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenIntlCurrencyRepresents an international currency token.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenLeftSingGuillemetRepresents an opening single guillemet.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenRightSingGuillemetRepresents a closing single guillemet.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenPerThousandRepresents a per thousands token.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenEllipsisRepresents an ellipsis character.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenCenterDotRepresents a center dot.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenNilAvailable in Mac OS X v10.0 and later.
Declared in Script.h.
Specify types of tokens.
enum {
tokenUnknown = 0,
tokenWhite = 1,
tokenLeftLit = 2,
tokenRightLit = 3,
tokenAlpha = 4,
tokenNumeric = 5,
tokenNewLine = 6,
tokenLeftComment = 7,
tokenRightComment = 8,
tokenLiteral = 9,
tokenEscape = 10,
tokenAltNum = 11,
tokenRealNum = 12,
tokenAltReal = 13,
tokenReserve1 = 14,
tokenReserve2 = 15,
tokenLeftParen = 16,
tokenRightParen = 17,
tokenLeftBracket = 18,
tokenRightBracket = 19
};
tokenUnknownHas no existing token type.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenWhiteRepresents a whitespace character.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenLeftLitRepresents an opening literal marker.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenRightLitRepresents a closing literal marker.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenAlphaRepresents an alphabetic token.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenNumericRepresents a numeric token.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenNewLineRepresents a new line.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenLeftCommentRepresents an opening comment marker.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenRightCommentRepresents a closing comment marker.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenLiteralRepresents a literal token.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenEscapeRepresents an escape character.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenAltNumRepresents an alternate number (such as at $B0–$B9).
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenRealNumRepresents a real number.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenAltRealRepresents an alternate real number.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenReserve1Reserved.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenReserve2Reserved.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenLeftParenRepresents an opening parenthesis.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenRightParenRepresents a closing parenthesis.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenLeftBracketRepresents an opening square bracket.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenRightBracketRepresents a closing square bracket.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Specify token conditions returned by the function IntlTokenize.
enum {
tokenOK = 0,
tokenOverflow = 1,
stringOverflow = 2,
badDelim = 3,
badEnding = 4,
crash = 5
};
typedef SInt8 TokenResults;
tokenOKIndicates the function exectured without error.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
tokenOverflowIndicates a token overflow.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
stringOverflowIndicates a string overflow.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
badDelimIndicates a bad delimiter,
Available in Mac OS X v10.0 and later.
Declared in Script.h.
badEndingIndicates a bad ending.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
crashIndicates a crash.
Available in Mac OS X v10.0 and later.
Declared in Script.h.
Token results are returned by the function IntlTokenize.
Specify obsolete language codes provided for backward compatibility.
enum {
langPortugese = 8,
langMalta = 16,
langYugoslavian = 18,
langChinese = 19,
langLettish = 28,
langLapponian = 29,
langLappish = 29,
langSaamisk = 29,
langFaeroese = 30,
langIrish = 35,
langGalla = 87,
langAfricaans = 141
};
These are obsolete language code names kept for backward compatibility. They have one or more of the following problems: misspelled, ambiguous, misleading, archaic, inappropriate.
Specfiy obsolete region code names provided for backward compatibility.
enum {
verFrBelgiumLux = 6,
verBelgiumLux = 6,
verArabia = 16,
verYugoslavia = 25,
verIndia = 33,
verPakistan = 34,
verRumania = 39,
verGreekAncient = 40,
verLapland = 46,
verFaeroeIsl = 47,
verGenericFE = 58,
verBelarus = 61,
verUkrania = 62,
verAlternateGr = 64,
verSerbia = 65,
verSlovenia = 66,
verMacedonia = 67,
verBrittany = 77,
verWales = 79,
verArmenia = 84,
verGeorgia = 85,
verAustriaGerman = 92,
verTibet = 105
};
Obsolete region code names (kept for backward compatibility): Misspelled or alternate form, ambiguous, misleading, considered pejorative, archaic, etc.
Specify obsolete constants provided for backward compatibility.
enum {
romanSysFond = 0x3FFF,
romanAppFond = 3,
romanFlags = 0x0007,
smFondStart = 0x4000,
smFondEnd = 0xC000,
smUprHalfCharSet = 0x80
};
You should use the function GetScriptVariable to obtain the information
specified by these constants.
Specify obsolete script code names provided for backward compatibility.
enum {
smChinese = 2,
smRussian = 7,
smLaotian = 22,
smAmharic = 28,
smSlavic = 29,
smEastEurRoman = 29,
smSindhi = 31,
smKlingon = 32
};
Specify obsolete script code values for International Utilities provided for backward compatibility.
enum {
iuSystemScript = -1,
iuCurrentScript = -2
};
Specify obsolete token names provided for backward compatibility.
enum {
delimPad = -2,
tokenTilda = 44,
tokenCarat = 55
};
The most common result codes returned by Script Manager are listed below.
© 2003, 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-12-11)