Customizing 8-bit Localization Information - Full-Text Retrieval (FTR) - Help

Full-Text Retrieval (FTR) Help

Language
English
Product
Full-Text Retrieval (FTR)
Search by Category
Help

If you are using 8-bit International character sets to process data in different languages, you can control the default locale information using variables in the site.cfg configuration file of your system. By customizing the information, you can provide more meaningful names and terms to improve the use of the software. The following variables can be set and manipulated.

  • FTR_DOC_LOCALE

    This variable represents the default locale used when a document is created or searched in the system.

    set FTR_DOC_LOCALE "German";

  • FTR_ATTR_LOCALE

    This variable represents the locale used when attributes are created or searched in the system. The initial value is set in one of two ways.

    • If the FTR_DOC_LOCALE variable is set, the initial value is automatically set to the value of FTR_DOC_LOCALE.

    • The initial value can be set using a conditional statement based on host groups. The host groups are defined according to the locale used for each. The grouping of the hosts can be based on language, platform, or a combination of each. FTR_DOC_LOCALE is set by resolving the conditional statement.

      #German hosts on the NT platform

      define FTR_NT_german_hosts

      "node_g1"

      "node_g2"

      ;

      #French hosts on the HP platform

      define FTR_HP_french_hosts

      "node_f1"

      "node_f2"

      ;

      set FTR_ATTR_LOCALE host = {¬FTR_NT_german_hosts} "German (Win Latin 1)" ;

      set FTR_ATTR_LOCALE host = {¬FTR_HP_french_hosts} "French (Roman 8)" ;

      If the host is an NT machine in the German host group, FTR_ATTR_LOCALE is set to German. If the host is an HP machine in the French host group, FTR_ATTR_LOCALE is set to French.

  • FTR_name_DOC_CHARACTER

    This variable maps a locale name to a character set name. The more meaningful character set name is then used instead of referring to the actual character set. The name substring defines the character set name. For example, FTR_HPUX_CHARCODE defines the character set mapping for the HPUX character set name.

    set FTR_UNIX_CHARCODE "ISO_LATIN1";

    set FTR_HPUX_CHARCODE "ROMAN_8";

    set FTR_NT_CHARCODE "WIN_LATIN1";

    set FTR_7BITASCII_CHARCODE "7BITASCII";

  • FTRlocale_list

    This variable provides a list of available locales for the system. The dialogs can be customized to display a selectable list containing these options. Selecting a locale from the list sets FTR_ATTR_LOCALE to the selected locale. The list also maps the displayed name to the logical character set name previously defined using the FTR_name_DOC_CHARACTER variable. The displayed name is to the left of the colon and the logical name to the right.

    #Define Map between locale description:locale name

    #

    define FTRlocale_list

    "English (7 bit ASCII:7BITASCII"

    "German UNIX:UNIX"

    "German HP:HPUX"

    "German NT:NT"

    "French UNIX:UNIX"

    "French HP:HPUX"

    "French NT:NT"

    ;

    For more information on customizing your dialogs, see the Directa Customization Guide and Directa Administrator's Guide.

See Also

Supported Character Sets