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