必須特別安裝繁體中文版 Solaris 作業環境才能夠使用繁體中文文字設備。本章說明安裝繁體中文環境以及啟動繁體中文版 Solaris 作業的必要步驟。
繁體中文版 Solaris 產品包含下列語言環境:
C – ASCII 英文環境。
zh_TW – 延伸 UNIX 碼 (EUC) CNS 11643-1992 標準的繁體中文環境。
zh_TW.BIG5 – Big5 字碼集的繁體中文環境。
zh_HK.BIG5HK – Big5-HKSCS 碼的繁體中文環境,可支援「香港輔助字元集 (HKSCS)」,也就是 Big-5 和 ISO 10646 編碼機制的輔助字元集。
zh_HK.UTF-8 – Unicode 3.1 的繁體中文 (香港) 環境。
zh_TW.EUC – zh_TW 語言環境的符號連結。
zh_TW.UTF-8 – Unicode 3.0 標準的繁體中文環境。
您可以使用下列程序來變更預設語言環境。
您可以使用別名隨時在繁體中文語言環境與 ASCII/英文語言環境之間變更終端機模擬器視窗,不必每次輸入冗長的指令行或編輯 .dtlogin 檔並執行 source。
如下所示,在 .profile 檔中放入別名。
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" |
如下所示,在您的 .cshrc 檔中放入別名。
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" |
隨附於繁體中文版 Solaris 作業環境的 Xsession 程序檔 (位於 /usr/dt/bin) 含有下列字型路徑:/usr/openwin/lib/locale/ 語言環境/X11/fonts,其中語言環境 是 zh_TW、zh_TW.BIG5 或 zh_HK.BIG5HK。 要動態地增加不同字型的目錄路徑,請輸入:
system% xset +fp font_directory-path |
system% xset fp rehash |