Carbon


GetScriptLanguageSupport

Header: TextServices.h Carbon status: Supported

Determines which languages and scripts a specified text service component supports, including its primary language and script.

ComponentResult GetScriptLanguageSupport (
    ComponentInstance ts, 
    ScriptLanguageSupportHandle *scriptHdl
);
Parameter descriptions
ts

A component instance created by a prior call to the Component Manager OpenComponent function.

scriptHdl

A handle to a script-language support structure. The handle must be either NULL or a valid handle. If it is NULL, the text service component allocates a new handle. If it is already a valid handle, the text service component resizes it as necessary. . GetScriptLanguageSupport should return a list of scripts and languages in this parameter.

function result

The return value should contain 0 if the list is correct, or an error value if an error occurred.

DISCUSSION

If you are writing a text service component, it must implement a function for this call.

The GetScriptLanguageSupport function lets a caller find out all scripts and languages that your text service component supports

The component should list all its supported scripts and languages, starting with the primary script and language as specified in the componentFlags field of its component description structure.

Client applications also may make this call, but the Text Services Manager does not play a role in the connection between the client application making the call and the text service component receiving it. If you are an application making this call, you need to know the component instance of the component whose function you are calling.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


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