xref: /OK3568_Linux_fs/external/xserver/hw/xwin/winlayouts.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * Copyright (c) 2005 Alexander Gottwald
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * Permission is hereby granted, free of charge, to any person obtaining a
5*4882a593Smuzhiyun  * copy of this software and associated documentation files (the "Software"),
6*4882a593Smuzhiyun  * to deal in the Software without restriction, including without limitation
7*4882a593Smuzhiyun  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8*4882a593Smuzhiyun  * and/or sell copies of the Software, and to permit persons to whom the
9*4882a593Smuzhiyun  * Software is furnished to do so, subject to the following conditions:
10*4882a593Smuzhiyun  *
11*4882a593Smuzhiyun  * The above copyright notice and this permission notice shall be included in
12*4882a593Smuzhiyun  * all copies or substantial portions of the Software.
13*4882a593Smuzhiyun  *
14*4882a593Smuzhiyun  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15*4882a593Smuzhiyun  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16*4882a593Smuzhiyun  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17*4882a593Smuzhiyun  * THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18*4882a593Smuzhiyun  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19*4882a593Smuzhiyun  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20*4882a593Smuzhiyun  * DEALINGS IN THE SOFTWARE.
21*4882a593Smuzhiyun  *
22*4882a593Smuzhiyun  * Except as contained in this notice, the name(s) of the above copyright
23*4882a593Smuzhiyun  * holders shall not be used in advertising or otherwise to promote the sale,
24*4882a593Smuzhiyun  * use or other dealings in this Software without prior written authorization.
25*4882a593Smuzhiyun  */
26*4882a593Smuzhiyun /* Definitions for various keyboard layouts from windows and their
27*4882a593Smuzhiyun  * XKB settings.
28*4882a593Smuzhiyun  */
29*4882a593Smuzhiyun 
30*4882a593Smuzhiyun typedef struct {
31*4882a593Smuzhiyun     unsigned int winlayout;
32*4882a593Smuzhiyun     int winkbtype;
33*4882a593Smuzhiyun     const char *xkbmodel;
34*4882a593Smuzhiyun     const char *xkblayout;
35*4882a593Smuzhiyun     const char *xkbvariant;
36*4882a593Smuzhiyun     const char *xkboptions;
37*4882a593Smuzhiyun     const char *layoutname;
38*4882a593Smuzhiyun } WinKBLayoutRec, *WinKBLayoutPtr;
39*4882a593Smuzhiyun 
40*4882a593Smuzhiyun /*
41*4882a593Smuzhiyun    This table is sorted by low byte of winlayout, then by next byte, etc.
42*4882a593Smuzhiyun */
43*4882a593Smuzhiyun 
44*4882a593Smuzhiyun WinKBLayoutRec winKBLayouts[] = {
45*4882a593Smuzhiyun     {0x00000404, -1, "pc105", "cn", NULL, NULL, "Chinese (Traditional)"},
46*4882a593Smuzhiyun     {0x00000804, -1, "pc105", "cn", NULL, NULL, "Chinese (Simplified)"},
47*4882a593Smuzhiyun     {0x00000405, -1, "pc105", "cz", NULL, NULL, "Czech"},
48*4882a593Smuzhiyun     {0x00010405, -1, "pc105", "cz_qwerty", NULL, NULL, "Czech (QWERTY)"},
49*4882a593Smuzhiyun     {0x00000406, -1, "pc105", "dk", NULL, NULL, "Danish"},
50*4882a593Smuzhiyun     {0x00000407, -1, "pc105", "de", NULL, NULL, "German (Germany)"},
51*4882a593Smuzhiyun     {0x00010407, -1, "pc105", "de", NULL, NULL, "German (Germany,IBM)"},
52*4882a593Smuzhiyun     {0x00000807, -1, "pc105", "ch", "de", NULL, "German (Switzerland)"},
53*4882a593Smuzhiyun     {0x00000409, -1, "pc105", "us", NULL, NULL, "English (USA)"},
54*4882a593Smuzhiyun     {0x00010409, -1, "pc105", "dvorak", NULL, NULL, "English (USA,Dvorak)"},
55*4882a593Smuzhiyun     {0x00020409, -1, "pc105", "us_intl", NULL, NULL,
56*4882a593Smuzhiyun      "English (USA,International)"},
57*4882a593Smuzhiyun     {0x00000809, -1, "pc105", "gb", NULL, NULL, "English (United Kingdom)"},
58*4882a593Smuzhiyun     {0x00001009, -1, "pc105", "ca", "fr", NULL, "French (Canada)"},
59*4882a593Smuzhiyun     {0x00011009, -1, "pc105", "ca", "multix", NULL,
60*4882a593Smuzhiyun      "Canadian Multilingual Standard"},
61*4882a593Smuzhiyun     {0x00001809, -1, "pc105", "ie", NULL, NULL, "Irish"},
62*4882a593Smuzhiyun     {0x0000040a, -1, "pc105", "es", NULL, NULL,
63*4882a593Smuzhiyun      "Spanish (Spain,Traditional Sort)"},
64*4882a593Smuzhiyun     {0x0000080a, -1, "pc105", "latam", NULL, NULL, "Latin American"},
65*4882a593Smuzhiyun     {0x0000040b, -1, "pc105", "fi", NULL, NULL, "Finnish"},
66*4882a593Smuzhiyun     {0x0000040c, -1, "pc105", "fr", NULL, NULL, "French (Standard)"},
67*4882a593Smuzhiyun     {0x0000080c, -1, "pc105", "be", NULL, NULL, "French (Belgian)"},
68*4882a593Smuzhiyun     {0x00000c0c, -1, "pc105", "ca", "fr-legacy", NULL,
69*4882a593Smuzhiyun      "French (Canada, Legacy)"},
70*4882a593Smuzhiyun     {0x0000100c, -1, "pc105", "ch", "fr", NULL, "French (Switzerland)"},
71*4882a593Smuzhiyun     {0x0000040d, -1, "pc105", "il", NULL, NULL, "Hebrew"},
72*4882a593Smuzhiyun     {0x0000040e, -1, "pc105", "hu", NULL, NULL, "Hungarian"},
73*4882a593Smuzhiyun     {0x0000040f, -1, "pc105", "is", NULL, NULL, "Icelandic"},
74*4882a593Smuzhiyun     {0x00000410, -1, "pc105", "it", NULL, NULL, "Italian"},
75*4882a593Smuzhiyun     {0x00010410, -1, "pc105", "it", NULL, NULL, "Italian (142)"},
76*4882a593Smuzhiyun     {0x00000411, 7, "jp106", "jp", NULL, NULL, "Japanese"},
77*4882a593Smuzhiyun     {0x00000412, -1, "kr106", "kr", NULL, NULL, "Korean"},
78*4882a593Smuzhiyun     {0x00000413, -1, "pc105", "nl", NULL, NULL, "Dutch"},
79*4882a593Smuzhiyun     {0x00000813, -1, "pc105", "be", NULL, NULL, "Dutch (Belgian)"},
80*4882a593Smuzhiyun     {0x00000414, -1, "pc105", "no", NULL, NULL, "Norwegian"},
81*4882a593Smuzhiyun     {0x00000415, -1, "pc105", "pl", NULL, NULL, "Polish (Programmers)"},
82*4882a593Smuzhiyun     {0x00000416, -1, "pc105", "br", NULL, NULL, "Portuguese (Brazil,ABNT)"},
83*4882a593Smuzhiyun     {0x00010416, -1, "abnt2", "br", NULL, NULL, "Portuguese (Brazil,ABNT2)"},
84*4882a593Smuzhiyun     {0x00000816, -1, "pc105", "pt", NULL, NULL, "Portuguese (Portugal)"},
85*4882a593Smuzhiyun     {0x0000041a, -1, "pc105", "hr", NULL, NULL, "Croatian"},
86*4882a593Smuzhiyun     {0x0000041d, -1, "pc105", "se", NULL, NULL, "Swedish (Sweden)"},
87*4882a593Smuzhiyun     {0x0000041f, -1, "pc105", "tr", NULL, NULL, "Turkish (Q)"},
88*4882a593Smuzhiyun     {0x0001041f, -1, "pc105", "tr", "f", NULL, "Turkish (F)"},
89*4882a593Smuzhiyun     {0x00000424, -1, "pc105", "si", NULL, NULL, "Slovenian"},
90*4882a593Smuzhiyun     {0x00000425, -1, "pc105", "ee", NULL, NULL, "Estonian"},
91*4882a593Smuzhiyun     {0x00000452, -1, "pc105", "gb", "intl", NULL, "United Kingdom (Extended)"},
92*4882a593Smuzhiyun     {-1, -1, NULL, NULL, NULL, NULL, NULL}
93*4882a593Smuzhiyun };
94*4882a593Smuzhiyun 
95*4882a593Smuzhiyun /*
96*4882a593Smuzhiyun   See http://technet.microsoft.com/en-us/library/cc766503%28WS.10%29.aspx
97*4882a593Smuzhiyun   for a listing of input locale (keyboard layout) codes
98*4882a593Smuzhiyun */
99