Korean(5) — Macro Packages and Conventions
NAME
Korean, korean − Introduction to Korean language support
DESCRIPTION
KS C 5601-1987 is a Korean national standard that defines a set of graphic characters to be used for information interchange. The operating system supports this standard with coded character sets, locales, device, and other kinds of system files.
Codesets
There are two codesets available to support Korean. The following list specifies both the codesets and the strings that represent those codesets in the names of locales, converters, and other kinds of system files:
DEC Korean, deckorean
See deckorean(5) for more information about the DEC Korean codeset.
Korean EUC (Extended UNIX Code), eucKR
See eucKR(5) for more information about the Korean EUC codeset.
Korean Locales
The following list specifies Korean locales for Korea and the codesets they support:
ko_KR.deckorean, for DEC Korean
ko_KR.eucKR, for Korean EUC
You can use the locale command (see locale(1)) to display the names of locales installed on your system. See i18n_intro(5) for information on setting locale.
In a windows environment, you also need to set the session language. The way you do this depends on which windows environment you are using:
•In the Common Desktop environment (CDE), use the Language menu accessed from the login window Options button.
•In the DECwindows environment, use the Language Option dialog box invoked from the Session Manager’s Options menu.
Keyboards, Input Servers, and Input Methods
The operating system supports the VT382-K Korean terminal.
The operating system supports the following Korean keyboards:
LK201-K
LK401-K
See the keyboard(5) reference page for information on loading keyboard mapping tables (keymaps) for keyboards.
For the DECwindows Motif environment, the operating system provides the dxhangulim input server to support Korean input methods. You can start this input server with the following command:
% /usr/bin/X11/dxhangulim &
The input server must be running before you start the application window where you enter Korean characters.
Korean characters can be entered by the following input methods:
•Hangul
•Hanja
•Row-Column Code
•Phrase Input Method
You select the Korean input method by using a key or key sequence as follows:
•Using a VT382-K terminal:
Compose selects Hangul
Shift+Compose selects Hanja
Ctrl+Compose selects Row-Column
•Using an LK201∗ keyboard:
Compose+Space selects Hangul
Shift+Compose selects Hanja
Ctrl+Compose+Space selects Row-Column
F6 selects Phrase
•Using an LK401∗ keyboard:
Compose selects Hangul
Shift+Compose selects Hanja
Ctrl+Compose selects Row-Column
F6 selects Phrase
Running DECwindows Motif Applications
X or Motif applications require non-ASCII fonts to display Korean characters. Therefore, you must set the font path appropriately before starting an application that displays Korean characters. An application can find Korean fonts in either of the following directories:
•/usr/i18n/lib/X11/fonts/decwin/75dpi, for low resolution display
•/usr/i18n/lib/X11/fonts/decwin/100dpi, for high resolution display
Before you start a Korean application, use the following command to check the font path:
% xset q
If one of the directories in the preceding list is not in the font path, the following example shows how to add the directory. You can substitute 100dp for 75dpi if you want high resolution display.
% xset +fp /usr/i18n/lib/X11/decwin/75dpi/
% xset fp rehash
After ensuring that the font path is set correctly and that the dxhangulim input server is running (see the section on input devices, servers, and methods), you can use the following steps to start a Korean application:
1.If you have not already made the desired language setting, then:
1.Choose Language from the Option menu.
2.Select the Korean language that you want the application to use.
The available Korean language options reflect the different codesets supported by Korean locales, as follows:
Korean
This language option is equivalent to Korean (EUC).
Korean (DEC Korean)
Korean (EUC)
3.Press the OK button.
2.Choose the application you want to start from the Application menu.
Printers
The operating system supports the following Korean printers. The associated print filter is noted in parentheses following the printer name.
LA380-K (la380kof)
The LA380-K is a Korean graphic line printer.
DL510-KA (dl510kaof)
The DL510-KA is a Korean page printer.
DEClaser 1152 (dl1152wrof)
The DEClaser 1152 is a PostScript printer that uses a font-faulting mechanism to download fonts from the system’s disk.
DEClaser 5100, model LN09X-HD (dl5100wrof)
The DEClaser 5100 is a PostScript printer that uses a built-in font disk.
For more information on setting up and configuring these printers, refer to the i18n_printing(5) and lprsetup(8) reference pages.
Codeset Conversion
The following codeset converters are available for Korean:
•cp949_UCS-2 (Microsoft Korean code-page format to UCS-2)
If the output from this converter is then converted to DEC Korean, some Hangul characters may be lost. See code_page(5) for more information.
•cp949_UCS-4 (Microsoft Korean code-page format to UCS-4)
If the output from this converter is then converted to DEC Korean, some Hangul characters may be lost. See code_page(5) for more information.
•cp949_UTF-8 (Microsoft Korean code-page format to UTF-8)
If the output from this converter is then converted to DEC Korean, some Hangul characters may be lost. See code_page(5) for more information.
•deckorean_eucKR (DEC Korean to Korean EUC)
•deckorean_UCS-2 (DEC Korean to UCS-2)
•deckorean_UCS-4 (DEC Korean to UCS-4)
•deckorean_UTF-8 (DEC Korean to UTF-8)
•eucKR_deckorean (Korean EUC to DEC Korean)
•eucKR_ISO-2022-KR (Korean EUC to Korean ISO-2022)
•ISO-2022-KR_eucKR ( Korean ISO-2022 to Korean EUC)
•UCS-2_deckorean (UCS-2 to DEC Korean)
If Korean character mapping in the input file conforms to Version 1.1 of the Unicode standard, you must preprocess the data by running the UNICODE-1-1_UCS-2 converter before running the UCS-2_deckorean converter. If the character mapping conforms to Version 2.0 of the Unicode standard, this preprocessing step is not necessary.
•UCS-4_deckorean (UCS-4 to DEC Korean)
If Korean character mapping in the input file conforms to Version 1.1 of the Unicode standard, you must preprocess the data by running the UNICODE-1-1-UCS-4_UCS-4 converter before running the UCS-4_deckorean converter. If the character mapping conforms to Version 2.0 of the Unicode standard, this preprocessing step is not necessary.
•UTF-8_deckorean (UTF−−8 to DEC Korean)
If Korean character mapping in the input file conforms to Version 1.1 of the Unicode standard, you must preprocess the data by running the UNICODE-1-1-UTF-8_UTF-8 converter before running the UTF-8_deckorean converter. If the character mapping conforms to Version 2.0 of the Unicode standard, this preprocessing step is not necessary.
For more information about codeset converters, see the iconv_intro(5) reference page. For information on PC code pages, see code_page(5). For information on UCS-2, UCS-4, and UTF-8, see Unicode(5).
EXAMPLES
This section shows the steps in the DECwindows Motif environment to set up Korean language support and start the DECterm application where you can display and input Korean text.
1.Make sure that the font path includes either the 75dpi or 100dpi directory that contains fonts for Asian languages:
% xset q
If neither /usr/i18n/lib/decwin/75dpi/ nor /usr/i18n/lib/decwin/75dpi/ is included in the display, add one of them to the font path. For example:
% xset +fp /usr/i18n/lib/decwin/75dpi/
% xset fp rehash
2.If it is not already running, start the dxhangulim input server:
% /usr/bin/X11/dxhangulim &
3.Choose Keyboard from the Option menu
4.In the the Keyboard Options dialog box, select the option for Korean. Then click on the Apply and OK buttons.
5.Choose Language from the Option menu, select one of the Korean language optons in the Language Options dialog box, and click on the OK button
6.Create a new DECterm window by choosing DECterm from the Application menu.
SEE ALSO
Commands: locale(1), lp(1), lpr(1), dxhangulim(1X), xset(1X), lpd(8), lprsetup(8)
Files: printcap(4)
Others: code_page(5), deckorean(5), eucKR(5), i18n_intro(5), i18n_printing(5), iconv_intro(5), keyboard(5), l10n_intro(5), Unicode(5)