• 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-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 additional attibution.
20#    no-login: Spcified keyboard layout will not be used on login screen or lock
21#              screen.
22#
23# Notes:
24#   When adding a line to this list, please also add a mapping from the input
25#   method ID to the keyboard overlay ID to INPUT_METHOD_ID_TO_OVERLAY_ID in
26#
27#    * tools/gen_keyboard_overlay_data/gen_keyboard_overlay_data.py
28#
29#   and update the following files by running this script.
30#
31#    * chrome/app/generated_resources.grd
32#    * chrome/browser/resources/chromeos/keyboard_overlay_data.js
33#    * chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc
34#
35#   If you add an XKB layout which depends on X11's Mod3Mask (e.g. Germany Neo2
36#   XKB layout), you should also update IsMod3UsedByCurrentInputMethod() method
37#   in chrome/browser/ui/ash/event_rewriter.cc. Otherwise, Mod3Mask might be
38#   removed unexpectedly by the rewriter.
39#
40
41# U.S. English
42xkb:us::eng	us	en-US,en-AU,id,fil,ms login
43xkb:us:intl:eng	us(intl)	en-US,nl,pt-BR login
44xkb:us:altgr-intl:eng	us(altgr-intl)	en-US login
45xkb:us:dvorak:eng	us(dvorak)	en-US login
46xkb:us:colemak:eng	us(colemak)	en-US login
47# U.S. English entiries have to be above the Dutch entry so that xkb:us:intl:eng
48# will be selected as the default keyboard when the UI language is set to Dutch.
49
50# Dutch
51xkb:be::nld	be	nl login
52# We don't support xkb:nl::nld. See b/4430951.
53
54# French
55xkb:fr::fra	fr	fr login
56xkb:be::fra	be	fr login
57xkb:ca::fra	ca	fr login
58xkb:ch:fr:fra	ch(fr)	fr login
59xkb:ca:multix:fra ca(multix) fr login
60
61# German
62xkb:de::ger	de	de login
63xkb:de:neo:ger	de(neo)	de login
64xkb:be::ger	be	de login
65xkb:ch::ger	ch	de login
66
67# Japanese
68# |kMozcJaInputMethodIds| in ibus_ui_controller.cc should also be updated when
69# a new Mozc Japanese IME for another keyboard layout is added.
70xkb:jp::jpn	jp	ja login
71
72# Russian
73xkb:ru::rus	ru	ru
74xkb:ru:phonetic:rus	ru(phonetic)	ru
75
76# Keyboard layouts.
77xkb:br::por	br	pt-BR login
78xkb:bg::bul	bg	bg
79xkb:bg:phonetic:bul	bg(phonetic)	bg
80xkb:ca:eng:eng	ca(eng)	en-CA login
81xkb:cz::cze	cz	cs login
82xkb:cz:qwerty:cze	cz(qwerty)	cs login
83xkb:ee::est	ee	et login
84xkb:es::spa	es	es login
85xkb:es:cat:cat	es(cat)	ca login
86xkb:dk::dan	dk	da login
87xkb:gr::gre	gr	el
88xkb:il::heb	il	he
89xkb:latam::spa	latam	es,es-419 login
90xkb:lt::lit	lt	lt login
91xkb:lv:apostrophe:lav	lv(apostrophe)	lv login
92xkb:hr::scr	hr	hr login
93xkb:gb:extd:eng	gb(extd)	en-GB login
94xkb:gb:dvorak:eng	gb(dvorak)	en-GB login
95xkb:fi::fin	fi	fi login
96xkb:hu::hun	hu	hu login
97xkb:it::ita	it	it login
98xkb:is::ice	is	is login
99xkb:no::nob	no	nb login
100xkb:pl::pol	pl	pl login
101xkb:pt::por	pt	pt-PT login
102xkb:ro::rum	ro	ro login
103xkb:se::swe	se	sv login
104xkb:sk::slo	sk	sk
105xkb:si::slv	si	sl login
106xkb:rs::srp	rs	sr
107xkb:tr::tur	tr	tr login
108xkb:ua::ukr	ua	uk
109xkb:by::bel	by	be
110xkb:am:phonetic:arm	am	hy
111xkb:ge::geo	ge	ka
112xkb:mn::mon	mn	mn
113# TODO(yusukes): Support xkb:latam:deadtilde:spa and/or xkb:latam:nodeadkeys:spa
114# if necessary.
115