Traditional Chinese Solaris User's Guide

Chapter 2 Starting 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:

Setting the Default Locale

You can change your default locale using the following procedure.

Graphic
  1. Choose the language button on the dtlogin window.

  1. 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 

system% xset fp rehash