OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Generate keyboard layout and hotkey data for the keyboard overlay. | 6 """Generate keyboard layout and hotkey data for the keyboard overlay. |
7 | 7 |
8 This script fetches data from the keyboard layout and hotkey data spreadsheet, | 8 This script fetches data from the keyboard layout and hotkey data spreadsheet, |
9 and output the data depending on the option. | 9 and output the data depending on the option. |
10 | 10 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 'xkb:ua::ukr': 'uk', | 128 'xkb:ua::ukr': 'uk', |
129 'xkb:us::eng': 'en_US', | 129 'xkb:us::eng': 'en_US', |
130 'xkb:us::fil': 'en_US', | 130 'xkb:us::fil': 'en_US', |
131 'xkb:us::ind': 'en_US', | 131 'xkb:us::ind': 'en_US', |
132 'xkb:us::msa': 'en_US', | 132 'xkb:us::msa': 'en_US', |
133 'xkb:us:altgr-intl:eng': 'en_US_altgr_intl', | 133 'xkb:us:altgr-intl:eng': 'en_US_altgr_intl', |
134 'xkb:us:colemak:eng': 'en_US_colemak', | 134 'xkb:us:colemak:eng': 'en_US_colemak', |
135 'xkb:us:dvorak:eng': 'en_US_dvorak', | 135 'xkb:us:dvorak:eng': 'en_US_dvorak', |
136 'xkb:us:intl:eng': 'en_US_intl', | 136 'xkb:us:intl:eng': 'en_US_intl', |
137 'xkb:us:intl:nld': 'en_US_intl', | 137 'xkb:us:intl:nld': 'en_US_intl', |
138 'xkb:us:intl:por': 'en_US_intl' | 138 'xkb:us:intl:por': 'en_US_intl', |
| 139 'xkb:us:workman:eng': 'en_US_workman', |
| 140 'xkb:us:workman-intl:eng': 'en_US_workman_intl', |
139 } | 141 } |
140 | 142 |
141 # The file was first generated in 2012 and we have a policy of not updating | 143 # The file was first generated in 2012 and we have a policy of not updating |
142 # copyright dates. | 144 # copyright dates. |
143 COPYRIGHT_HEADER=\ | 145 COPYRIGHT_HEADER=\ |
144 """// Copyright (c) 2012 The Chromium Authors. All rights reserved. | 146 """// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
145 // Use of this source code is governed by a BSD-style license that can be | 147 // Use of this source code is governed by a BSD-style license that can be |
146 // found in the LICENSE file. | 148 // found in the LICENSE file. |
147 | 149 |
148 // This is a generated file but may contain local modifications. See | 150 // This is a generated file but may contain local modifications. See |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 OutputJson(keyboard_glyph_data, hotkey_data, layouts, 'keyboardOverlayData', | 506 OutputJson(keyboard_glyph_data, hotkey_data, layouts, 'keyboardOverlayData', |
505 options.outdir) | 507 options.outdir) |
506 if options.grd: | 508 if options.grd: |
507 OutputGrd(hotkey_data, options.outdir) | 509 OutputGrd(hotkey_data, options.outdir) |
508 if options.cc: | 510 if options.cc: |
509 OutputCC(hotkey_data, options.outdir) | 511 OutputCC(hotkey_data, options.outdir) |
510 | 512 |
511 | 513 |
512 if __name__ == '__main__': | 514 if __name__ == '__main__': |
513 main() | 515 main() |
OLD | NEW |