Adding a Language-Specific Knowledge Base

You can extend theme functionality to languages other than English or French by loading your own knowledge base for any single-byte whitespace delimited language, including Spanish.

Theme functionality includes theme indexing, ABOUT queries, theme highlighting, and the generation of themes, gists, and theme summaries with CTX_DOC.

You extend theme functionality by adding a user-defined knowledge base. For example, you can create a Spanish knowledge base from a Spanish thesaurus.

To load your language-specific knowledge base, follow these steps:

  1. Load your custom thesaurus using ctxload. Refer to "Loading a Thesaurus with ctxload".
  2. Set NLS_LANG so that the language portion is the target language. The charset portion must be a single-byte character set.
  3. Compile the loaded thesaurus using ctxkbtc as follows:

    ctxkbtc -user ctxsys -name my_lang_thes

    Enter the password for -user when prompted. Refer to "Compiling a Loaded Thesaurus".

    This statement compiles your language-specific knowledge base from the loaded thesaurus.

To use this knowledge base for theme analysis during indexing and ABOUT queries, specify the NLS_LANG language as the THEME_LANGUAGE attribute value for the BASIC_LEXER preference.