|
|||||||||||||||
|
Tips for Linux Internationalization (i18n) or how to handle Asian text in Linux
Introduction The purpose of this document is to show how to view Asian and other non-English characters on Linux and Unix. Examples are given for the following configuration: Conclusions and solutions in this document can be generalized as follows: Client or server? When working with Linux, there are two ways to access Asian characters: The easiest way to view Asian text on Linux or Unix is to with Netscape. Here are the steps:
The same characters may be stored in UTF-8, in which case you will need to use the Unicode (UTF-8) setting. Note: the first step applies only to RedHat Linux 8.0 and perhaps earlier releases of RedHat Linux. The remainder of this section applies more generally. Select your default language by opening the Language Selection application as root (System Settings --> Language in the KDE or execute redhat-config-language). The following dialog will appear:
If you see the language you want, simply set that language and skip to Test it. If not, read on!
If you see only "English (USA)" or some other language, but not the Asian language you want to display, you will need to add language support. For RedHat Linux, language support is part of the Linux installation process. There is a nice dialog in the installation program that lets you add languages, but you will not be able to add them later using the installation program, "anaconda". I tried installing an update, but there was no option to add languages. Here are the steps that I went through to add Chinese and Japanese support:
Note: RedHat recommends a different SYSFONT setting in their release notes. "On the console, the latarcyrheb‑sun16 font is used for best Unicode coverage. Due to the use of this font, bold colors are not available."
You can modifiy this for other languages such as Japanese or Korean (or Russian, for that matter). Try out an xterm with some Chinese text. The following screen is a display of a Microsoft glossary for Simplified Chinese, encoded in GB2312.
The setting for $LANG is zh_CN.GB18030, and the program shown is vi.
One of the ways to deal with any data held on a Linux or Unix server is through terminal emulation on Windows. All you need is a good terminal emulator, one which handles Asian characters and which supports various fonts and scripts.
One very nice terminal emulator that supports Asian characters is NetTerm. Here is a simple setup for connecting to Linux as an Xterm:
For an example, see the following dialog:
The following dialog shows a setting for Chinese with white characters (default is a funky lime color):
Hummingbird eXceed Preliminary notes By default, eXceed does not install Asian fonts. They can be added by choosing the "Custom" installation option, and re-installing if necessary. Strangely, the option to set up Asian fonts is labelled "Japanese". If you select Japanese, a later dialog offers Chinese and Korean fonts as well. If you installed using default settings, you can re-install, and choose the Asian fonts.
To view Chinese, you may need to install cxterm. This is a version of xterm that supports Chinese as well as Japanese and Korean. The version I found was cxterm-5.1p1-2.i386.rpm (search on that in Google). This version of cxterm comes with Big-5 fonts only, because other Asian fonts are delivered with RedHat. cxterm can run Japanese, Korean, and GB formats too, though I only tested Big-5.
The concept of cxterm is different from NetTerm, which is a terminal emulator running on Windows. cxterm runs on the Linux (or Unix) box and runs like any other X-Windows program.
Here is a screen shot of cxterm running with default settings on Windows:
If you don't like the small white-on-black setup, you can change it as follows: Dislaying and working with Asian fonts can be done very nicely on Linux. This applies to: Your comments are always welcome. Simply visit our Guestbook |
|||||||||||||||
|