| OLD | NEW |
| 1 # The list of input methods that we support. The input methods metadata is | 1 # The list of input methods that we support. The input methods metadata is |
| 2 # also defined here. We use this data for the following purposes. | 2 # also defined here. We use this data for the following purposes. |
| 3 # | 3 # |
| 4 # 1. Exclude unnecessary input methods. For example, we don't need | 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 | 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 | 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, | 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 | 8 # makes the startup time of the IBus daemon faster. This filtering is |
| 9 # done using a python script at build time of ibus-xkb-layouts and | 9 # done using a python script at build time of ibus-m17n. |
| 10 # ibus-m17n. See crosbug.com/4161 for details. | 10 # See crosbug.com/4161 for details. |
| 11 # | 11 # |
| 12 # 2. Provide the input methods metadata to Chrome at build time. Chrome | 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 | 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, | 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 | 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 | 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 | 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 | 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 | 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. | 20 # script at build time of Chrome. See crosbug.com/16961 for details. |
| 21 # | 21 # |
| 22 # The order of the list is important. In Chrome's "Languages and Input" options | 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 | 23 # page, we list input methods in this order, when more than one input methods |
| 24 # are available for a language (ex. French). | 24 # are available for a language (ex. French). |
| 25 # | 25 # |
| 26 # Each non-comment line contains the following tab-separated columns. | 26 # Each non-comment line contains the following tab-separated columns. |
| 27 # | 27 # |
| 28 # 1) The input method ID used by IBus. (ex. "xkb:ca::fra") You should *NEVER* | 28 # 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 | 29 # 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:" | 30 # 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 | 31 # 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. | 32 # codes that are currently in use in the 3rd column. |
| 33 # 2) The keyboard layout ID used by XKB. (ex. "us", "us(dvorak)", "ca", | 33 # 2) The keyboard layout ID used by XKB. (ex. "us", "us(dvorak)", "ca", |
| 34 # "handwriting-vk,jp"). See also: /usr/share/X11/xkb/symbols. | 34 # "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- | 35 # 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 | 36 # 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", | 37 # 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"). | 38 # 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. | 39 # See http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for details. |
| 40 # 4) [optional] The #if condition for the input method. | 40 # 4) [optional] The #if condition for the input method. |
| 41 # (ex. "defined(A)", "!defined(A)||defined(B)") | 41 # (ex. "defined(A)", "!defined(A)||defined(B)") |
| 42 # | 42 # |
| 43 # Notes: | 43 # Notes: |
| 44 # When adding a line to this list, please also add a mapping from the input | 44 # 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 | 45 # method ID to the keyboard overlay ID to INPUT_METHOD_ID_TO_OVERLAY_ID in |
| 46 # | 46 # |
| 47 # * tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py | 47 # * tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py |
| 48 # | 48 # |
| 49 # and update the following files by running this script. | 49 # and update the following files by running this script. |
| 50 # | 50 # |
| 51 # * chrome/app/generated_resources.grd | 51 # * chrome/app/generated_resources.grd |
| 52 # * chrome/browser/chromeos/input_method/xkeyboard.cc | 52 # * chrome/browser/chromeos/input_method/xkeyboard_data.h |
| 53 # * chrome/browser/resources/keyboard_overlay_data.js | 53 # * chrome/browser/resources/keyboard_overlay_data.js |
| 54 # * chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc | 54 # * chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc |
| 55 | 55 |
| 56 # U.S. English | 56 # U.S. English |
| 57 xkb:us::eng us en-US | 57 xkb:us::eng us en-US |
| 58 xkb:us:intl:eng us(intl) en-US !defined(USE_VIRTUAL_KEYBOARD) | 58 xkb:us:intl:eng us(intl) en-US !defined(USE_VIRTUAL_KEYBOARD) |
| 59 xkb:us:altgr-intl:eng us(altgr-intl) en-US !defined(USE_VIRTUAL_KEYBOARD) | 59 xkb:us:altgr-intl:eng us(altgr-intl) en-US !defined(USE_VIRTUAL_KEYBOARD) |
| 60 xkb:us:dvorak:eng us(dvorak) en-US !defined(USE_VIRTUAL_KEYBOARD) | 60 xkb:us:dvorak:eng us(dvorak) en-US !defined(USE_VIRTUAL_KEYBOARD) |
| 61 xkb:us:colemak:eng us(colemak) en-US !defined(USE_VIRTUAL_KEYBOARD) | 61 xkb:us:colemak:eng us(colemak) en-US !defined(USE_VIRTUAL_KEYBOARD) |
| 62 english-m us en-US !defined(USE_VIRTUAL_KEYBOARD) | 62 english-m us en-US !defined(USE_VIRTUAL_KEYBOARD) |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 xkb:pt::por pt pt-PT !defined(USE_VIRTUAL_KEYBOARD) | 200 xkb:pt::por pt pt-PT !defined(USE_VIRTUAL_KEYBOARD) |
| 201 xkb:ro::rum ro ro !defined(USE_VIRTUAL_KEYBOARD) | 201 xkb:ro::rum ro ro !defined(USE_VIRTUAL_KEYBOARD) |
| 202 xkb:se::swe se sv !defined(USE_VIRTUAL_KEYBOARD) | 202 xkb:se::swe se sv !defined(USE_VIRTUAL_KEYBOARD) |
| 203 xkb:sk::slo sk sk !defined(USE_VIRTUAL_KEYBOARD) | 203 xkb:sk::slo sk sk !defined(USE_VIRTUAL_KEYBOARD) |
| 204 xkb:si::slv si sl !defined(USE_VIRTUAL_KEYBOARD) | 204 xkb:si::slv si sl !defined(USE_VIRTUAL_KEYBOARD) |
| 205 xkb:rs::srp rs sr !defined(USE_VIRTUAL_KEYBOARD) | 205 xkb:rs::srp rs sr !defined(USE_VIRTUAL_KEYBOARD) |
| 206 xkb:tr::tur tr tr !defined(USE_VIRTUAL_KEYBOARD) | 206 xkb:tr::tur tr tr !defined(USE_VIRTUAL_KEYBOARD) |
| 207 xkb:ua::ukr ua uk !defined(USE_VIRTUAL_KEYBOARD) | 207 xkb:ua::ukr ua uk !defined(USE_VIRTUAL_KEYBOARD) |
| 208 # TODO(yusukes): Support xkb:latam:deadtilde:spa and/or xkb:latam:nodeadkeys:spa | 208 # TODO(yusukes): Support xkb:latam:deadtilde:spa and/or xkb:latam:nodeadkeys:spa |
| 209 # if necessary. | 209 # if necessary. |
| OLD | NEW |