105b261ecSmrg/* 205b261ecSmrg * Copyright (c) 2005 Alexander Gottwald 305b261ecSmrg * 405b261ecSmrg * Permission is hereby granted, free of charge, to any person obtaining a 505b261ecSmrg * copy of this software and associated documentation files (the "Software"), 605b261ecSmrg * to deal in the Software without restriction, including without limitation 705b261ecSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 805b261ecSmrg * and/or sell copies of the Software, and to permit persons to whom the 905b261ecSmrg * Software is furnished to do so, subject to the following conditions: 1005b261ecSmrg * 1105b261ecSmrg * The above copyright notice and this permission notice shall be included in 1205b261ecSmrg * all copies or substantial portions of the Software. 1305b261ecSmrg * 1405b261ecSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1505b261ecSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1605b261ecSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1705b261ecSmrg * THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 1805b261ecSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 1905b261ecSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 2005b261ecSmrg * DEALINGS IN THE SOFTWARE. 2105b261ecSmrg * 2205b261ecSmrg * Except as contained in this notice, the name(s) of the above copyright 2305b261ecSmrg * holders shall not be used in advertising or otherwise to promote the sale, 2405b261ecSmrg * use or other dealings in this Software without prior written authorization. 2505b261ecSmrg */ 2635c4bbdfSmrg/* Definitions for various keyboard layouts from windows and their 2705b261ecSmrg * XKB settings. 2805b261ecSmrg */ 2905b261ecSmrg 3035c4bbdfSmrgtypedef struct { 3105b261ecSmrg unsigned int winlayout; 3205b261ecSmrg int winkbtype; 3335c4bbdfSmrg const char *xkbmodel; 3435c4bbdfSmrg const char *xkblayout; 3535c4bbdfSmrg const char *xkbvariant; 3635c4bbdfSmrg const char *xkboptions; 3735c4bbdfSmrg const char *layoutname; 3805b261ecSmrg} WinKBLayoutRec, *WinKBLayoutPtr; 3905b261ecSmrg 406747b715Smrg/* 416747b715Smrg This table is sorted by low byte of winlayout, then by next byte, etc. 426747b715Smrg*/ 436747b715Smrg 4435c4bbdfSmrgWinKBLayoutRec winKBLayouts[] = { 4535c4bbdfSmrg {0x00000404, -1, "pc105", "cn", NULL, NULL, "Chinese (Traditional)"}, 4635c4bbdfSmrg {0x00000804, -1, "pc105", "cn", NULL, NULL, "Chinese (Simplified)"}, 4735c4bbdfSmrg {0x00000405, -1, "pc105", "cz", NULL, NULL, "Czech"}, 4835c4bbdfSmrg {0x00010405, -1, "pc105", "cz_qwerty", NULL, NULL, "Czech (QWERTY)"}, 4935c4bbdfSmrg {0x00000406, -1, "pc105", "dk", NULL, NULL, "Danish"}, 5035c4bbdfSmrg {0x00000407, -1, "pc105", "de", NULL, NULL, "German (Germany)"}, 5135c4bbdfSmrg {0x00010407, -1, "pc105", "de", NULL, NULL, "German (Germany,IBM)"}, 5235c4bbdfSmrg {0x00000807, -1, "pc105", "ch", "de", NULL, "German (Switzerland)"}, 5335c4bbdfSmrg {0x00000409, -1, "pc105", "us", NULL, NULL, "English (USA)"}, 5435c4bbdfSmrg {0x00010409, -1, "pc105", "dvorak", NULL, NULL, "English (USA,Dvorak)"}, 5535c4bbdfSmrg {0x00020409, -1, "pc105", "us_intl", NULL, NULL, 5635c4bbdfSmrg "English (USA,International)"}, 5735c4bbdfSmrg {0x00000809, -1, "pc105", "gb", NULL, NULL, "English (United Kingdom)"}, 5835c4bbdfSmrg {0x00001009, -1, "pc105", "ca", "fr", NULL, "French (Canada)"}, 5935c4bbdfSmrg {0x00011009, -1, "pc105", "ca", "multix", NULL, 6035c4bbdfSmrg "Canadian Multilingual Standard"}, 6135c4bbdfSmrg {0x00001809, -1, "pc105", "ie", NULL, NULL, "Irish"}, 6235c4bbdfSmrg {0x0000040a, -1, "pc105", "es", NULL, NULL, 6335c4bbdfSmrg "Spanish (Spain,Traditional Sort)"}, 6435c4bbdfSmrg {0x0000080a, -1, "pc105", "latam", NULL, NULL, "Latin American"}, 6535c4bbdfSmrg {0x0000040b, -1, "pc105", "fi", NULL, NULL, "Finnish"}, 6635c4bbdfSmrg {0x0000040c, -1, "pc105", "fr", NULL, NULL, "French (Standard)"}, 6735c4bbdfSmrg {0x0000080c, -1, "pc105", "be", NULL, NULL, "French (Belgian)"}, 68ed6184dfSmrg {0x0001080c, -1, "pc105", "be", NULL, NULL, "Belgian (Comma)"}, 6935c4bbdfSmrg {0x00000c0c, -1, "pc105", "ca", "fr-legacy", NULL, 7035c4bbdfSmrg "French (Canada, Legacy)"}, 7135c4bbdfSmrg {0x0000100c, -1, "pc105", "ch", "fr", NULL, "French (Switzerland)"}, 7235c4bbdfSmrg {0x0000040d, -1, "pc105", "il", NULL, NULL, "Hebrew"}, 7335c4bbdfSmrg {0x0000040e, -1, "pc105", "hu", NULL, NULL, "Hungarian"}, 7435c4bbdfSmrg {0x0000040f, -1, "pc105", "is", NULL, NULL, "Icelandic"}, 7535c4bbdfSmrg {0x00000410, -1, "pc105", "it", NULL, NULL, "Italian"}, 7635c4bbdfSmrg {0x00010410, -1, "pc105", "it", NULL, NULL, "Italian (142)"}, 7735c4bbdfSmrg {0x00000411, 7, "jp106", "jp", NULL, NULL, "Japanese"}, 7835c4bbdfSmrg {0x00000412, -1, "kr106", "kr", NULL, NULL, "Korean"}, 7935c4bbdfSmrg {0x00000413, -1, "pc105", "nl", NULL, NULL, "Dutch"}, 8035c4bbdfSmrg {0x00000813, -1, "pc105", "be", NULL, NULL, "Dutch (Belgian)"}, 8135c4bbdfSmrg {0x00000414, -1, "pc105", "no", NULL, NULL, "Norwegian"}, 8235c4bbdfSmrg {0x00000415, -1, "pc105", "pl", NULL, NULL, "Polish (Programmers)"}, 8335c4bbdfSmrg {0x00000416, -1, "pc105", "br", NULL, NULL, "Portuguese (Brazil,ABNT)"}, 8435c4bbdfSmrg {0x00010416, -1, "abnt2", "br", NULL, NULL, "Portuguese (Brazil,ABNT2)"}, 8535c4bbdfSmrg {0x00000816, -1, "pc105", "pt", NULL, NULL, "Portuguese (Portugal)"}, 86ed6184dfSmrg {0x00000419, -1, "pc105", "ru", NULL, NULL, "Russian"}, 8735c4bbdfSmrg {0x0000041a, -1, "pc105", "hr", NULL, NULL, "Croatian"}, 8835c4bbdfSmrg {0x0000041d, -1, "pc105", "se", NULL, NULL, "Swedish (Sweden)"}, 8935c4bbdfSmrg {0x0000041f, -1, "pc105", "tr", NULL, NULL, "Turkish (Q)"}, 9035c4bbdfSmrg {0x0001041f, -1, "pc105", "tr", "f", NULL, "Turkish (F)"}, 9135c4bbdfSmrg {0x00000424, -1, "pc105", "si", NULL, NULL, "Slovenian"}, 9235c4bbdfSmrg {0x00000425, -1, "pc105", "ee", NULL, NULL, "Estonian"}, 9335c4bbdfSmrg {0x00000452, -1, "pc105", "gb", "intl", NULL, "United Kingdom (Extended)"}, 9435c4bbdfSmrg {-1, -1, NULL, NULL, NULL, NULL, NULL} 9505b261ecSmrg}; 9605b261ecSmrg 9705b261ecSmrg/* 989ace9065Smrg See http://technet.microsoft.com/en-us/library/cc766503%28WS.10%29.aspx 999ace9065Smrg for a listing of input locale (keyboard layout) codes 1009ace9065Smrg*/ 101