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 operating environment provides two window environments, CDE and the OpenWindows environment. CDE is a fully internationalized environment; it does not require most of the administration tasks that the OpenWindows environment requires to handle Traditional Chinese. For information on starting up OpenWindows, see Appendix A, "Open Windows Information." 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_TW.EUC - Symbolic link to zh_TW locale
zh_TW.UTF-8 - Traditional Chinese environment in Unicode 3.0 standard
The zh_TW.BIG5 locale runs under CDE, but does not support OpenWindows.
You can change your default locale using the following procedure.
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.
Put aliases like the following in your .profile file.
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"
Put aliases like the following in your .cshrc file.
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"
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 or zh_TW.BIG5. To add a different font directory path dynamically, type:
system% xset +fp font_directory-path