OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file is generaged by gen_keyboard_layouts.py | 5 // This file is generaged by gen_keyboard_layouts.py |
6 | 6 |
| 7 var KEYS_FR_POPUP_E = [ |
| 8 [ |
| 9 new PopupKey(C('\u0117', 'U+0117'), C('\u0116', 'U+0116'), |
| 10 C('\u0117', 'U+0117'), C('\u0117', 'U+0117')), |
| 11 new PopupKey(C('\u0113', 'U+0113'), C('\u0112', 'U+0112'), |
| 12 C('\u0113', 'U+0113'), C('\u0113', 'U+0113')), |
| 13 ], |
| 14 [ |
| 15 new PopupKey(C('\u0119', 'U+0119'), C('\u0118', 'U+0118'), |
| 16 C('\u0119', 'U+0119'), C('\u0119', 'U+0119')), |
| 17 new PopupKey(C('\u00ea', 'U+00EA'), C('\u00ca', 'U+00CA'), |
| 18 C('\u00ea', 'U+00EA'), C('\u00ea', 'U+00EA')), |
| 19 new PopupKey(C('\u00e9', 'U+00E9'), C('\u00c9', 'U+00C9'), |
| 20 C('\u00e9', 'U+00E9'), C('\u00e9', 'U+00E9')), |
| 21 new PopupKey(C('\u00e8', 'U+00E8'), C('\u00c8', 'U+00C8'), |
| 22 C('\u00e8', 'U+00E8'), C('\u00e8', 'U+00E8')), |
| 23 new PopupKey(C('\u00eb', 'U+00EB'), C('\u00cb', 'U+00CB'), |
| 24 C('\u00eb', 'U+00EB'), C('\u00eb', 'U+00EB')), |
| 25 ], |
| 26 ]; |
| 27 |
| 28 KEYBOARDS['fr_popup_e'] = { |
| 29 'definition': KEYS_FR_POPUP_E, |
| 30 'aspect': 1.5, |
| 31 }; |
| 32 |
7 var KEYS_FR = [ | 33 var KEYS_FR = [ |
8 [ | 34 [ |
9 new SvgKey('tab', 'Tab'), | 35 new SvgKey('tab', 'Tab'), |
10 new Key(C('a'), C('A'), C('1'), C('~')), | 36 new Key(CP('a', 'a', 'fr_popup_a'), CP('A', 'A', 'fr_popup_a'), CP('1'), |
11 new Key(C('z'), C('Z'), C('2'), C('`')), | 37 CP('~')), |
12 new Key(C('e'), C('E'), C('3'), C('|')), | 38 new Key(CP('z'), CP('Z'), CP('2'), CP('`')), |
13 new Key(C('r'), C('R'), C('4'), new Character('\u2022', 'U+2022')), | 39 new Key(CP('e', 'e', 'fr_popup_e'), CP('E', 'E', 'fr_popup_e'), CP('3'), |
14 new Key(C('t'), C('T'), C('5'), new Character('\u221a', 'U+221A')), | 40 CP('|')), |
15 new Key(C('y'), C('Y'), C('6'), new Character('\u03c0', 'U+03C0')), | 41 new Key(CP('r'), CP('R'), CP('4'), CP('\u2022', 'U+2022')), |
16 new Key(C('u'), C('U'), C('7'), new Character('\u00f7', 'U+00F7')), | 42 new Key(CP('t'), CP('T'), CP('5'), CP('\u221a', 'U+221A')), |
17 new Key(C('i'), C('I'), C('8'), new Character('\u00d7', 'U+00D7')), | 43 new Key(CP('y', 'y', 'fr_popup_y'), CP('Y', 'Y', 'fr_popup_y'), CP('6'), |
18 new Key(C('o'), C('O'), C('9'), new Character('\u00a7', 'U+00A7')), | 44 CP('\u03c0', 'U+03C0')), |
19 new Key(C('p'), C('P'), C('0'), new Character('\u0394', 'U+0394')), | 45 new Key(CP('u', 'u', 'fr_popup_u'), CP('U', 'U', 'fr_popup_u'), CP('7'), |
| 46 CP('\u00f7', 'U+00F7')), |
| 47 new Key(CP('i', 'i', 'fr_popup_i'), CP('I', 'I', 'fr_popup_i'), CP('8'), |
| 48 CP('\u00d7', 'U+00D7')), |
| 49 new Key(CP('o', 'o', 'fr_popup_o'), CP('O', 'O', 'fr_popup_o'), CP('9'), |
| 50 CP('\u00a7', 'U+00A7')), |
| 51 new Key(CP('p'), CP('P'), CP('0'), CP('\u0394', 'U+0394')), |
20 new SvgKey('backspace', 'Backspace', true), | 52 new SvgKey('backspace', 'Backspace', true), |
21 ], | 53 ], |
22 [ | 54 [ |
23 new SymbolKey(), | 55 new SymbolKey(), |
24 new Key(C('q'), C('Q'), C('#'), new Character('\u00a3', 'U+00A3')), | 56 new Key(CP('q'), CP('Q'), CP('#'), CP('\u00a3', 'U+00A3')), |
25 new Key(C('s'), C('S'), C('$'), new Character('\u00a2', 'U+00A2')), | 57 new Key(CP('s'), CP('S'), CP('$'), CP('\u00a2', 'U+00A2')), |
26 new Key(C('d'), C('D'), C('%'), new Character('\u20ac', 'U+20AC')), | 58 new Key(CP('d'), CP('D'), CP('%'), CP('\u20ac', 'U+20AC')), |
27 new Key(C('f'), C('F'), C('&'), new Character('\u00a5', 'U+00A5')), | 59 new Key(CP('f'), CP('F'), CP('&'), CP('\u00a5', 'U+00A5')), |
28 new Key(C('g'), C('G'), C('*'), C('^')), | 60 new Key(CP('g'), CP('G'), CP('*'), CP('^')), |
29 new Key(C('h'), C('H'), C('-'), new Character('\u00b0', 'U+00B0')), | 61 new Key(CP('h'), CP('H'), CP('-'), CP('\u00b0', 'U+00B0')), |
30 new Key(C('j'), C('J'), new Character('+', 'Plus'), | 62 new Key(CP('j'), CP('J'), CP('+', 'Plus'), CP('\u00b1', 'U+00B1')), |
31 new Character('\u00b1', 'U+00B1')), | 63 new Key(CP('k'), CP('K'), CP('('), CP('{', 'U+007B')), |
32 new Key(C('k'), C('K'), C('('), new Character('{', 'U+007B')), | 64 new Key(CP('l'), CP('L'), CP(')'), CP('}', 'U+007D')), |
33 new Key(C('l'), C('L'), C(')'), new Character('}', 'U+007D')), | 65 new Key(CP('m'), CP('M'), null, null), |
34 new Key(C('m'), C('M'), null, null), | |
35 new SvgKey('return', 'Enter'), | 66 new SvgKey('return', 'Enter'), |
36 ], | 67 ], |
37 [ | 68 [ |
38 new ShiftKey('left_shift'), | 69 new ShiftKey('left_shift'), |
39 new Key(C('w'), C('W'), C('<'), C('\\')), | 70 new Key(CP('w'), CP('W'), CP('<'), CP('\\')), |
40 new Key(C('x'), C('X'), C('>'), new Character('\u00a9', 'U+00A9')), | 71 new Key(CP('x'), CP('X'), CP('>'), CP('\u00a9', 'U+00A9')), |
41 new Key(C('c'), C('C'), new Character('=', 'Equals'), | 72 new Key(CP('c', 'c', 'fr_popup_c'), CP('C', 'C', 'fr_popup_c'), |
42 new Character('\u00ae', 'U+00AE')), | 73 CP('=', 'Equals'), CP('\u00ae', 'U+00AE')), |
43 new Key(C('v'), C('V'), C(':'), new Character('\u2122', 'U+2122')), | 74 new Key(CP('v'), CP('V'), CP(':'), CP('\u2122', 'U+2122')), |
44 new Key(C('b'), C('B'), C(';'), new Character('\u2105', 'U+2105')), | 75 new Key(CP('b'), CP('B'), CP(';'), CP('\u2105', 'U+2105')), |
45 new Key(C('n'), C('N'), C(','), C('[')), | 76 new Key(CP('n'), CP('N'), CP(','), CP('[')), |
46 new Key(new Character('\'', 'Apostrophe'), C(':'), C('.'), C(']')), | 77 new Key(CP('\'', 'Apostrophe'), CP(':'), CP('.'), CP(']')), |
47 new Key(C(','), C('!'), C('!'), new Character('\u00a1', 'U+00A1')), | 78 new Key(CP(','), CP('!'), CP('!'), CP('\u00a1', 'U+00A1')), |
48 new Key(C('.'), C('?'), C('?'), new Character('\u00bf', 'U+00BF')), | 79 new Key(CP('.'), CP('?'), CP('?'), CP('\u00bf', 'U+00BF')), |
49 new ShiftKey('right_shift'), | 80 new ShiftKey('right_shift'), |
50 ], | 81 ], |
51 [ | 82 [ |
52 new SvgKey('mic', ' '), | 83 new SvgKey('mic', ' '), |
53 new DotComKey(), | 84 new DotComKey(), |
54 new SpecialKey('at', '@', '@'), | 85 new SpecialKey('at', '@', '@'), |
55 new SpecialKey('space', ' ', 'Spacebar'), | 86 new SpecialKey('space', ' ', 'Spacebar'), |
56 new SpecialKey('comma', ',', ','), | 87 new SpecialKey('comma', ',', ','), |
57 new SpecialKey('period', '.', '.'), | 88 new SpecialKey('period', '.', '.'), |
58 new HideKeyboardKey(), | 89 new HideKeyboardKey(), |
59 ], | 90 ], |
60 ]; | 91 ]; |
61 | 92 |
62 // Add layout to KEYBOARDS, which is defined in common.js | |
63 KEYBOARDS['fr'] = { | 93 KEYBOARDS['fr'] = { |
64 "definition": KEYS_FR, | 94 'definition': KEYS_FR, |
65 "aspect": 3.15, | 95 'aspect': 3.15, |
66 }; | 96 }; |
| 97 |
| 98 var KEYS_FR_POPUP_A = [ |
| 99 [ |
| 100 new PopupKey(C('\u0101', 'U+0101'), C('\u0100', 'U+0100'), |
| 101 C('\u0101', 'U+0101'), C('\u0101', 'U+0101')), |
| 102 new PopupKey(C('\u00e3', 'U+00E3'), C('\u00c3', 'U+00C3'), |
| 103 C('\u00e3', 'U+00E3'), C('\u00e3', 'U+00E3')), |
| 104 new PopupKey(C('\u00e5', 'U+00E5'), C('\u00c5', 'U+00C5'), |
| 105 C('\u00e5', 'U+00E5'), C('\u00e5', 'U+00E5')), |
| 106 new PopupKey(C('\u00aa', 'U+00AA'), C('\u00aa', 'U+00AA'), |
| 107 C('\u00aa', 'U+00AA'), C('\u00aa', 'U+00AA')), |
| 108 ], |
| 109 [ |
| 110 new PopupKey(C('\u00e4', 'U+00E4'), C('\u00c4', 'U+00C4'), |
| 111 C('\u00e4', 'U+00E4'), C('\u00e4', 'U+00E4')), |
| 112 new PopupKey(C('\u00e6', 'U+00E6'), C('\u00c6', 'U+00C6'), |
| 113 C('\u00e6', 'U+00E6'), C('\u00e6', 'U+00E6')), |
| 114 new PopupKey(C('\u00e0', 'U+00E0'), C('\u00c0', 'U+00C0'), |
| 115 C('\u00e0', 'U+00E0'), C('\u00e0', 'U+00E0')), |
| 116 new PopupKey(C('\u00e2', 'U+00E2'), C('\u00c2', 'U+00C2'), |
| 117 C('\u00e2', 'U+00E2'), C('\u00e2', 'U+00E2')), |
| 118 new PopupKey(C('\u00e1', 'U+00E1'), C('\u00c1', 'U+00C1'), |
| 119 C('\u00e1', 'U+00E1'), C('\u00e1', 'U+00E1')), |
| 120 ], |
| 121 ]; |
| 122 |
| 123 KEYBOARDS['fr_popup_a'] = { |
| 124 'definition': KEYS_FR_POPUP_A, |
| 125 'aspect': 1.5, |
| 126 }; |
| 127 |
| 128 var KEYS_FR_POPUP_C = [ |
| 129 [ |
| 130 new PopupKey(C('\u010d', 'U+010D'), C('\u010c', 'U+010C'), |
| 131 C('\u010d', 'U+010D'), C('\u010d', 'U+010D')), |
| 132 new PopupKey(C('\u00e7', 'U+00E7'), C('\u00c7', 'U+00C7'), |
| 133 C('\u00e7', 'U+00E7'), C('\u00e7', 'U+00E7')), |
| 134 new PopupKey(C('\u0107', 'U+0107'), C('\u0106', 'U+0106'), |
| 135 C('\u0107', 'U+0107'), C('\u0107', 'U+0107')), |
| 136 ], |
| 137 ]; |
| 138 |
| 139 KEYBOARDS['fr_popup_c'] = { |
| 140 'definition': KEYS_FR_POPUP_C, |
| 141 'aspect': 1.8, |
| 142 }; |
| 143 |
| 144 var KEYS_FR_POPUP_O = [ |
| 145 [ |
| 146 new PopupKey(C('\u014d', 'U+014D'), C('\u014c', 'U+014C'), |
| 147 C('\u014d', 'U+014D'), C('\u014d', 'U+014D')), |
| 148 new PopupKey(C('\u00f5', 'U+00F5'), C('\u00d5', 'U+00D5'), |
| 149 C('\u00f5', 'U+00F5'), C('\u00f5', 'U+00F5')), |
| 150 new PopupKey(C('\u00f8', 'U+00F8'), C('\u00d8', 'U+00D8'), |
| 151 C('\u00f8', 'U+00F8'), C('\u00f8', 'U+00F8')), |
| 152 new PopupKey(C('\u00ba', 'U+00BA'), C('\u00ba', 'U+00BA'), |
| 153 C('\u00ba', 'U+00BA'), C('\u00ba', 'U+00BA')), |
| 154 ], |
| 155 [ |
| 156 new PopupKey(C('\u00f3', 'U+00F3'), C('\u00f3', 'U+00F3'), |
| 157 C('\u00f3', 'U+00F3'), C('\u00f3', 'U+00F3')), |
| 158 new PopupKey(C('\u00f6', 'U+00F6'), C('\u00d6', 'U+00D6'), |
| 159 C('\u00f6', 'U+00F6'), C('\u00f6', 'U+00F6')), |
| 160 new PopupKey(C('\u00f4', 'U+00F4'), C('\u00d4', 'U+00D4'), |
| 161 C('\u00f4', 'U+00F4'), C('\u00f4', 'U+00F4')), |
| 162 new PopupKey(C('\u0153', 'U+0153'), C('\u0152', 'U+0152'), |
| 163 C('\u0153', 'U+0153'), C('\u0153', 'U+0153')), |
| 164 new PopupKey(C('\u00f2', 'U+00F2'), C('\u00d2', 'U+00D2'), |
| 165 C('\u00f2', 'U+00F2'), C('\u00f2', 'U+00F2')), |
| 166 ], |
| 167 ]; |
| 168 |
| 169 KEYBOARDS['fr_popup_o'] = { |
| 170 'definition': KEYS_FR_POPUP_O, |
| 171 'aspect': 1.5, |
| 172 }; |
| 173 |
| 174 var KEYS_FR_POPUP_I = [ |
| 175 [ |
| 176 new PopupKey(C('\u012b', 'U+012B'), C('\u012a', 'U+012A'), |
| 177 C('\u012b', 'U+012B'), C('\u012b', 'U+012B')), |
| 178 ], |
| 179 [ |
| 180 new PopupKey(C('\u012f', 'U+012F'), C('\u012e', 'U+012E'), |
| 181 C('\u012f', 'U+012F'), C('\u012f', 'U+012F')), |
| 182 new PopupKey(C('\u00ec', 'U+00EC'), C('\u00cc', 'U+00CC'), |
| 183 C('\u00ec', 'U+00EC'), C('\u00ec', 'U+00EC')), |
| 184 new PopupKey(C('\u00ee', 'U+00EE'), C('\u00ce', 'U+00CE'), |
| 185 C('\u00ee', 'U+00EE'), C('\u00ee', 'U+00EE')), |
| 186 new PopupKey(C('\u00ef', 'U+00EF'), C('\u00cf', 'U+00CF'), |
| 187 C('\u00ef', 'U+00EF'), C('\u00ef', 'U+00EF')), |
| 188 new PopupKey(C('\u00ed', 'U+00ED'), C('\u00cd', 'U+00CD'), |
| 189 C('\u00ed', 'U+00ED'), C('\u00ed', 'U+00ED')), |
| 190 ], |
| 191 ]; |
| 192 |
| 193 KEYBOARDS['fr_popup_i'] = { |
| 194 'definition': KEYS_FR_POPUP_I, |
| 195 'aspect': 1.5, |
| 196 }; |
| 197 |
| 198 var KEYS_FR_POPUP_U = [ |
| 199 [ |
| 200 new PopupKey(C('\u016b', 'U+016B'), C('\u016a', 'U+016A'), |
| 201 C('\u016b', 'U+016B'), C('\u016b', 'U+016B')), |
| 202 new PopupKey(C('\u00fc', 'U+00FC'), C('\u00dc', 'U+00DC'), |
| 203 C('\u00fc', 'U+00FC'), C('\u00fc', 'U+00FC')), |
| 204 new PopupKey(C('\u00fb', 'U+00FB'), C('\u00db', 'U+00DB'), |
| 205 C('\u00fb', 'U+00FB'), C('\u00fb', 'U+00FB')), |
| 206 new PopupKey(C('\u00f9', 'U+00F9'), C('\u00d9', 'U+00D9'), |
| 207 C('\u00f9', 'U+00F9'), C('\u00f9', 'U+00F9')), |
| 208 new PopupKey(C('\u00fa', 'U+00FA'), C('\u00da', 'U+00DA'), |
| 209 C('\u00fa', 'U+00FA'), C('\u00fa', 'U+00FA')), |
| 210 ], |
| 211 ]; |
| 212 |
| 213 KEYBOARDS['fr_popup_u'] = { |
| 214 'definition': KEYS_FR_POPUP_U, |
| 215 'aspect': 3, |
| 216 }; |
| 217 |
| 218 var KEYS_FR_POPUP_Y = [ |
| 219 [ |
| 220 new PopupKey(C('\u00ff', 'U+00FF'), C('\u0178', 'U+0178'), |
| 221 C('\u00ff', 'U+00FF'), C('\u00ff', 'U+00FF')), |
| 222 ], |
| 223 ]; |
| 224 |
| 225 KEYBOARDS['fr_popup_y'] = { |
| 226 'definition': KEYS_FR_POPUP_Y, |
| 227 'aspect': 0.6, |
| 228 }; |
OLD | NEW |