L_DocGetDefaultSpellLanguages

#include "ltdoc.h"

L_LTDOC_API L_INT L_DocGetDefaultSpellLanguages(hDoc, ppLangIds, pnLangCount)

L_HDOC hDoc;

/* handle to the OCR document */

LANGIDS ** ppLangIds;

/* pointer to array to be updated */

L_INT * pnLangCount;

/* pointer to integer to be updated */

Gets the default spell languages from the OCR document engine.

Parameter

Description

hDoc

Handle to the OCR document.

ppLangIds

Pointer to LANGIDS array to be updated with the default spell languages.

pnLangCount

Pointer to an integer to be updated with the language element counts.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Gets list of default Spelling languages.

All available languages are the default languages and are always used when checking spelling.

The content of the resulting list depends on the configuration of the OCR document engine, i.e. the presence of the Language dictionary files in the engine Binary directory. For the list of the supported languages, see the topic (Language Dictionary List).

Required DLLs and Libraries

LTDOC

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

L_DocSelectLanguages, L_DocGetSelectedLanguages, L_DocFreeLanguages, L_DocSetCharLangsOptions, L_DocGetCharLangsOptions, L_DocIsCharEnabled, L_DocRecognize

Topics:

OCR Functions: Languages

 

Working with Languages

Example

For an example, refer to L_DocRecognize.