| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (8 out of 9)

Using the Korean Language Facilities

The Korean language facilities support all system-defined G2 features, plus the ability to develop, run, and view applications in Korean (Hangul). KBs developed in Korean are platform independent and can run without modification in other languages. Korean outline fonts are available if you have appropriate authorization.

Support for the Korean language within G2 consists of the Hangul Front-End Processor (HFEP), which handles all Korean keyboard input; korean.kl, which includes translations of all G2 menu choices; and kscodes.kl, which provides the KS C 5601 character set as an online reference.

The Korean language facilities provide the following support for developing KBs in Hangul:

Feature Description
Customized menus and other facilities
G2 facilities, such as the editor, have localized option buttons. Loading korean.kl provides versions of the G2 system-defined menu options with both Hangul and English localizations. Developers can localize any facility element, as described in Using Language Translations for Localization.
Knowledge engineering
Ability to assign Korean names to all the items you define, including objects, workspaces, rules, procedures, and methods.
Additional characters
Full support of all characters from the standard KS C 5601 Korean character set.
Standard PostScript compatibility
G2 print functions for Korean KBs fully compatible with any standard PostScript printer.

Accessing Korean Menus

You can access Korean menus and facilities by merging in korean.kl.

To merge korean.kl into your own KB:

  1. Choose: Main Menu > Merge KB.

  2. Enter the name of the KL you wish to merge into your KB: korean.kl

The korean.kl file is located in the kbs\utils subdirectory of the G2 product directory.

Once you have merged the KL into your own KB, this workspace appears:


The current user mode is developer. Starting the KB activates all go-to-subworkspace and other buttons.

To start the KB:

The G2 menu translations and the translated editor buttons do not appear unless the current language is Korean.

To change the current language to Korean:

  1. Choose Main Menu > System Tables > Language Parameters

  2. Edit the Current-language attribute and select korean.

Entering Korean Text

When Korean is the current language in your KB, the editor includes two language modes to help you enter Korean text, as shown in the following figure:


Each time you invoke the editor, English is the default entry mode and English characters appear as you type.

To toggle between language modes:

Entering Korean Characters

When Hangul is the current entry mode, you can enter any Korean characters directly from the keyboard, using the standard Korean keyboard layout:


Entering KS C 5601 Characters

While you can enter Korean characters in the editor directly from the keyboard, you may need to enter other characters as well. When the current language is korean, you can enter any character from the KS C 5601 character set as a four-digit hexadecimal value. If you enter the same value when the current language is not korean, G2 interprets the value as Unicode character. If you do not know the hexadecimal code for the character you wish to enter, you can locate it in the kscodes.kl, which provides a complete set of KS C 5601 text inserters.

To enter a KS C 5601 code in the Text Editor:

  1. Type Alt + i to invoke a secondary text entry box.

  2. Enter the four-digit code, as shown next.

The character appears as soon as you enter a valid four-digit code.


Alternatively, you can merge in the kscodes.kl KL and copy a character from the text inserters.

To merge kscodes.kl into your KB:

  1. Choose Main Menu > Merge KB

  2. Enter the name of the KL you wish to merge into your KB: kscodes.kl

The kscodes.kl file is located in the kbs\utils subdirectory of the G2 product directory, and displays a series of text inserter workspaces, each with multiple sets of characters,a few of which are shown next.


The hexadecimal codes are listed in series in the upper left-hand corner of each workspace containing the KS C 5601 character set. Chinese characters begin at 4A21 hexadecimal on the workspace called KS C 5601-4900.

Using Text Inserters

You can use text inserters to access Hangul or Chinese characters from these workspaces to use in your KB.

Instead of typing characters in the Text Editor, you can click on any character from one of the KS-5601 text insertion menus included in the kscodes.kl. G2 copies the character to the editor.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (8 out of 9)

Copyright © 1997 Gensym Corporation, Inc.