Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / third_party / google_input_tools / src / chrome / os / inputview / config / il_data.js
1 // Copyright 2014 The ChromeOS IME Authors. All Rights Reserved.
2 // limitations under the License.
3 // See the License for the specific language governing permissions and
4 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5 // distributed under the License is distributed on an "AS-IS" BASIS,
6 // Unless required by applicable law or agreed to in writing, software
7 //
8 //      http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // You may obtain a copy of the License at
11 // you may not use this file except in compliance with the License.
12 // Licensed under the Apache License, Version 2.0 (the "License");
13 //
14 goog.require('i18n.input.chrome.inputview.content.util');
15
16 (function() {
17   var viewIdPrefix_ = '101kbd-k-';
18
19   var keyCharacters = [
20     ['\u003b', '\u007e', '\u05b0', '\u05b0'], // TLDE
21     ['\u0031', '\u0021', '\u05b1', '\u05b1'], // AE01
22     ['\u0032', '\u0040', '\u05b2', '\u05b2'], // AE02
23     ['\u0033', '\u0023', '\u05b3', '\u05b3'], // AE03
24     ['\u0034', '\u0024', '\u05b4', '\u05b4'], // AE04
25     ['\u0035', '\u0025', '\u05b5', '\u05b5'], // AE05
26     ['\u0036', '\u005e', '\u05b6', '\u05b6'], // AE06
27     ['\u0037', '\u0026', '\u05b7', '\u05b7'], // AE07
28     ['\u0038', '\u002a', '\u05b8', '\u05b8'], // AE08
29     ['\u0039', '\u0029', '\u05c2', '\u05c2'], // AE09
30     ['\u0030', '\u0028', '\u05c1', '\u05c1'], // AE10
31     ['\u002d', '\u005f', '\u05b9', '\u05b9'], // AE11
32     ['\u003d', '\u002b', '\u05bc', '\u05bc'], // AE12
33     ['\u002f', '\u0051'], // AD01
34     ['\u0027', '\u0057'], // AD02
35     ['\u05e7', '\u0045', '\u20ac', '\u20ac'], // AD03
36     ['\u05e8', '\u0052'], // AD04
37     ['\u05d0', '\u0054'], // AD05
38     ['\u05d8', '\u0059'], // AD06
39     ['\u05d5', '\u0055'], // AD07
40     ['\u05df', '\u0049'], // AD08
41     ['\u05dd', '\u004f'], // AD09
42     ['\u05e4', '\u0050'], // AD10
43     ['\u005d', '\u007d', '\u05bf', '\u05bf'], // AD11
44     ['\u005b', '\u007b', '\u05bd', '\u05bd'], // AD12
45     ['\u005c', '\u007c', '\u05bb', '\u05bb'], // BKSL
46     ['\u05e9', '\u0041', '\u20aa', '\u20aa'], // AC01
47     ['\u05d3', '\u0053'], // AC02
48     ['\u05d2', '\u0044'], // AC03
49     ['\u05db', '\u0046'], // AC04
50     ['\u05e2', '\u0047'], // AC05
51     ['\u05d9', '\u0048'], // AC06
52     ['\u05d7', '\u004a'], // AC07
53     ['\u05dc', '\u004b'], // AC08
54     ['\u05da', '\u004c'], // AC09
55     ['\u05e3', '\u003a'], // AC10
56     ['\u002c', '\u0022'], // AC11
57     ['\u05d6', '\u005a'], // AB01
58     ['\u05e1', '\u0058'], // AB02
59     ['\u05d1', '\u0043'], // AB03
60     ['\u05d4', '\u0056'], // AB04
61     ['\u05e0', '\u0042'], // AB05
62     ['\u05de', '\u004e'], // AB06
63     ['\u05e6', '\u004d'], // AB07
64     ['\u05ea', '\u003c'], // AB08
65     ['\u05e5', '\u003e'], // AB09
66     ['\u002e', '\u003f', '\u05c3', '\u05c3'], // AB10
67     ['\u0020', '\u0020'] // SPCE
68   ];
69
70   var keyCodes = [
71     0xC0, // TLDE
72     0x31, // AE01
73     0x32, // AE02
74     0x33, // AE03
75     0x34, // AE04
76     0x35, // AE05
77     0x36, // AE06
78     0x37, // AE07
79     0x38, // AE08
80     0x39, // AE09
81     0x30, // AE10
82     0xBD, // AE11
83     0xBB, // AE12
84     0x51, // AD01
85     0x57, // AD02
86     0x45, // AD03
87     0x52, // AD04
88     0x54, // AD05
89     0x59, // AD06
90     0x55, // AD07
91     0x49, // AD08
92     0x4F, // AD09
93     0x50, // AD10
94     0xDB, // AD11
95     0xDD, // AD12
96     0xDC, // BKSL
97     0x41, // AC01
98     0x53, // AC02
99     0x44, // AC03
100     0x46, // AC04
101     0x47, // AC05
102     0x48, // AC06
103     0x4A, // AC07
104     0x4B, // AC08
105     0x4C, // AC09
106     0xBA, // AC10
107     0xDE, // AC11
108     0x5A, // AB01
109     0x58, // AB02
110     0x43, // AB03
111     0x56, // AB04
112     0x42, // AB05
113     0x4E, // AB06
114     0x4D, // AB07
115     0xBC, // AB08
116     0xBE, // AB09
117     0xBF, // AB10
118     0x20  // SPCE
119   ];
120
121   var data = i18n.input.chrome.inputview.content.util.createData(
122       keyCharacters, viewIdPrefix_, false, true, keyCodes);
123   data['id'] = 'il';
124   google.ime.chrome.inputview.onConfigLoaded(data);
125 }) ();