Simplified Chinese Solaris User's Guide

Chapter 2 Starting the Simplified Chinese Solaris Software

Introduction

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

  2. Select the C, zh, zh.UTF-8, zh_CN.GB18030 or zh.GBK locale.

    Your new locale is in effect.

Using Aliases to Set Locales

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.

Setting Up Locale Aliases for the Korn Shell

    Put aliases like the following in your .profile file.


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"
Setting Up Locale Aliases for the C Shell

    Put aliases like the following in your .cshrc file.


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"

Changing Font Directories

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
system% xset fp rehash