OLD | NEW |
1 // Copyright 2015 The ChromeOS IME Authors. All Rights Reserved. | 1 // Copyright 2015 The ChromeOS IME Authors. All Rights Reserved. |
2 // limitations under the License. | 2 // limitations under the License. |
3 // See the License for the specific language governing permissions and | 3 // See the License for the specific language governing permissions and |
4 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 4 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
5 // distributed under the License is distributed on an "AS-IS" BASIS, | 5 // distributed under the License is distributed on an "AS-IS" BASIS, |
6 // Unless required by applicable law or agreed to in writing, software | 6 // Unless required by applicable law or agreed to in writing, software |
7 // | 7 // |
8 // http://www.apache.org/licenses/LICENSE-2.0 | 8 // http://www.apache.org/licenses/LICENSE-2.0 |
9 // | 9 // |
10 // You may obtain a copy of the License at | 10 // You may obtain a copy of the License at |
11 // you may not use this file except in compliance with the License. | 11 // you may not use this file except in compliance with the License. |
12 // Licensed under the Apache License, Version 2.0 (the "License"); | 12 // Licensed under the Apache License, Version 2.0 (the "License"); |
13 // | 13 // |
14 goog.provide('i18n.input.chrome.sounds.Sounds'); | 14 goog.provide('i18n.input.chrome.Constant'); |
15 | 15 |
16 | 16 |
17 /** | 17 /** |
18 * The available sounds. | 18 * The set of Latin valid characters . |
| 19 */ |
| 20 i18n.input.chrome.Constant.LATIN_VALID_CHAR = |
| 21 "[a-z\\-\\\'\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u017F]"; |
| 22 |
| 23 |
| 24 /** |
| 25 * Languages need to support NACL module for XKB. |
19 * | 26 * |
20 * @enum {string} | 27 * @type {!Array.<string>} |
21 */ | 28 */ |
22 i18n.input.chrome.sounds.Sounds = { | 29 i18n.input.chrome.Constant.NACL_LANGUAGES = [ |
23 DELETE: 'KeypressDelete', | 30 'da', |
24 RETURN: 'KeypressReturn', | 31 'de', |
25 SPACEBAR: 'KeypressSpacebar', | 32 'en', |
26 STANDARD: 'KeypressStandard', | 33 'es', |
27 NONE: 'none', | 34 'fi', |
28 VOICE_RECOG_START: 'audio_initiate', | 35 'fr', |
29 VOICE_RECOG_END: 'audio_end', | 36 'it', |
30 AUTO_CORRECTION: 'KeypressStandard' | 37 'nl', |
31 }; | 38 // When enable "no-t-i0-und" make NACL crash, so disable it now. |
32 | 39 // 'no', |
| 40 'pl', |
| 41 'pt', |
| 42 'pt-BR', |
| 43 'pt-PT', |
| 44 'sv', |
| 45 'tr' |
| 46 ]; |
OLD | NEW |