| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 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 |
| 11 --cc: Rewrites a part of C++ code in | 11 --cc: Rewrites a part of C++ code in |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 if options.grd: | 557 if options.grd: |
| 558 OutputGrd(hotkey_data, options.outdir) | 558 OutputGrd(hotkey_data, options.outdir) |
| 559 if options.cc: | 559 if options.cc: |
| 560 OutputCC(hotkey_data, options.outdir) | 560 OutputCC(hotkey_data, options.outdir) |
| 561 if options.altgr: | 561 if options.altgr: |
| 562 OutputAltGr(keyboard_glyph_data, options.outdir) | 562 OutputAltGr(keyboard_glyph_data, options.outdir) |
| 563 | 563 |
| 564 | 564 |
| 565 if __name__ == '__main__': | 565 if __name__ == '__main__': |
| 566 main() | 566 main() |
| OLD | NEW |