1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5var uppercaseAccents = { 6 'A': ['\u00C0', // Capital A grave 7 '\u00C1', // Capital A acute 8 '\u00C2', // Capital A circumflex 9 '\u00C3', // Capital A tilde 10 '\u00C4', // Capital A diaeresis 11 '\u00C5', // Capital A ring 12 '\u00C6', // Capital ligature AE 13 '\u0100'], // Capital A macron 14 'C': ['\u00C7'], // Capital C cedilla 15 'E': ['\u00C8', // Capital E grave 16 '\u00C9', // Capital E acute 17 '\u00CA', // Capital E circumflex 18 '\u00CB', // Capital E diaeresis 19 '\u0112'], // Capital E macron 20 'I': ['\u00CC', // Capital I grave 21 '\u00CD', // Capital I acute 22 '\u00CE', // Capital I circumflex 23 '\u00CF', // Capital I diaeresis 24 '\u012A'], // Capital I macron 25 'N': ['\u00D1'], // Capital N tilde 26 'O': ['\u00D2', // Capital O grave 27 '\u00D3', // Capital O acute 28 '\u00D4', // Capital O circumflex 29 '\u00D5', // Capital O tilde 30 '\u00D6', // Capital O diaeresis 31 '\u014C', // Capital O macron 32 '\u0152'], // Capital ligature OE 33 'S': ['\u1E9E'], // Capital sharp S 34 'U': ['\u00D9', // Capital U grave 35 '\u00DA', // Capital U acute 36 '\u00DB', // Capital U circumflex 37 '\u00DC', // Capital U diaeresis 38 '\u016A'], // Capital U macron 39}; 40 41var lowercaseAccents = { 42 'a': ['\u00E0', // Lowercase A grave 43 '\u00E1', // Lowercase A acute 44 '\u00E2', // Lowercase A circumflex 45 '\u00E3', // Lowercase A tilde 46 '\u00E4', // Lowercase A diaeresis 47 '\u00E5', // Lowercase A ring 48 '\u00E6', // Lowercase ligature AE 49 '\u0101'], // Lowercase A macron? 50 'c': ['\u00E7'], // Lowercase C cedilla 51 'e': ['\u00E8', // Lowercase E grave 52 '\u00E9', // Lowercase E acute 53 '\u00EA', // Lowercase E circumflex 54 '\u00EB', // Lowercase E diaeresis 55 '\u0113'], // Lowercase E macron 56 'i': ['\u00EC', // Lowercase I grave 57 '\u00ED', // Lowercase I acute 58 '\u00EE', // Lowercase I circumflex 59 '\u00EF', // Lowercase I diaeresis 60 '\u012B'], // Lowercase I macron 61 'n': ['\u00F1'], // Lowercase N tilde 62 'o': ['\u00F2', // Lowercase O grave 63 '\u00F3', // Lowercase O acute 64 '\u00F4', // Lowercase O circumflex 65 '\u00F5', // Lowercase O tilde 66 '\u00F6', // Lowercase O diaeresis 67 '\u00F8', // Lowercase O stroke 68 '\u0153'], // Lowercase ligature OE 69 's': ['\u00DF'], // Lowercase sharp S 70 'u': ['\u00F9', // Lowercase U grave 71 '\u00FA', // Lowercase U acute 72 '\u00FB', // Lowercase U circumflex 73 '\u00FC', // Lowercase U diaeresis 74 '\u016B'], // Lowercase U macron 75}; 76 77document.addEventListener('polymer-ready', function() { 78 var altkeyMetadata = document.createElement('kb-altkey-data'); 79 altkeyMetadata.registerAltkeys(uppercaseAccents); 80 altkeyMetadata.registerAltkeys(lowercaseAccents); 81}); 82