The Simplified Chinese Solaris operating environment must be set up for using Simplified Chinese text facilities. This chapter describes the steps required to set up the Simplified Chinese environment and to start Simplified Chinese Solaris operation.
The Simplified Chinese Solaris operating environment provides two window environments: Common Desktop Environment (CDE) and OpenWindows. CDE is a fully internationalized environment; it does not require most of the administration tasks that the OpenWindows environment requires to handle Simplified Chinese. For information on starting OpenWindows, see Appendix A, Open Windows Information. The Simplified Chinese Solaris product includes the following locales:
zh - Simplified Chinese environment in GBK, an extension of GB2312-80 (that is, Guo Biao Kuo in Chinese Pin Yin), GBK contains all the CJK characters that are in Unicode 2.1.
zh - Simplified Chinese environment in extended UNIX code (EUC)
zh.GBK - Simplified Chinese environment in GBK, an extension of GB2312-80. GBK contains all of the characters in ISO/IEC10646-1 and GB13000-1, as well as most of the symbols in TCA_CNS 11643-92.
zh_CN.EUC-- Symbolic link to zh locale.
zh_CN.GBK-- Symbolic link to zh.GBK locale.
zh.UTF-8-- new in Solaris 8, Simplified Chinese environment in Unicode 3.0
zh_CN.UTF-8-- Symbolic link to zh.UTF--8 locale.
You can change your default locale using the following procedure.
Choose the language button on the dtlogin window.
Select the C, zh, zh.UTF-8, or zh.GBK locale.
Your new locale is in effect.
You can use aliases to change a terminal-emulation window between the Simplified Chinese and ASCII/English locale from time to time without typing long command lines or editing your .dtlogin file and running source every time.
alias chn "export LANG=zh; /bin/stty cs8 -istrip defeucw" alias chn_GBK "export LANG=zh.GBK; /bin/stty cs8 -istrip defeucw" alias asc "export LANG=C; /bin/stty cs7 istrip defeucw" alias chn_UTF-8 "export LANG=zh.UTF-8; /bin/stty cs8 -istrip defeucw" |
alias chn_EUC "setenv LANG zh; /bin/stty cs8 -istrip defeucw" alias chn_GBK "setenv LANG zh.GBK; /bin/stty cs8 -istrip defeucw" alias asc "setenv LANG C; /bin/stty cs7 istrip defeucw" alias chn_UTF-8 "setenv LANG=zh.UTF-8; /bin/stty cs8 -istrip defeucw" |
The Xsession script (in /usr/dt/bin) that comes with the Simplified Chinese operating environment includes the following font path: /usr/openwin/lib/locale/zh/X11/fonts. To add a different font directory path dynamically, type:
system% xset +fp font_directory-path |