Chapter 2Starting the Traditional Chinese Solaris Software
The Traditional Chinese Solaris operating environment
must be specially set up for using Traditional Chinese text facilities. This
chapter describes the steps required to set up the Traditional Chinese environment
and to start Traditional Chinese Solaris operation.
The Traditional Chinese Solaris product includes the following locales:
C - ASCII English environment.
zh_TW - Traditional Chinese environment
in extended UNIX code (EUC) CNS 11643-1992 standard.
zh_TW.BIG5 - Traditional Chinese
environment in the Big5 codeset.
zh_HK.BIG5HK - Traditional Chinese
environment in Big5-HKSCS code that supports the Hong Kong Supplementary
Character Set (HKSCS), which is a supplementary character set of the Big-5
and ISO 10646 coding schemes.
zh_HK.UTF-8 - Traditional Chinese
(Hong Kong) environment in Unicode 3.1.
zh_TW.EUC - Symbolic link to zh_TW
locale.
zh_TW.UTF-8 - Traditional Chinese
environment in Unicode 3.1 standard.
Setting the Default Locale
You can change your default locale using the following procedure.
 Choose the language button on the dtlogin window.
Select the C, zh_TW, zh_TW.BIG5 , zh_TW.UTF-8, zh_HK.BIG5HK or zh_HK.UTF-8locale. Your new locale is now in effect
Using Aliases to Set Locales
You can use aliases to change a terminal-emulation window between the
Traditional Chinese locales and ASCII/English locale from time to time without
typing long command lines or editing your .dtlogin file
and running source every time.
Setting Up Locale Aliases for the Korn Shell
alias twn_EUC "export LANG=zh_TW; /bin/stty cs8 -istrip defeucw"
alias twn_BIG5 "export LANG=zh_TW.BIG5; /bin/stty cs8 -istrip defeucw"
alias asc "export LANG=C; /bin/stty cs7 istrip defeucw"
alias twn_UTF-8 "export LANG=zh_TW.UTF-8; /bin/stty cs8 -istrip defeucw"
|
Setting Up Locale Aliases for the C Shell
alias twn_EUC "setenv LANG zh_TW; /bin/stty cs8 -istrip defeucw"
alias twn_BIG5 "setenv LANG zh_TW.BIG5; /bin/stty cs8 -istrip defeucw"
alias asc "setenv LANG C; /bin/stty cs7 istrip defeucw"
alias twn_UTF-8 "setenv LANG=zh_TW.UTF-8; /bin/stty cs8 -istrip defeucw"
|
Adding Font Directories
The Xsession script (located in /usr/dt/bin) that comes with the Traditional Chinese Solaris operating environment
includes the following font path: /usr/openwin/lib/locale/locale/X11/fonts, where locale is either zh_TW, zh_TW.BIG5
or zh_HK.BIG5HK. To add a different font directory path
dynamically, type:
system% xset +fp font_directory-path
|
|