OLD | NEW |
1 # The list of input methods that we support. The input methods metadata is | 1 # The list of keyboard layouts that we support. The keyboard layout metadata is |
2 # also defined here. We use this data for the following purposes. | 2 # also defined here. |
3 # | 3 # |
4 # 1. Exclude unnecessary input methods. For example, we don't need | |
5 # "ja:anthy", and "zh:pinyin" engines in ibus-m17n since we have better | |
6 # alternatives outside of ibus-m17n. Excluding these input methods from | |
7 # the IBus engine XML files, such as /usr/share/ibus/component/m17n.xml, | |
8 # makes the startup time of the IBus daemon faster. This filtering is | |
9 # done using a python script at build time of ibus-m17n. | |
10 # See crosbug.com/4161 for details. | |
11 # | |
12 # 2. Provide the input methods metadata to Chrome at build time. Chrome | |
13 # needs to know about the supported input methods for the input method | |
14 # features, such as the input method switching and the options page, | |
15 # to work. Note that we can retrieve the same metadata from the IBus | |
16 # daemon, but Chrome needs be able to get the metadata without talking | |
17 # to the IBus daemon. This requirement comes from the fact that the | |
18 # IBus daemon should not run if the user is just using keyboard layouts | |
19 # such as US keyboard. The metadata generation is done using a python | |
20 # script at build time of Chrome. See crosbug.com/16961 for details. | |
21 # | |
22 # The order of the list is important. In Chrome's "Languages and input" options | |
23 # page, we list input methods in this order, when more than one input methods | |
24 # are available for a language (ex. French). | |
25 # | |
26 # Each non-comment line contains the following tab-separated columns. | 4 # Each non-comment line contains the following tab-separated columns. |
27 # | 5 # |
28 # 1) The input method ID used by Chrome. (ex. "xkb:ca::fra") You should *NEVER* | 6 # 1) The input method ID used by Chrome. (ex. "xkb:ca::fra") You should *NEVER* |
29 # change the ID since the ID might be written in user's ~/Preferences. For | 7 # change the ID since the ID might be written in user's ~/Preferences. For |
30 # example, three-letter ISO 639-2/B codes are used for IDs start with "xkb:" | 8 # example, three-letter ISO 639-2/B codes are used for IDs start with "xkb:" |
31 # for histrical reason, but we should not replace them with two-letter 639-1 | 9 # for histrical reason, but we should not replace them with two-letter 639-1 |
32 # codes that are currently in use in the 3rd column. | 10 # codes that are currently in use in the 3rd column. |
33 # 2) The keyboard layout ID used by XKB. (ex. "us", "us(dvorak)", "ca", | 11 # 2) The keyboard layout ID used by XKB. (ex. "us", "us(dvorak)", "ca", |
34 # "handwriting-vk,jp"). See also: /usr/share/X11/xkb/symbols. | 12 # "handwriting-vk,jp"). See also: /usr/share/X11/xkb/symbols. |
35 # 3) The language code (ex. "fr"). Only one format, ISO 639-1 compliant two- | 13 # 3) The language code (ex. "fr"). Only one format, ISO 639-1 compliant two- |
36 # letter language code which can be recognized by ICU, is allowed. Do not use | 14 # letter language code which can be recognized by ICU, is allowed. Do not use |
37 # three-letter ones (ISO 639-2/T and 639-2/B) here. For "en", "pt", and "zh", | 15 # three-letter ones (ISO 639-2/T and 639-2/B) here. For "en", "pt", and "zh", |
38 # two-letter upper-case country code should be added (ex. "en-US", "zh-TW"). | 16 # two-letter upper-case country code should be added (ex. "en-US", "zh-TW"). |
39 # See http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for details. | 17 # See http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for details. |
40 # 4) [optional] The #if condition for the input method. | 18 # We can specify multiple language code with comma separator. |
41 # (ex. "defined(A)", "!defined(A)||defined(B)") | |
42 # | 19 # |
43 # Notes: | 20 # Notes: |
44 # When adding a line to this list, please also add a mapping from the input | 21 # When adding a line to this list, please also add a mapping from the input |
45 # method ID to the keyboard overlay ID to INPUT_METHOD_ID_TO_OVERLAY_ID in | 22 # method ID to the keyboard overlay ID to INPUT_METHOD_ID_TO_OVERLAY_ID in |
46 # | 23 # |
47 # * tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py | 24 # * tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py |
48 # | 25 # |
49 # and update the following files by running this script. | 26 # and update the following files by running this script. |
50 # | 27 # |
51 # * chrome/app/generated_resources.grd | 28 # * chrome/app/generated_resources.grd |
52 # * chrome/browser/resources/chromeos/keyboard_overlay_data.js | 29 # * chrome/browser/resources/chromeos/keyboard_overlay_data.js |
53 # * chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc | 30 # * chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc |
54 # | 31 # |
55 # If you add an XKB layout which depends on X11's Mod3Mask (e.g. Germany Neo2 | 32 # If you add an XKB layout which depends on X11's Mod3Mask (e.g. Germany Neo2 |
56 # XKB layout), you should also update IsMod3UsedByCurrentInputMethod() method | 33 # XKB layout), you should also update IsMod3UsedByCurrentInputMethod() method |
57 # in chrome/browser/ui/ash/event_rewriter.cc. Otherwise, Mod3Mask might be | 34 # in chrome/browser/ui/ash/event_rewriter.cc. Otherwise, Mod3Mask might be |
58 # removed unexpectedly by the rewriter. | 35 # removed unexpectedly by the rewriter. |
59 # | 36 # |
60 # If you add a new language such that some of its layouts can be used at | 37 # If you add a new language such that some of its layouts can be used at |
61 # signin screen (e.g. it is "Full Latin Keyboard Layout" therefore allowing | 38 # signin screen (e.g. it is "Full Latin Keyboard Layout" therefore allowing |
62 # input of gmail password), you should also update | 39 # input of gmail password), you should also update |
63 # kHasLatinKeyboardLanguageList[] in | 40 # kHasLatinKeyboardLanguageList[] in |
64 # chrome/browser/chromeos/input_method/input_method_manager_impl_ll.cc | 41 # chrome/browser/chromeos/input_method/input_method_manager_impl_ll.cc |
65 # | 42 # |
66 # If you add a new keyboard layout for existing language, please ensure | 43 # If you add a new keyboard layout for existing language, please ensure |
67 # that information in kHasLatinKeyboardLanguageList[] is still correct. | 44 # that information in kHasLatinKeyboardLanguageList[] is still correct. |
68 | 45 |
69 # U.S. English | 46 # U.S. English |
70 xkb:us::eng» us» en-US | 47 xkb:us::eng» us» en-US,en-AU,id,fil,ms |
71 xkb:us:intl:eng»us(intl)» en-US | 48 xkb:us:intl:eng»us(intl)» en-US,nl,pt-BR |
72 xkb:us:altgr-intl:eng us(altgr-intl) en-US | 49 xkb:us:altgr-intl:eng us(altgr-intl) en-US |
73 xkb:us:dvorak:eng us(dvorak) en-US | 50 xkb:us:dvorak:eng us(dvorak) en-US |
74 xkb:us:colemak:eng us(colemak) en-US | 51 xkb:us:colemak:eng us(colemak) en-US |
75 # U.S. English entiries have to be above the Dutch entry so that xkb:us:intl:eng | 52 # U.S. English entiries have to be above the Dutch entry so that xkb:us:intl:eng |
76 # will be selected as the default keyboard when the UI language is set to Dutch. | 53 # will be selected as the default keyboard when the UI language is set to Dutch. |
77 | 54 |
78 # Dutch | 55 # Dutch |
79 xkb:be::nld be nl | 56 xkb:be::nld be nl |
80 # We don't support xkb:nl::nld. See b/4430951. | 57 # We don't support xkb:nl::nld. See b/4430951. |
81 | 58 |
(...skipping 25 matching lines...) Expand all Loading... |
107 xkb:bg:phonetic:bul bg(phonetic) bg | 84 xkb:bg:phonetic:bul bg(phonetic) bg |
108 xkb:ca:eng:eng ca(eng) en-CA | 85 xkb:ca:eng:eng ca(eng) en-CA |
109 xkb:cz::cze cz cs | 86 xkb:cz::cze cz cs |
110 xkb:cz:qwerty:cze cz(qwerty) cs | 87 xkb:cz:qwerty:cze cz(qwerty) cs |
111 xkb:ee::est ee et | 88 xkb:ee::est ee et |
112 xkb:es::spa es es | 89 xkb:es::spa es es |
113 xkb:es:cat:cat es(cat) ca | 90 xkb:es:cat:cat es(cat) ca |
114 xkb:dk::dan dk da | 91 xkb:dk::dan dk da |
115 xkb:gr::gre gr el | 92 xkb:gr::gre gr el |
116 xkb:il::heb il he | 93 xkb:il::heb il he |
117 xkb:latam::spa» latam» es | 94 xkb:latam::spa» latam» es,es-419 |
118 xkb:lt::lit lt lt | 95 xkb:lt::lit lt lt |
119 xkb:lv:apostrophe:lav lv(apostrophe) lv | 96 xkb:lv:apostrophe:lav lv(apostrophe) lv |
120 xkb:hr::scr hr hr | 97 xkb:hr::scr hr hr |
121 xkb:gb:extd:eng gb(extd) en-GB | 98 xkb:gb:extd:eng gb(extd) en-GB |
122 xkb:gb:dvorak:eng gb(dvorak) en-GB | 99 xkb:gb:dvorak:eng gb(dvorak) en-GB |
123 xkb:fi::fin fi fi | 100 xkb:fi::fin fi fi |
124 xkb:hu::hun hu hu | 101 xkb:hu::hun hu hu |
125 xkb:it::ita it it | 102 xkb:it::ita it it |
126 xkb:is::ice is is | 103 xkb:is::ice is is |
127 xkb:no::nob no nb | 104 xkb:no::nob no nb |
128 xkb:pl::pol pl pl | 105 xkb:pl::pol pl pl |
129 xkb:pt::por pt pt-PT | 106 xkb:pt::por pt pt-PT |
130 xkb:ro::rum ro ro | 107 xkb:ro::rum ro ro |
131 xkb:se::swe se sv | 108 xkb:se::swe se sv |
132 xkb:sk::slo sk sk | 109 xkb:sk::slo sk sk |
133 xkb:si::slv si sl | 110 xkb:si::slv si sl |
134 xkb:rs::srp rs sr | 111 xkb:rs::srp rs sr |
135 xkb:tr::tur tr tr | 112 xkb:tr::tur tr tr |
136 xkb:ua::ukr ua uk | 113 xkb:ua::ukr ua uk |
137 xkb:by::bel by be | 114 xkb:by::bel by be |
138 xkb:am:phonetic:arm am hy | 115 xkb:am:phonetic:arm am hy |
139 xkb:ge::geo ge ka | 116 xkb:ge::geo ge ka |
140 xkb:mn::mon mn mn | 117 xkb:mn::mon mn mn |
141 # TODO(yusukes): Support xkb:latam:deadtilde:spa and/or xkb:latam:nodeadkeys:spa | 118 # TODO(yusukes): Support xkb:latam:deadtilde:spa and/or xkb:latam:nodeadkeys:spa |
142 # if necessary. | 119 # if necessary. |
OLD | NEW |