Configuring HP-UX for Different Languages Manufacturing Part Number: 5187-0730 June 2002 © Copyright 2002 Hewlett-Packard Company.
Legal Notices The information in this document is subject to change without notice. Hewlett-Packard makes no warranty of any kind with regard to this manual, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. Hewlett-Packard shall not be held liable for errors contained herein or direct, indirect, special, incidental or consequential damages in connection with the furnishing, performance, or use of this material. Warranty.
©copyright 1980, 1984, 1986 Novell, Inc. ©copyright 1986-1992 Sun Microsystems, Inc. ©copyright 1985-86, 1988 Massachusetts Institute of Technology. ©copyright 1989-93 The Open Software Foundation, Inc. ©copyright 1986 Digital Equipment Corporation. ©copyright 1990 Motorola, Inc.
Printing History The manual printing date and part number indicate its current edition. The printing date will change when a new edition is printed. Minor changes may be made at reprint without changing the printing date. The manual part number will change when extensive changes are made. Manual updates may be issued between editions to correct errors or document product changes. To ensure that you receive the updated or new editions, you should subscribe to the appropriate product support service.
Contents 1. How to Configure Your System Language Languages Configured at the Factory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Language Selection on Pre-loaded Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Loading Locales from the Core OS Media . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Managing the LANG Environment Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Contents 6
How to Configure Your System Language 1 How to Configure Your System Language The HP-UX operating system provides a number of European and Asian locales, some supported via different codesets, for instance: iso8859-1 (Western European), utf8 (European & Asian, including Euro support) and iso8859-15 (Western European, including Euro support). See Appendix A, Locale Names, for a listing of the provided locales.
How to Configure Your System Language Languages Configured at the Factory Languages Configured at the Factory If you order your Workstation with a specific language configured at the factory, the system will “wake up” in that language the first time you turn it on. If you later decide to change the language, you will have to make sure the proper locales are loaded on your system and, if not, load them from the Core OS media. All available languages are included on the Core OS media.
How to Configure Your System Language Loading Locales from the Core OS Media Loading Locales from the Core OS Media Step 1. Check to see what locales are currently installed on your system by typing: locale -a Check to see what languages are installed on your system by typing: /usr/sbin/swlist -l fileset International Refer to the locale listing in Appendix A in this document for a description of the locales. Step 2.
How to Configure Your System Language Managing the LANG Environment Variable Managing the LANG Environment Variable To configure localized HP-UX sessions, you will need to: • Manage the LANG environment variable. • Access language-dependent message catalogs and resource files. • Execute applications remotely across internationalized systems. You can set the LANG variable to any locale that is supported by the HP-UX operating system, and installed on your system.
How to Configure Your System Language Managing the LANG Environment Variable Setting the Locale for Multiple Users (Xconfig file) To set the system-wide default language settings, you must edit the Xconfig file. This sets the CDE login screen and the proper LANG variable for all users. This is the only way to change LANG for all displays in multi-display systems. Here is the procedure: 1. Check to see if the /etc/dt/config/Xconfig file exists on your system. If not, copy it from /usr/dt/config/Xconfig.
How to Configure Your System Language Managing the LANG Environment Variable Setting the Language for One User (.dtprofile file) An individual user can override the system-wide LANG setting by changing his/her homedirectory/.dtprofile file. In this case, the login screen is not localized and LANG is set only for the current user. Here is the procedure for customizing the .dtprofile file: 1. login user 2. Go to your HOME directory 3. Edit the .dtprofile file Add/Change the LANG environment variable.
How to Configure Your System Language Managing the LANG Environment Variable Setting Default LANG on a Terminal Based System Default language/codeset settings for terminal based systems are made by modifying the .profile or .cshrc file in the user’s home directory. For example: • To set the user's default login to the German utf8 locale, modify the following lines: When using sh or ksh, edit the .profile file as follows: LANG=de_DE.utf8 export LANG When using csh, edit the .
How to Configure Your System Language Hardware Considerations Hardware Considerations Keyboards Some HP Visualize Workstations are provided with the USB keyboard, others with the PS/2 keyboard. You will be prompted to select one of several keyboard languages when the Workstation boots for the first time. The selected keyboard language name is stored in the /etc/kbdlang file.
How to Configure the Asian System Environment 2 How to Configure the Asian System Environment In order to input and output Asian characters you also need to have the Asian System Environment (ASE) product. ASE includes enhancements to the system, tools and manuals. To confirm the version of ASE, type: /usr/sbin/swlist -l product Asian-Core If ASE is installed on your system, you will see a list similar to this: # Initializing... # Contacting target "system name"...
How to Configure the Asian System Environment Configuring IMS Configuring IMS Supported IMS The type of IMS (Input Method Server) supported for each Asian language is shown below. Table 2-1 System Environments and Supported Input Methods System Environment Supported IMS Japanese: XJIM, ATOK8, ATOK X Korean: XKIM Simplified Chinese: XSIM Traditional Chinese: XTIM Function of dtimsstart1 dtimsstart allows a user to select one IMS.
How to Configure the Asian System Environment Configuring IMS Manual Start Up It is useful to start IMS manually, if you use Asian Input Method on your C locale desktop. You can execute dtimsstart as follows on your command line. eval ‘/usr/dt/bin/dtimsstart -env‘ IMPORTANT The quotation mark of this line must be a left single quotation mark, and NOT apostrophe-quote. NOTE Normally, dtimsstart shows messages and labels in Asian languages.
How to Configure the Asian System Environment Configuring IMS Figure 2-1 Japanese Input Method Selection Window • For Korean locales (ko_KR.eucKR, ko_KR.utf8): dtimsstart starts XKIM without showing the selection window because only one IMS, XKIM, is supported for both locales. • For Simplified Chinese locales (zh_CN.gb18030, zh_CN.hp15CN, zh_CN.utf8): dtimsstart starts XSIM without showing the selection window because only one IMS, XSIM, is supported for these locales.
How to Configure the Asian System Environment Configuring IMS Simple Test This section describes a simple test procedure to confirm that the Asian system environment is configured. Japanese Environment Test With Keyboard These descriptions are based on only xjim. 1. Set the input field in the foreground Your process will automatically connect with xjim foreground; then check that the cursor is in the input field. 2. Enable input Hit the left Alt key (ExtendChar) or Ctrl+Space to enable IMS input.
How to Configure the Asian System Environment Configuring IMS To exit xkim input mode, hit the left Alt key (ExtendChar). The system will return to normal input mode immediately. Simplified Chinese Environment Test With Keyboard These descriptions are based on only xsim. 1. Set the input field in the foreground Your process will automatically connect with xsim foreground; then check that the cursor is in the input field. 2. Enable input Hit the right Alt key (ExtendChar) to enable IMS input.
How to Configure the Asian System Environment Configuring Printers Configuring Printers Configuring the LP Spooler ASE provides many kinds of LP model files which are designed to be configured by sam(1m). To add, delete and maintain Asian printers with the model files in /usr/lib/lp/model, refer to the Managing Printers section of the Managing Systems and Workgroups manual. Printing To print Asian text on the printer, you may need to specify the locale value for the lp command along with the text file.
How to Configure the Asian System Environment Configuring Printers Table 2-2 Locales Supported by the lp command (Continued) Locale Language/CodeSet zh_TW.utf8 Traditional Chinese/UTF8 zh_HK.hkbig5 Traditional Chinese/BIG5 zh_HK.utf8 Traditional Chinese/UTF8 The printer model files support a wide variety of options, such as font selection and page control. Consult the model file which is installed in /usr/lib/lp/model for more details.
How to Configure the Asian System Environment Configuring Fonts Configuring Fonts X11 Bitmap Fonts Asian bitmap fonts for X window system are installed in the following directories.
How to Configure the Asian System Environment Configuring Fonts TrueType Fonts The Asian TrueType fonts for the layered technologies, such as JAVA and X Window Systems, are installed in the following directories. Table 2-5 TrueType Fonts, Typefaces, and Directories Language Typefaces/ Family Names Japanese HGMinchoL Installed Directory /usr/lib/X11/fonts/TrueType/japanese.st/typefaces HGGothicB Korean HYBatang /usr/lib/X11/fonts/TrueType/korean.
Locale Names A Locale Names The following table lists the available locales for each supported language. Table A-1 Locale Names Language (Territory) Arabic (Algeria) Locale Names ar_DZ.arabic8 ar_DZ.utf8 Arabic (Saudi Arabia) ar_SA.arabic8 ar_SA.iso88596 ar_SA.utf8 Bulgarian (Bulgaria) bg_BG.iso88595 bg_BG.utf8 Chinese, Simplified (China) zh_CN.gb18030 zh_CN.hp15CN zh_CN.utf8 Chinese, Traditional (Taiwan) zh_TW.big5 zh_TW.ccdc zh_TW.eucTW zh_TW.utf8 Chinese, Traditional (Hong Kong) zh_HK.
Locale Names Table A-1 Locale Names (Continued) Language (Territory) Danish (Denmark) Locale Names da_DK.iso88591 da_DK.iso885915@euro da_DK.roman8 da_DK.utf8 Dutch (Netherlands) nl_NL.iso88591 nl_NL.iso885915@euro nl_NL.roman8 nl_NL.utf8 English (Computer) C C.iso88591 C.iso885915 C.utf8 POSIX English (United Kingdom) en_GB.iso88591 en_GB.iso885915@euro en_GB.roman8 en_GB.utf8 English (United States) en_US.iso88591 en_US.roman8 en_US.utf8 Finnish (Finland) fi_FI.iso88591 fi_FI.
Locale Names Table A-1 Locale Names (Continued) Language (Territory) Locale Names fi_FI.utf8 French (Canada) fr_CA.iso88591 fr_CA.iso885915 fr_CA.roman8 fr_CA.utf8 French (France) fr_FR.iso88591 fr_FR.iso885915@euro fr_FR.roman8 fr_FR.utf8 German (Germany) de_DE.iso88591 de_DE.iso885915@euro de_DE.roman8 de_DE.utf8 Greek (Greece) el_GR.iso88597 el_GR.greek8 el_GR.utf8 Hebrew (Israel) iw_IL.iso88598 iw_IL.hebrew8 iw_IL.utf8 Hungarian (Hungary) hu_HU.iso88592 hu_HU.
Locale Names Table A-1 Locale Names (Continued) Language (Territory) Locale Names is_IS.roman8 is_IS.utf8 Italian (Italy) it_IT.iso88591 it_IT.iso885915@euro it_IT.roman8 it_IT.utf8 Japanese (Japan) ja_JP.SJIS ja_JP.eucJP ja_JP.kana8 ja_JP.utf8 Korean (Korea) ko_KR.eucKR ko_KR.utf8 Norwegian (Norway) no_NO.iso88591 no_NO.iso885915@euro no_NO.roman8 no_NO.utf8 Polish (Poland) pl_PL.iso88592 pl_PL.utf8 Portuguese (Portugal) pt_PT.iso88591 pt_PT.iso885915@euro pt_PT.roman8 pt_PT.
Locale Names Table A-1 Locale Names (Continued) Language (Territory) Locale Names ro_RO.utf8 Russian (Russia) ru_RU.iso88595 ru_RU.utf8 Serbocroatian (Croatia) hr_HR.iso88592 hr_HR.utf8 Slovak (Slovakia) sk_SK.iso88592 sk_SK.utf8 Slovene (Slovenia) sl_SI.iso88592 sl_SI.utf8 Spanish (Spain) es_ES.iso88591 es_ES.iso885915@euro es_ES.roman8 es_ES.utf8 Swedish (Sweden) sv_SE.iso88591 sv_SE.iso885915@euro sv_SE.roman8 sv_SE.utf8 Thai (Thailand) th_TH.tis620 Turkish (Turkey) tr_TR.
Locale Names 30 Appendix A