• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# The list of keyboard layouts that we support. The keyboard layout metadata is
2# also defined here.
3#
4# Each non-comment line contains the following tab-or-space-separated columns.
5#
6# 1) The input method ID used by Chrome. (ex. "xkb:ca::fra") You should *NEVER*
7#    change the ID since the ID might be written in user's ~/Preferences. For
8#    example, three-letter ISO 639-2/B codes are used for IDs start with "xkb:"
9#    for histrical reason, but we should not replace them with two-letter 639-1
10#    codes that are currently in use in the 3rd column.
11# 2) The keyboard layout ID used by XKB. (ex. "us", "us(dvorak)", "ca",
12#    "handwriting-vk,jp"). See also: /usr/share/X11/xkb/symbols.
13# 3) The language code (ex. "fr"). Only one format, ISO 639-1 compliant two-
14#    letter language code which can be recognized by ICU, is allowed. Do not use
15#    three-letter ones (ISO 639-2/T and 639-2/B) here. For "en", "pt", and "zh",
16#    two-letter upper-case country code should be added (ex. "en-US", "zh-TW").
17#    See http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for details.
18#    We can specify multiple language code with comma separator.
19# 4) The indicator string (ex. INTL for xkb:us:intl:eng). This string will be
20#    shown in system tray or indicator window.
21# 5) The additional attibution.
22#    login: Specified keyboard layout will be used on login screen or lock
23#    screen.
24#
25# Notes:
26#   When adding a line to this list, please also add a mapping from the input
27#   method ID to the keyboard overlay ID to INPUT_METHOD_ID_TO_OVERLAY_ID in
28#
29#    * tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py
30#
31#   and update the following files by running this script.
32#
33#    * chrome/app/generated_resources.grd
34#    * chrome/browser/resources/chromeos/keyboard_overlay_data.js
35#    * chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc
36#
37#   If you add an XKB layout which depends on AltGr or X11's Mod3Mask
38#   (e.g. Germany Neo2 XKB layout), you should also update kAltGrLayoutIds or
39#   kMod3LayoutIds in
40#   chrome/browser/chromeos/input_method/input_method_manager_impl.cc
41#   Otherwise, Mod3Mask might be removed unexpectedly by the rewriter, and
42#   sticky keys will not work.
43#
44
45# U.S. English
46xkb:us::eng           us             en,en-US,en-AU,en-NZ US   login
47xkb:us:intl:eng       us(intl)       en,en-US             INTL login
48xkb:us:altgr-intl:eng us(altgr-intl) en,en-US             EXTD login
49xkb:us:dvorak:eng     us(dvorak)     en,en-US             DV   login
50xkb:us:colemak:eng    us(colemak)    en,en-US             CO   login
51xkb:us:intl:nld       us(intl)       nl                   INTL login
52xkb:us:intl:por       us(intl)       pt-BR                INTL login
53xkb:us::ind           us             id                   US   login
54xkb:us::fil           us             fil                  US   login
55xkb:us::msa           us             ms                   US   login
56
57# U.S. English entiries have to be above the Dutch entry so that xkb:us:intl:eng
58# will be selected as the default keyboard when the UI language is set to Dutch.
59
60# Dutch
61xkb:be::nld  be nl BE login
62# We don't support xkb:nl::nld. See b/4430951.
63
64# French
65xkb:fr::fra       fr         fr,fr-FR FR login
66xkb:be::fra       be         fr       BE login
67xkb:ca::fra       ca         fr,fr-CA CA login
68xkb:ch:fr:fra     ch(fr)     fr,fr-CH CH login
69xkb:ca:multix:fra ca(multix) fr,fr-CA CA login
70
71# German
72xkb:de::ger     de      de,de-DE DE  login
73xkb:de:neo:ger  de(neo) de,de-DE NEO login
74xkb:be::ger     be      de       BE  login
75xkb:ch::ger     ch      de,de-CH CH  login
76
77# Japanese
78# |kMozcJaInputMethodIds| in ibus_ui_controller.cc should also be updated when
79# a new Mozc Japanese IME for another keyboard layout is added.
80xkb:jp::jpn  jp ja JA login
81
82# Russian
83xkb:ru::rus          ru           ru RU
84xkb:ru:phonetic:rus  ru(phonetic) ru RU
85
86# Keyboard layouts.
87xkb:br::por           br             pt-BR,pt  BR login
88xkb:bg::bul           bg             bg        BG
89xkb:bg:phonetic:bul   bg(phonetic)   bg        BG
90xkb:ca:eng:eng        ca(eng)        en,en-CA  CA login
91xkb:cz::cze           cz             cs        CZ login
92xkb:cz:qwerty:cze     cz(qwerty)     cs        CS login
93xkb:ee::est           ee             et        EE login
94xkb:es::spa           es             es        ES login
95xkb:es:cat:cat        es(cat)        ca        CAS login
96xkb:dk::dan           dk             da        DK login
97xkb:gr::gre           gr             el        GR
98xkb:il::heb           il             he        IL
99xkb:latam::spa        latam          es,es-419 LA login
100xkb:lt::lit           lt             lt        LT login
101xkb:lv:apostrophe:lav lv(apostrophe) lv        LV login
102xkb:hr::scr           hr             hr        HR login
103xkb:gb:extd:eng       gb(extd)       en,en-GB  GB login
104xkb:gb:dvorak:eng     gb(dvorak)     en,en-GB  DV login
105xkb:fi::fin           fi             fi        FI login
106xkb:hu::hun           hu             hu        HU login
107xkb:it::ita           it             it,it-IT  IT login
108xkb:is::ice           is             is        IS login
109xkb:no::nob           no             nb,nn,no  NO login
110xkb:pl::pol           pl             pl        PL login
111xkb:pt::por           pt             pt-PT,pt  PT login
112xkb:ro::rum           ro             ro        RO login
113xkb:se::swe           se             sv        SE login
114xkb:sk::slo           sk             sk        SK
115xkb:si::slv           si             sl        SI login
116xkb:rs::srp           rs             sr        RS
117xkb:tr::tur           tr             tr        TR login
118xkb:ua::ukr           ua             uk        UA
119xkb:by::bel           by             be        BY
120xkb:am:phonetic:arm   am             hy        AM
121xkb:ge::geo           ge             ka        GE
122xkb:mn::mon           mn             mn        MN
123xkb:ie::ga            ie             ga        GA login
124
125# TODO(yusukes): Support xkb:latam:deadtilde:spa and/or xkb:latam:nodeadkeys:spa
126# if necessary.
127