xref: /onnv-gate/usr/src/uts/common/io/kbtrans/kbtrans_keytables.c (revision 0:68f95e015346)
1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * CDDL HEADER START
3*0Sstevel@tonic-gate  *
4*0Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*0Sstevel@tonic-gate  * Common Development and Distribution License, Version 1.0 only
6*0Sstevel@tonic-gate  * (the "License").  You may not use this file except in compliance
7*0Sstevel@tonic-gate  * with the License.
8*0Sstevel@tonic-gate  *
9*0Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*0Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
11*0Sstevel@tonic-gate  * See the License for the specific language governing permissions
12*0Sstevel@tonic-gate  * and limitations under the License.
13*0Sstevel@tonic-gate  *
14*0Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
15*0Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*0Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
17*0Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
18*0Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
19*0Sstevel@tonic-gate  *
20*0Sstevel@tonic-gate  * CDDL HEADER END
21*0Sstevel@tonic-gate  */
22*0Sstevel@tonic-gate /*
23*0Sstevel@tonic-gate  * Copyright (c) 1999 by Sun Microsystems, Inc.
24*0Sstevel@tonic-gate  * All rights reserved.
25*0Sstevel@tonic-gate  */
26*0Sstevel@tonic-gate 
27*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
28*0Sstevel@tonic-gate 
29*0Sstevel@tonic-gate /*
30*0Sstevel@tonic-gate  * This file contains generic keytable information across all
31*0Sstevel@tonic-gate  * keyboard hardware.
32*0Sstevel@tonic-gate  */
33*0Sstevel@tonic-gate 
34*0Sstevel@tonic-gate #include <sys/param.h>
35*0Sstevel@tonic-gate #include <sys/kbd.h>
36*0Sstevel@tonic-gate 
37*0Sstevel@tonic-gate /*
38*0Sstevel@tonic-gate  * Keyboard String Table
39*0Sstevel@tonic-gate  *
40*0Sstevel@tonic-gate  * This defines the strings sent by various keys (as selected in the
41*0Sstevel@tonic-gate  * tables above).
42*0Sstevel@tonic-gate  * The first byte of each string is its length, the rest is data.
43*0Sstevel@tonic-gate  */
44*0Sstevel@tonic-gate 
45*0Sstevel@tonic-gate #ifdef	__STDC__
46*0Sstevel@tonic-gate #define	kstescinit(c)	"\033[" #c
47*0Sstevel@tonic-gate #else	/* __STDC__ */
48*0Sstevel@tonic-gate #define	kstescinit(c)	{'\033', '[', 'c', '\0'}
49*0Sstevel@tonic-gate #endif	/* __STDC__ */
50*0Sstevel@tonic-gate char keystringtab[16][KTAB_STRLEN] = {
51*0Sstevel@tonic-gate 	kstescinit(H) /* home */,
52*0Sstevel@tonic-gate 	kstescinit(A) /* up */,
53*0Sstevel@tonic-gate 	kstescinit(B) /* down */,
54*0Sstevel@tonic-gate 	kstescinit(D) /* left */,
55*0Sstevel@tonic-gate 	kstescinit(C) /* right */,
56*0Sstevel@tonic-gate };
57*0Sstevel@tonic-gate 
58*0Sstevel@tonic-gate 
59*0Sstevel@tonic-gate /*
60*0Sstevel@tonic-gate  * Compose Key Sequence Table
61*0Sstevel@tonic-gate  *
62*0Sstevel@tonic-gate  * Taken from Suncompose.h of openwindows.
63*0Sstevel@tonic-gate  *
64*0Sstevel@tonic-gate  * The idea here is to create a simple index into a table of
65*0Sstevel@tonic-gate  * compose key sequences.  The purpose is to provide a fast
66*0Sstevel@tonic-gate  * lookup mechanism using as little space as possible (while
67*0Sstevel@tonic-gate  * still using a table of triplets).
68*0Sstevel@tonic-gate  *
69*0Sstevel@tonic-gate  * For reference, here is the set of all composable characters:
70*0Sstevel@tonic-gate  * SP !\"\'*+,-./01234:<>?ACDEHILNOPRSTUXY\\^_`acdehilnoprstuxy|~
71*0Sstevel@tonic-gate  *
72*0Sstevel@tonic-gate  * if ascii_char[i] is not composable,
73*0Sstevel@tonic-gate  *	kb_compose_map[i] is -1
74*0Sstevel@tonic-gate  * else
75*0Sstevel@tonic-gate  * 	if ascii_char[i] appears as a first char in compose_table,
76*0Sstevel@tonic-gate  *		kb_compose_map[i] is the index of it's first appearance
77*0Sstevel@tonic-gate  *	else
78*0Sstevel@tonic-gate  *		kb_compose_map[i] is 112	(end of table)
79*0Sstevel@tonic-gate  */
80*0Sstevel@tonic-gate 
81*0Sstevel@tonic-gate signed char kb_compose_map[ASCII_SET_SIZE] = {
82*0Sstevel@tonic-gate 	-1,	/* 000 (^@) */
83*0Sstevel@tonic-gate 	-1,	/* 001 (^A) */
84*0Sstevel@tonic-gate 	-1,	/* 002 (^B) */
85*0Sstevel@tonic-gate 	-1,	/* 003 (^C) */
86*0Sstevel@tonic-gate 	-1,	/* 004 (^D) */
87*0Sstevel@tonic-gate 	-1,	/* 005 (^E) */
88*0Sstevel@tonic-gate 	-1,	/* 006 (^F) */
89*0Sstevel@tonic-gate 	-1,	/* 007 (^G) */
90*0Sstevel@tonic-gate 	-1,	/* 008 (^H) */
91*0Sstevel@tonic-gate 	-1,	/* 009 (^I) */
92*0Sstevel@tonic-gate 	-1,	/* 010 (^J) */
93*0Sstevel@tonic-gate 	-1,	/* 011 (^K) */
94*0Sstevel@tonic-gate 	-1,	/* 012 (^L) */
95*0Sstevel@tonic-gate 	-1,	/* 013 (^M) */
96*0Sstevel@tonic-gate 	-1,	/* 014 (^N) */
97*0Sstevel@tonic-gate 	-1,	/* 015 (^O) */
98*0Sstevel@tonic-gate 	-1,	/* 016 (^P) */
99*0Sstevel@tonic-gate 	-1,	/* 017 (^Q) */
100*0Sstevel@tonic-gate 	-1,	/* 018 (^R) */
101*0Sstevel@tonic-gate 	-1,	/* 019 (^S) */
102*0Sstevel@tonic-gate 	-1,	/* 020 (^T) */
103*0Sstevel@tonic-gate 	-1,	/* 021 (^U) */
104*0Sstevel@tonic-gate 	-1,	/* 022 (^V) */
105*0Sstevel@tonic-gate 	-1,	/* 023 (^W) */
106*0Sstevel@tonic-gate 	-1,	/* 024 (^X) */
107*0Sstevel@tonic-gate 	-1,	/* 025 (^Y) */
108*0Sstevel@tonic-gate 	-1,	/* 026 (^Z) */
109*0Sstevel@tonic-gate 	-1,	/* 027 (^[) */
110*0Sstevel@tonic-gate 	-1,	/* 028 (^\) */
111*0Sstevel@tonic-gate 	-1,	/* 029 (^]) */
112*0Sstevel@tonic-gate 	-1,	/* 030 (^^) */
113*0Sstevel@tonic-gate 	-1,	/* 031 (^_) */
114*0Sstevel@tonic-gate 	0,	/* 032 (SP) */
115*0Sstevel@tonic-gate 	1,	/* 033 (!) */
116*0Sstevel@tonic-gate 	4,	/* 034 (") */
117*0Sstevel@tonic-gate 	-1,	/* 035 (#) */
118*0Sstevel@tonic-gate 	-1,	/* 036 ($) */
119*0Sstevel@tonic-gate 	-1,	/* 037 (%) */
120*0Sstevel@tonic-gate 	-1,	/* 038 (&) */
121*0Sstevel@tonic-gate 	16,	/* 039 (') */
122*0Sstevel@tonic-gate 	-1,	/* 040 (() */
123*0Sstevel@tonic-gate 	-1,	/* 041 ()) */
124*0Sstevel@tonic-gate 	28,	/* 042 (*) */
125*0Sstevel@tonic-gate 	31,	/* 043 (+) */
126*0Sstevel@tonic-gate 	32,	/* 044 (,) */
127*0Sstevel@tonic-gate 	36,	/* 045 (-) */
128*0Sstevel@tonic-gate 	48,	/* 046 (.) */
129*0Sstevel@tonic-gate 	49,	/* 047 (/) */
130*0Sstevel@tonic-gate 	54,	/* 048 (0) */
131*0Sstevel@tonic-gate 	57,	/* 049 (1) */
132*0Sstevel@tonic-gate 	60,	/* 050 (2) */
133*0Sstevel@tonic-gate 	61,	/* 051 (3) */
134*0Sstevel@tonic-gate 	112,	/* 052 (4) */
135*0Sstevel@tonic-gate 	-1,	/* 053 (5) */
136*0Sstevel@tonic-gate 	-1,	/* 054 (6) */
137*0Sstevel@tonic-gate 	-1,	/* 055 (7) */
138*0Sstevel@tonic-gate 	-1,	/* 056 (8) */
139*0Sstevel@tonic-gate 	-1,	/* 057 (9) */
140*0Sstevel@tonic-gate 	112,	/* 058 (:) */
141*0Sstevel@tonic-gate 	-1,	/* 059 (;) */
142*0Sstevel@tonic-gate 	63,	/* 060 (<) */
143*0Sstevel@tonic-gate 	-1,	/* 061 (=) */
144*0Sstevel@tonic-gate 	64,	/* 062 (>) */
145*0Sstevel@tonic-gate 	65,	/* 063 (?) */
146*0Sstevel@tonic-gate 	-1,	/* 064 (@) */
147*0Sstevel@tonic-gate 	66,	/* 065 (A) */
148*0Sstevel@tonic-gate 	-1,	/* 066 (B) */
149*0Sstevel@tonic-gate 	70,	/* 067 (C) */
150*0Sstevel@tonic-gate 	112,	/* 068 (D) */
151*0Sstevel@tonic-gate 	71,	/* 069 (E) */
152*0Sstevel@tonic-gate 	-1,	/* 070 (F) */
153*0Sstevel@tonic-gate 	-1,	/* 071 (G) */
154*0Sstevel@tonic-gate 	73,	/* 072 (H) */
155*0Sstevel@tonic-gate 	74,	/* 073 (I) */
156*0Sstevel@tonic-gate 	-1,	/* 074 (J) */
157*0Sstevel@tonic-gate 	-1,	/* 075 (K) */
158*0Sstevel@tonic-gate 	112,	/* 076 (L) */
159*0Sstevel@tonic-gate 	-1,	/* 077 (M) */
160*0Sstevel@tonic-gate 	76,	/* 078 (N) */
161*0Sstevel@tonic-gate 	77,	/* 079 (O) */
162*0Sstevel@tonic-gate 	84,	/* 080 (P) */
163*0Sstevel@tonic-gate 	-1,	/* 081 (Q) */
164*0Sstevel@tonic-gate 	112,	/* 082 (R) */
165*0Sstevel@tonic-gate 	112,	/* 083 (S) */
166*0Sstevel@tonic-gate 	112,	/* 084 (T) */
167*0Sstevel@tonic-gate 	85,	/* 085 (U) */
168*0Sstevel@tonic-gate 	-1,	/* 086 (V) */
169*0Sstevel@tonic-gate 	-1,	/* 087 (W) */
170*0Sstevel@tonic-gate 	112,	/* 088 (X) */
171*0Sstevel@tonic-gate 	112,	/* 089 (Y) */
172*0Sstevel@tonic-gate 	-1,	/* 090 (Z) */
173*0Sstevel@tonic-gate 	-1,	/* 091 ([) */
174*0Sstevel@tonic-gate 	87,	/* 092 (\) */
175*0Sstevel@tonic-gate 	-1,	/* 093 (]) */
176*0Sstevel@tonic-gate 	88,	/* 094 (^) */
177*0Sstevel@tonic-gate 	93,	/* 095 (_) */
178*0Sstevel@tonic-gate 	94,	/* 096 (`) */
179*0Sstevel@tonic-gate 	99,	/* 097 (a) */
180*0Sstevel@tonic-gate 	-1,	/* 098 (b) */
181*0Sstevel@tonic-gate 	101,	/* 099 (c) */
182*0Sstevel@tonic-gate 	112,	/* 100 (d) */
183*0Sstevel@tonic-gate 	112,	/* 101 (e) */
184*0Sstevel@tonic-gate 	-1,	/* 102 (f) */
185*0Sstevel@tonic-gate 	-1,	/* 103 (g) */
186*0Sstevel@tonic-gate 	102,	/* 104 (h) */
187*0Sstevel@tonic-gate 	112,	/* 105 (i) */
188*0Sstevel@tonic-gate 	-1,	/* 106 (j) */
189*0Sstevel@tonic-gate 	-1,	/* 107 (k) */
190*0Sstevel@tonic-gate 	112,	/* 108 (l) */
191*0Sstevel@tonic-gate 	-1,	/* 109 (m) */
192*0Sstevel@tonic-gate 	103,	/* 110 (n) */
193*0Sstevel@tonic-gate 	104,	/* 111 (o) */
194*0Sstevel@tonic-gate 	108,	/* 112 (p) */
195*0Sstevel@tonic-gate 	-1,	/* 113 (q) */
196*0Sstevel@tonic-gate 	112,	/* 114 (r) */
197*0Sstevel@tonic-gate 	109,	/* 115 (s) */
198*0Sstevel@tonic-gate 	112,	/* 116 (t) */
199*0Sstevel@tonic-gate 	112,	/* 117 (u) */
200*0Sstevel@tonic-gate 	-1,	/* 118 (v) */
201*0Sstevel@tonic-gate 	-1,	/* 119 (w) */
202*0Sstevel@tonic-gate 	110,	/* 120 (x) */
203*0Sstevel@tonic-gate 	112,	/* 121 (y) */
204*0Sstevel@tonic-gate 	-1,	/* 122 (z) */
205*0Sstevel@tonic-gate 	-1,	/* 123 ({) */
206*0Sstevel@tonic-gate 	111,	/* 124 (|) */
207*0Sstevel@tonic-gate 	-1,	/* 125 (}) */
208*0Sstevel@tonic-gate 	112,	/* 126 (~) */
209*0Sstevel@tonic-gate 	-1,	/* 127 (DEL) */
210*0Sstevel@tonic-gate };
211*0Sstevel@tonic-gate 
212*0Sstevel@tonic-gate /*
213*0Sstevel@tonic-gate  * IMPORTANT NOTE:  This table MUST be kept in proper sorted order:
214*0Sstevel@tonic-gate  * 	The first and second characters in each entry must be in ASCII
215*0Sstevel@tonic-gate  *	    collating sequence (left to right).
216*0Sstevel@tonic-gate  *	The table must be in ASCII collating sequence by first character
217*0Sstevel@tonic-gate  *	    (top to bottom).
218*0Sstevel@tonic-gate  */
219*0Sstevel@tonic-gate 
220*0Sstevel@tonic-gate /* COMPOSE + first character + second character => ISO character */
221*0Sstevel@tonic-gate 
222*0Sstevel@tonic-gate struct compose_sequence_t kb_compose_table[] = {
223*0Sstevel@tonic-gate 
224*0Sstevel@tonic-gate 	{' ', ' ', 0xA0},	/* 000 */	/* NBSP (non-breaking space) */
225*0Sstevel@tonic-gate 	{'!', '!', 0xA1},	/* 001 */	/* inverted ! */
226*0Sstevel@tonic-gate 	{'!', 'P', 0xB6},	/* 002 */	/* paragraph mark */
227*0Sstevel@tonic-gate 	{'!', 'p', 0xB6},	/* 003 */	/* paragraph mark */
228*0Sstevel@tonic-gate 	{'"', '"', 0xA8},	/* 004 */	/* diaresis */
229*0Sstevel@tonic-gate 	{'"', 'A', 0xC4},	/* 005 */	/* A with diaresis */
230*0Sstevel@tonic-gate 	{'"', 'E', 0xCB},	/* 006 */	/* E with diaresis */
231*0Sstevel@tonic-gate 	{'"', 'I', 0xCF},	/* 007 */	/* I with diaresis */
232*0Sstevel@tonic-gate 	{'"', 'O', 0xD6},	/* 008 */	/* O with diaresis */
233*0Sstevel@tonic-gate 	{'"', 'U', 0xDC},	/* 009 */	/* U with diaresis */
234*0Sstevel@tonic-gate 	{'"', 'a', 0xE4},	/* 010 */	/* a with diaresis */
235*0Sstevel@tonic-gate 	{'"', 'e', 0xEB},	/* 011 */	/* e with diaresis */
236*0Sstevel@tonic-gate 	{'"', 'i', 0xEF},	/* 012 */	/* i with diaresis */
237*0Sstevel@tonic-gate 	{'"', 'o', 0xF6},	/* 013 */	/* o with diaresis */
238*0Sstevel@tonic-gate 	{'"', 'u', 0xFC},	/* 014 */	/* u with diaresis */
239*0Sstevel@tonic-gate 	{'"', 'y', 0xFF},	/* 015 */	/* y with diaresis */
240*0Sstevel@tonic-gate 	{'\'', 'A', 0xC1},	/* 016 */	/* A with acute accent */
241*0Sstevel@tonic-gate 	{'\'', 'E', 0xC9},	/* 017 */	/* E with acute accent */
242*0Sstevel@tonic-gate 	{'\'', 'I', 0xCD},	/* 018 */	/* I with acute accent */
243*0Sstevel@tonic-gate 	{'\'', 'O', 0xD3},	/* 019 */	/* O with acute accent */
244*0Sstevel@tonic-gate 	{'\'', 'U', 0xDA},	/* 020 */	/* U with acute accent */
245*0Sstevel@tonic-gate 	{'\'', 'Y', 0xDD},	/* 021 */	/* Y with acute accent */
246*0Sstevel@tonic-gate 	{'\'', 'a', 0xE1},	/* 022 */	/* a with acute accent */
247*0Sstevel@tonic-gate 	{'\'', 'e', 0xE9},	/* 023 */	/* e with acute accent */
248*0Sstevel@tonic-gate 	{'\'', 'i', 0xED},	/* 024 */	/* i with acute accent */
249*0Sstevel@tonic-gate 	{'\'', 'o', 0xF3},	/* 025 */	/* o with acute accent */
250*0Sstevel@tonic-gate 	{'\'', 'u', 0xFA},	/* 026 */	/* u with acute accent */
251*0Sstevel@tonic-gate 	{'\'', 'y', 0xFD},	/* 027 */	/* y with acute accent */
252*0Sstevel@tonic-gate 	{'*', 'A', 0xC5},	/* 028 */	/* A with ring */
253*0Sstevel@tonic-gate 	{'*', '^', 0xB0},	/* 029 */	/* degree */
254*0Sstevel@tonic-gate 	{'*', 'a', 0xE5},	/* 030 */	/* a with ring */
255*0Sstevel@tonic-gate 	{'+', '-', 0xB1},	/* 031 */	/* plus/minus */
256*0Sstevel@tonic-gate 	{',', ',', 0xB8},	/* 032 */	/* cedilla */
257*0Sstevel@tonic-gate 	{',', '-', 0xAC},	/* 033 */	/* not sign */
258*0Sstevel@tonic-gate 	{',', 'C', 0xC7},	/* 034 */	/* C with cedilla */
259*0Sstevel@tonic-gate 	{',', 'c', 0xE7},	/* 035 */	/* c with cedilla */
260*0Sstevel@tonic-gate 	{'-', '-', 0xAD},	/* 036 */	/* soft hyphen */
261*0Sstevel@tonic-gate 	{'-', ':', 0xF7},	/* 037 */	/* division sign */
262*0Sstevel@tonic-gate 	{'-', 'A', 0xAA},	/* 038 */	/* feminine superior numeral */
263*0Sstevel@tonic-gate 	{'-', 'D', 0xD0},	/* 039 */	/* Upper-case eth */
264*0Sstevel@tonic-gate 	{'-', 'L', 0xA3},	/* 040 */	/* pounds sterling */
265*0Sstevel@tonic-gate 	{'-', 'Y', 0xA5},	/* 041 */	/* yen */
266*0Sstevel@tonic-gate 	{'-', '^', 0xAF},	/* 042 */	/* macron */
267*0Sstevel@tonic-gate 	{'-', 'a', 0xAA},	/* 043 */	/* feminine superior numeral */
268*0Sstevel@tonic-gate 	{'-', 'd', 0xF0},	/* 044 */	/* Lower-case eth */
269*0Sstevel@tonic-gate 	{'-', 'l', 0xA3},	/* 045 */	/* pounds sterling */
270*0Sstevel@tonic-gate 	{'-', 'y', 0xA5},	/* 046 */	/* yen */
271*0Sstevel@tonic-gate 	{'-', '|', 0xAC},	/* 047 */	/* not sign */
272*0Sstevel@tonic-gate 	{'.', '^', 0xB7},	/* 048 */	/* centered dot */
273*0Sstevel@tonic-gate 	{'/', 'C', 0xA2},	/* 049 */	/* cent sign */
274*0Sstevel@tonic-gate 	{'/', 'O', 0xD8},	/* 050 */	/* O with slash */
275*0Sstevel@tonic-gate 	{'/', 'c', 0xA2},	/* 051 */	/* cent sign */
276*0Sstevel@tonic-gate 	{'/', 'o', 0xF8},	/* 052 */	/* o with slash */
277*0Sstevel@tonic-gate 	{'/', 'u', 0xB5},	/* 053 */	/* mu */
278*0Sstevel@tonic-gate 	{'0', 'X', 0xA4},	/* 054 */	/* currency symbol */
279*0Sstevel@tonic-gate 	{'0', '^', 0xB0},	/* 055 */	/* degree */
280*0Sstevel@tonic-gate 	{'0', 'x', 0xA4},	/* 056 */	/* currency symbol */
281*0Sstevel@tonic-gate 	{'1', '2', 0xBD},	/* 057 */	/* 1/2 */
282*0Sstevel@tonic-gate 	{'1', '4', 0xBC},	/* 058 */	/* 1/4 */
283*0Sstevel@tonic-gate 	{'1', '^', 0xB9},	/* 059 */	/* superior '1' */
284*0Sstevel@tonic-gate 	{'2', '^', 0xB2},	/* 060 */	/* superior '2' */
285*0Sstevel@tonic-gate 	{'3', '4', 0xBE},	/* 061 */	/* 3/4 */
286*0Sstevel@tonic-gate 	{'3', '^', 0xB3},	/* 062 */	/* superior '3' */
287*0Sstevel@tonic-gate 	{'<', '<', 0xAB},	/* 063 */	/* left guillemot */
288*0Sstevel@tonic-gate 	{'>', '>', 0xBB},	/* 064 */	/* right guillemot */
289*0Sstevel@tonic-gate 	{'?', '?', 0xBF},	/* 065 */	/* inverted ? */
290*0Sstevel@tonic-gate 	{'A', 'E', 0xC6},	/* 066 */	/* AE dipthong */
291*0Sstevel@tonic-gate 	{'A', '^', 0xC2},	/* 067 */	/* A with circumflex accent */
292*0Sstevel@tonic-gate 	{'A', '`', 0xC0},	/* 068 */	/* A with grave accent */
293*0Sstevel@tonic-gate 	{'A', '~', 0xC3},	/* 069 */	/* A with tilde */
294*0Sstevel@tonic-gate 	{'C', 'O', 0xA9},	/* 060 */	/* copyright */
295*0Sstevel@tonic-gate 	{'E', '^', 0xCA},	/* 071 */	/* E with circumflex accent */
296*0Sstevel@tonic-gate 	{'E', '`', 0xC8},	/* 072 */	/* E with grave accent */
297*0Sstevel@tonic-gate 	{'H', 'T', 0xDE},	/* 073 */	/* Upper-case thorn */
298*0Sstevel@tonic-gate 	{'I', '^', 0xCE},	/* 074 */	/* I with circumflex accent */
299*0Sstevel@tonic-gate 	{'I', '`', 0xCC},	/* 075 */	/* I with grave accent */
300*0Sstevel@tonic-gate 	{'N', '~', 0xD1},	/* 076 */	/* N with tilde */
301*0Sstevel@tonic-gate 	{'O', 'R', 0xAE},	/* 077 */	/* registered */
302*0Sstevel@tonic-gate 	{'O', 'S', 0xA7},	/* 078 */	/* section mark */
303*0Sstevel@tonic-gate 	{'O', 'X', 0xA4},	/* 079 */	/* currency symbol */
304*0Sstevel@tonic-gate 	{'O', '^', 0xD4},	/* 080 */	/* O with circumflex accent */
305*0Sstevel@tonic-gate 	{'O', '_', 0xBA},	/* 081 */	/* masculine superior numeral */
306*0Sstevel@tonic-gate 	{'O', '`', 0xD2},	/* 082 */	/* O with grave accent */
307*0Sstevel@tonic-gate 	{'O', '~', 0xD5},	/* 083 */	/* O with tilde */
308*0Sstevel@tonic-gate 	{'P', '|', 0xDE},	/* 084 */	/* Upper-case thorn */
309*0Sstevel@tonic-gate 	{'U', '^', 0xDB},	/* 085 */	/* U with circumflex accent */
310*0Sstevel@tonic-gate 	{'U', '`', 0xD9},	/* 086 */	/* U with grave accent */
311*0Sstevel@tonic-gate 	{'\\', '\\', 0xB4},	/* 087 */	/* acute accent */
312*0Sstevel@tonic-gate 	{'^', 'a', 0xE2},	/* 088 */	/* a with circumflex accent */
313*0Sstevel@tonic-gate 	{'^', 'e', 0xEA},	/* 089 */	/* e with circumflex accent */
314*0Sstevel@tonic-gate 	{'^', 'i', 0xEE},	/* 090 */	/* i with circumflex accent */
315*0Sstevel@tonic-gate 	{'^', 'o', 0xF4},	/* 091 */	/* o with circumflex accent */
316*0Sstevel@tonic-gate 	{'^', 'u', 0xFB},	/* 092 */	/* u with circumflex accent */
317*0Sstevel@tonic-gate 	{'_', 'o', 0xBA},	/* 093 */	/* masculine superior numeral */
318*0Sstevel@tonic-gate 	{'`', 'a', 0xE0},	/* 094 */	/* a with grave accent */
319*0Sstevel@tonic-gate 	{'`', 'e', 0xE8},	/* 095 */	/* e with grave accent */
320*0Sstevel@tonic-gate 	{'`', 'i', 0xEC},	/* 096 */	/* i with grave accent */
321*0Sstevel@tonic-gate 	{'`', 'o', 0xF2},	/* 097 */	/* o with grave accent */
322*0Sstevel@tonic-gate 	{'`', 'u', 0xF9},	/* 098 */	/* u with grave accent */
323*0Sstevel@tonic-gate 	{'a', 'e', 0xE6},	/* 099 */	/* ae dipthong */
324*0Sstevel@tonic-gate 	{'a', '~', 0xE3},	/* 100 */	/* a with tilde */
325*0Sstevel@tonic-gate 	{'c', 'o', 0xA9},	/* 101 */	/* copyright */
326*0Sstevel@tonic-gate 	{'h', 't', 0xFE},	/* 102 */	/* Lower-case thorn */
327*0Sstevel@tonic-gate 	{'n', '~', 0xF1},	/* 103 */	/* n with tilde */
328*0Sstevel@tonic-gate 	{'o', 'r', 0xAE},	/* 104 */	/* registered */
329*0Sstevel@tonic-gate 	{'o', 's', 0xA7},	/* 105 */	/* section mark */
330*0Sstevel@tonic-gate 	{'o', 'x', 0xA4},	/* 106 */	/* currency symbol */
331*0Sstevel@tonic-gate 	{'o', '~', 0xF5},	/* 107 */	/* o with tilde */
332*0Sstevel@tonic-gate 	{'p', '|', 0xFE},	/* 108 */	/* Lower-case thorn */
333*0Sstevel@tonic-gate 	{'s', 's', 0xDF},	/* 109 */	/* German double-s */
334*0Sstevel@tonic-gate 	{'x', 'x', 0xD7},	/* 110 */	/* multiplication sign */
335*0Sstevel@tonic-gate 	{'|', '|', 0xA6},	/* 111 */	/* broken bar */
336*0Sstevel@tonic-gate 
337*0Sstevel@tonic-gate 	{0, 0, 0},			/* end of table */
338*0Sstevel@tonic-gate };
339*0Sstevel@tonic-gate 
340*0Sstevel@tonic-gate /*
341*0Sstevel@tonic-gate  * Floating Accent Sequence Table
342*0Sstevel@tonic-gate  */
343*0Sstevel@tonic-gate 
344*0Sstevel@tonic-gate /* FA + ASCII character => ISO character */
345*0Sstevel@tonic-gate struct fltaccent_sequence_t kb_fltaccent_table[] = {
346*0Sstevel@tonic-gate 
347*0Sstevel@tonic-gate 	{FA_UMLAUT, 'A', 0xC4},		/* A with umlaut */
348*0Sstevel@tonic-gate 	{FA_UMLAUT, 'E', 0xCB},		/* E with umlaut */
349*0Sstevel@tonic-gate 	{FA_UMLAUT, 'I', 0xCF},		/* I with umlaut */
350*0Sstevel@tonic-gate 	{FA_UMLAUT, 'O', 0xD6},		/* O with umlaut */
351*0Sstevel@tonic-gate 	{FA_UMLAUT, 'U', 0xDC},		/* U with umlaut */
352*0Sstevel@tonic-gate 	{FA_UMLAUT, 'a', 0xE4},		/* a with umlaut */
353*0Sstevel@tonic-gate 	{FA_UMLAUT, 'e', 0xEB},		/* e with umlaut */
354*0Sstevel@tonic-gate 	{FA_UMLAUT, 'i', 0xEF},		/* i with umlaut */
355*0Sstevel@tonic-gate 	{FA_UMLAUT, 'o', 0xF6},		/* o with umlaut */
356*0Sstevel@tonic-gate 	{FA_UMLAUT, 'u', 0xFC},		/* u with umlaut */
357*0Sstevel@tonic-gate 	{FA_UMLAUT, 'y', 0xFF},		/* y with umlaut */
358*0Sstevel@tonic-gate 
359*0Sstevel@tonic-gate 	{FA_CFLEX, 'A', 0xC2},		/* A with circumflex */
360*0Sstevel@tonic-gate 	{FA_CFLEX, 'E', 0xCA},		/* E with circumflex */
361*0Sstevel@tonic-gate 	{FA_CFLEX, 'I', 0xCE},		/* I with circumflex */
362*0Sstevel@tonic-gate 	{FA_CFLEX, 'O', 0xD4},		/* O with circumflex */
363*0Sstevel@tonic-gate 	{FA_CFLEX, 'U', 0xDB},		/* U with circumflex */
364*0Sstevel@tonic-gate 	{FA_CFLEX, 'a', 0xE2},		/* a with circumflex */
365*0Sstevel@tonic-gate 	{FA_CFLEX, 'e', 0xEA},		/* e with circumflex */
366*0Sstevel@tonic-gate 	{FA_CFLEX, 'i', 0xEE},		/* i with circumflex */
367*0Sstevel@tonic-gate 	{FA_CFLEX, 'o', 0xF4},		/* o with circumflex */
368*0Sstevel@tonic-gate 	{FA_CFLEX, 'u', 0xFB},		/* u with circumflex */
369*0Sstevel@tonic-gate 
370*0Sstevel@tonic-gate 	{FA_TILDE, 'A', 0xC3},		/* A with tilde */
371*0Sstevel@tonic-gate 	{FA_TILDE, 'N', 0xD1},		/* N with tilde */
372*0Sstevel@tonic-gate 	{FA_TILDE, 'O', 0xD5},		/* O with tilde */
373*0Sstevel@tonic-gate 	{FA_TILDE, 'a', 0xE3},		/* a with tilde */
374*0Sstevel@tonic-gate 	{FA_TILDE, 'n', 0xF1},		/* n with tilde */
375*0Sstevel@tonic-gate 	{FA_TILDE, 'o', 0xF5},		/* o with tilde */
376*0Sstevel@tonic-gate 
377*0Sstevel@tonic-gate 	{FA_CEDILLA, 'C', 0xC7},	/* C with cedilla */
378*0Sstevel@tonic-gate 	{FA_CEDILLA, 'c', 0xE7},	/* c with cedilla */
379*0Sstevel@tonic-gate 
380*0Sstevel@tonic-gate 	{FA_ACUTE, 'A', 0xC1},		/* A with acute accent */
381*0Sstevel@tonic-gate 	{FA_ACUTE, 'E', 0xC9},		/* E with acute accent */
382*0Sstevel@tonic-gate 	{FA_ACUTE, 'I', 0xCD},		/* I with acute accent */
383*0Sstevel@tonic-gate 	{FA_ACUTE, 'O', 0xD3},		/* O with acute accent */
384*0Sstevel@tonic-gate 	{FA_ACUTE, 'U', 0xDA},		/* U with acute accent */
385*0Sstevel@tonic-gate 	{FA_ACUTE, 'a', 0xE1},		/* a with acute accent */
386*0Sstevel@tonic-gate 	{FA_ACUTE, 'e', 0xE9},		/* e with acute accent */
387*0Sstevel@tonic-gate 	{FA_ACUTE, 'i', 0xED},		/* i with acute accent */
388*0Sstevel@tonic-gate 	{FA_ACUTE, 'o', 0xF3},		/* o with acute accent */
389*0Sstevel@tonic-gate 	{FA_ACUTE, 'u', 0xFA},		/* u with acute accent */
390*0Sstevel@tonic-gate 	{FA_ACUTE, 'y', 0xFD},		/* y with acute accent */
391*0Sstevel@tonic-gate 
392*0Sstevel@tonic-gate 	{FA_GRAVE, 'A', 0xC0},		/* A with grave accent */
393*0Sstevel@tonic-gate 	{FA_GRAVE, 'E', 0xC8},		/* E with grave accent */
394*0Sstevel@tonic-gate 	{FA_GRAVE, 'I', 0xCC},		/* I with grave accent */
395*0Sstevel@tonic-gate 	{FA_GRAVE, 'O', 0xD2},		/* O with grave accent */
396*0Sstevel@tonic-gate 	{FA_GRAVE, 'U', 0xD9},		/* U with grave accent */
397*0Sstevel@tonic-gate 	{FA_GRAVE, 'a', 0xE0},		/* a with grave accent */
398*0Sstevel@tonic-gate 	{FA_GRAVE, 'e', 0xE8},		/* e with grave accent */
399*0Sstevel@tonic-gate 	{FA_GRAVE, 'i', 0xEC},		/* i with grave accent */
400*0Sstevel@tonic-gate 	{FA_GRAVE, 'o', 0xF2},		/* o with grave accent */
401*0Sstevel@tonic-gate 	{FA_GRAVE, 'u', 0xF9},		/* u with grave accent */
402*0Sstevel@tonic-gate 
403*0Sstevel@tonic-gate 	{0, 0, 0},			/* end of table */
404*0Sstevel@tonic-gate };
405*0Sstevel@tonic-gate 
406*0Sstevel@tonic-gate /*
407*0Sstevel@tonic-gate  * Num Lock Table
408*0Sstevel@tonic-gate  */
409*0Sstevel@tonic-gate 
410*0Sstevel@tonic-gate /* Num Lock:  pad key entry & 0x1F => ASCII character */
411*0Sstevel@tonic-gate uchar_t kb_numlock_table[] = {
412*0Sstevel@tonic-gate 	'=',
413*0Sstevel@tonic-gate 	'/',
414*0Sstevel@tonic-gate 	'*',
415*0Sstevel@tonic-gate 	'-',
416*0Sstevel@tonic-gate 	',',
417*0Sstevel@tonic-gate 
418*0Sstevel@tonic-gate 	'7',
419*0Sstevel@tonic-gate 	'8',
420*0Sstevel@tonic-gate 	'9',
421*0Sstevel@tonic-gate 	'+',
422*0Sstevel@tonic-gate 
423*0Sstevel@tonic-gate 	'4',
424*0Sstevel@tonic-gate 	'5',
425*0Sstevel@tonic-gate 	'6',
426*0Sstevel@tonic-gate 
427*0Sstevel@tonic-gate 	'1',
428*0Sstevel@tonic-gate 	'2',
429*0Sstevel@tonic-gate 	'3',
430*0Sstevel@tonic-gate 
431*0Sstevel@tonic-gate 	'0',
432*0Sstevel@tonic-gate 	'.',
433*0Sstevel@tonic-gate 	'\n',	/* Enter */
434*0Sstevel@tonic-gate };
435