Solaris Internationalization Guide For Developers

Keyboard Support in the Base Solaris 7 Product

The following locales have keyboard layouts for SPARC (X-server) and X86 (Xserver PLUS console):

[X-server is CDE and OW, console is command line]

Changing Between Keyboards on SPARC

Support for changing layouts in the Solaris product is achieved only by using the dip-switch settings under the keyboard. The keyboard layout is determined by the dip switches. A list of keyboard layouts and corresponding defined dip-switch settings is at /usr/openwin/share/etc/keytables/keytable.map.

The following table Table 2-6 is for a type 4 keyboard .(1=switch up 0=switch down).

Table 2-6 Layouts for Type 4 Keyboards

Dip Switch in Hex 

Keyboard 

Setting in Binary 

51 

Hungary5.kt 

110011 

52 

Poland5.kt 

110100 

53 

Czech5.k 

110101 

54 

Russia5.kt 

110110 

55 

Latvia5.k 

110111 

56 

Turkey5.kt 

111000 

57 

Greece5.kt 

111001 

58 

Lithuania5.kt 

111011 

Changing the layout from U.S./UK to Czech is done by changing the dip-switch settings to the setting defined in the file (the file defines the switches in hex. This needs to be converted into binary as it was shown in Table 2-6) and then re-booting.

Russian and Greek keyboard support can be toggled on and off using the SPARC Compose key (Ctrl+Shift+F1 on x86).

Changing Between Keyboards on x86

On x86, a keyboard is selected during the kdmconfig part of install. To change this at any time after installation, use kdmconfig:

  1. Exit CDE/OW to the command line.

  2. Type kdmconfig -u (kdmconfig unconfigure).

  3. Type kdmconfig to run the program.

  4. Follow instructions to get a keyboard layout.

There are no `utilities' for either SPARC or x86 (apart from standard UNIX tools such as xmodmap, pcmapkeys) bundled into Solaris 7 for switching keyboards.

Codesets for x86

The default codeset on the Solaris system for x86 is ISO-8859-1. The IBM DOS 437 codeset is provided as an option in text mode. That is, if you choose to download IBM DOS 437 codeset by typing:


loadfont -c 437
pcmapkeys -f /usr/share/lib/keyboards/437/en_US

there is no support for nonstandard U.S. date, time, currency, numbers, units, and collation. There will be no support for non-English message and text presentation, and no multibyte character support. Therefore, non-Microsoft Windows users should use the IBM DOS 437 codeset only in the default C locale.

Locales in the Base Installation

The installation window in the base Solaris 7 product offers several English language locales. To use 8-bit characters, install one of the en_XX options, as shown in Table 2-7. The locale used in the installation becomes the default system locale.

Table 2-7 Locales Offered at Installation

Locale Name  

Language/Territory 

Codeset 

C

U.S. English 

7-bit 

en_AU

Australian English 

8-bit 

en_CA

Canadian English 

8-bit 

en_UK

UK English 

8-bit 

en_US

U.S. English 

8-bit 

Using JumpStart

To enable JumpStartTM for the 8-bit locales, add the line localexx (substituting the appropriate 8-bit locale for xx, for example, en_US) to the JumpStart profile file. (For complete instructions, see Chapter 4 of Automating Solaris Installation, available from SunSoft Press.) Current JumpStart users should set the default locale to bypass the language prompt during installation.