summaryrefslogtreecommitdiffstats
path: root/tools/gen_keyboard_overlay_data
Commit message (Collapse)AuthorAgeFilesLines
* Update gen_keyboard_overlay.py according to the change of the grd file.mazda@chromium.org2012-10-101-7/+6
| | | | | | | | | | BUG=142381 TEST=Check the script works properly Review URL: https://chromiumcodereview.appspot.com/11066082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161014 0039d316-1c4b-4281-b951-d872f2087c98
* Tweak the keyboard overlay data and script so that the generated data can be ↵mazda@chromium.org2012-10-081-0/+4
| | | | | | | | | | | | | | | used as-is. - Correct inconsistent message string ID names - Make the message for 'Show wrench menu' not to be generated. BUG=None TEST=Manually check keyboard overlay shows correct shortcut descriptions Review URL: https://chromiumcodereview.appspot.com/11070003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@160675 0039d316-1c4b-4281-b951-d872f2087c98
* F4 behavior was change to maximize (from fullscreen). The label text needs ↵sschmitz@chromium.org2012-09-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | to be changed, too. Note from mazda@ keyboard_overlay_data.js is generated by tools/gen_keyboard_overaly_data/gen_keyboard_overlay_data.py Necessary changes are: 1. Replace 'full screen' with 'maximize' in gen_keyboard_overlay_data.py 2. Replace 'full screen' with 'maximize' in keyboard_overlay.js 3. Regenerate keyboard_overlay_data.js by running gen_keyboard_overlay_data.py However, currently step 3 does not work properly because of some manual changes of data. In this case, I think it's OK just to replace all 'full screen' with 'maximize' in keyboard_overlay_data.js. The key descriptions on the top row of keyboard overlay are currently not translated (might be better to translate though). See also crbug.com/145402. BUG=150785 TEST=Bring up keyboard overlay and observer label for "F4" Review URL: https://chromiumcodereview.appspot.com/10946043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@158084 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the part of generating xkeyboard_data.h from ↵mazda@chromium.org2012-07-261-69/+5
| | | | | | | | | | | | | | gen_keyboard_overlay_data.py. xkeyboard_data.h is no longer necessary. BUG=None TEST=The scripts runs as before Review URL: https://chromiumcodereview.appspot.com/10823020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148501 0039d316-1c4b-4281-b951-d872f2087c98
* Use single quotes instead of double quotes for the keyboard overlay data to ↵mazda@chromium.org2012-04-211-0/+2
| | | | | | | | | | | avoid lint warnings. BUG=none TEST=No lint warnigs reported. Review URL: http://codereview.chromium.org/10167011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133316 0039d316-1c4b-4281-b951-d872f2087c98
* Change the description for the window switch key to "switch window" on the ↵mazda@chromium.org2012-03-201-1/+1
| | | | | | | | | | | | keyboard overlay. BUG=chromium-os:25949 TEST=Manual Review URL: http://codereview.chromium.org/9716034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127646 0039d316-1c4b-4281-b951-d872f2087c98
* Change KeyboardOverlayDialog button text from "maximize" to "next window".jennyz@chromium.org2012-02-031-1/+1
| | | | | | | | | | BUG=110071 TEST=KeyboardOverlay Dialog button "maximize" becomes "next window". Review URL: http://codereview.chromium.org/9323036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120380 0039d316-1c4b-4281-b951-d872f2087c98
* Separate the generated date from xkeyboard.cc for ease of udpate.mazda@chromium.org2012-01-261-26/+44
| | | | | | | | | | | Currently we need to be careful not to delete the start and the end marker lines so that gen_keyboard_overlay_data.py work properly. This change move the generated part of xkeyboard.cc to a different file in order to make it easy to update the data and xkeyboard.cc. BUG=None TEST=unit_tests --gtest_filter="XKeyboardTest.*" passes Review URL: http://codereview.chromium.org/9289044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119293 0039d316-1c4b-4281-b951-d872f2087c98
* Improve gen_keyboard_overlay_data.py.mazda@chromium.org2011-12-161-3/+7
| | | | | | | | | | | | | | | Changed the script as follows. - Change the default output directory of the JS file. - Mention application specific password explicitly - Print warning if the file does not exist in the output destination. BUG=None TEST=Manual Review URL: http://codereview.chromium.org/8937025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114767 0039d316-1c4b-4281-b951-d872f2087c98
* Fix python scripts in src/tools/maruel@chromium.org2011-11-291-1/+1
| | | | | | | | | | | | | | | | | | Make sure that: - shebang is only present for executable files - shebang is #!/usr/bin/env python - __main__ is only present for executable files - file's executable bit is coherent Also fix EOF LF to be only one. TBR=timurrrr@chromium.org BUG=105108 TEST= Review URL: http://codereview.chromium.org/8678023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111960 0039d316-1c4b-4281-b951-d872f2087c98
* Enable gen_keyboard_overlay_data.py to output detailed description for grd ↵mazda@chromium.org2011-07-251-9/+21
| | | | | | | | | | | | | | | messages. I added a 'Description for translaction' column to the source spreadsheet and used the data for generating the detailed description for grd messages. BUG=chromium-os:17152 TEST=Ran the script and checked it generated correct code. Review URL: http://codereview.chromium.org/7491037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93889 0039d316-1c4b-4281-b951-d872f2087c98
* Sort input method IDs in xkeyboard.cc.mazda@chromium.org2011-07-251-1/+0
| | | | | | | | | | | | Also remove a redundant empty line in the script. BUG=none TEST=Checked the list generated by script equals to the manually sorted list. Review URL: http://codereview.chromium.org/7489037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93850 0039d316-1c4b-4281-b951-d872f2087c98
* Fix gen_keyboard_overlay_data.py not outputting AltGr.mazda@chromium.org2011-07-211-3/+3
| | | | | | | | | | | | Also modify the script to output the sorted lists of input method ID. BUG=none TEST=Checked the script generated correct output. Review URL: http://codereview.chromium.org/7471030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93356 0039d316-1c4b-4281-b951-d872f2087c98
* Activate ibus-mozc-hangul and replace from ibus-hangul.yusukes@google.com2011-07-211-1/+1
| | | | | | | | | | | | BUG=chromium-os:15192 TEST=manually done Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=93310 Review URL: http://codereview.chromium.org/7433004 Patch from Seigo Nonaka <nona@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93341 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Activate ibus-mozc-hangul and replace from ibus-hangul."yusukes@google.com2011-07-211-1/+1
| | | | | | | | | | | | This reverts commit a1aa3f9da8a333098a96c19193c4298a0c9fdd41. BUG=None TEST=None TBR=nona@chromium.org Review URL: http://codereview.chromium.org/7472023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93311 0039d316-1c4b-4281-b951-d872f2087c98
* Activate ibus-mozc-hangul and replace from ibus-hangul.yusukes@google.com2011-07-211-1/+1
| | | | | | | | | | BUG=chromium-os:15192 TEST=manually done Review URL: http://codereview.chromium.org/7433004 Patch from Seigo Nonaka <nona@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93310 0039d316-1c4b-4281-b951-d872f2087c98
* Remove keyboard overlay ID from C++ code.mazda@chromium.org2011-07-151-16/+82
| | | | | | | | | | | | | | | | | | | | | | | Originally the mapping from input method ID to keyboard overlay ID was written in ibus_input_methods.txt. I moved this to gen_keyboard_overlay_data.py and made the deta be generated in keyboard_overlay_data.js. I also modified gen_keyboard_overlay_data.py to generate a list of input method IDs that shouldn't remap the right alt key in xkeyboard.cc instead of a list of keyboard overlay IDs. These changes make the two functions related to keyboard overlay ID in input_method_util.{h,cc} unnecessary. I also deleted keyboard overlay data for en_fr_hybrid_CA, ar_fr, id and fil, which was unused. BUG=chromium-os:17592 TEST=Ran unit_tests and manually tested on the chromebook Review URL: http://codereview.chromium.org/7370001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92687 0039d316-1c4b-4281-b951-d872f2087c98
* Make consistent about "caps lock" vs. "capslock" with former.yoshiki@chromium.org2011-07-141-3/+3
| | | | | | | | | BUG=chromium-os:17371 TEST=tryserver Review URL: http://codereview.chromium.org/7346010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92513 0039d316-1c4b-4281-b951-d872f2087c98
* Modify gen_keyboard_overlay_data.py to rewrite the related files.mazda@chromium.org2011-06-301-39/+88
| | | | | | | | | | BUG=none TEST=Ran the script and confirmed that it worked properly. Review URL: http://codereview.chromium.org/7282004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91138 0039d316-1c4b-4281-b951-d872f2087c98
* Minor fixes of gen_keyboard_overlay_data.pymazda@chromium.org2011-06-281-2/+2
| | | | | | | | | | | | | Changed "switch window" to "maximize" according to the resent change. Add a line break at the end of the generated js file. BUG=none TEST=Ran the script and confirmed it worked Review URL: http://codereview.chromium.org/7273027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90778 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up the keyboard overlay code.mazda@chromium.org2011-06-211-17/+9
| | | | | | | | | | | | | - Sort the entries in .cc and .grd files. - Change the way of mapping the i18n-content string to the message ID. BUG=none TEST=manually checked on chromebook Review URL: http://codereview.chromium.org/7189032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89799 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Revert "Remove duplicate entries from the keyboard overlay code.""mazda@chromium.org2011-06-171-2/+14
| | | | | | | | | | | | | | Fixed gen_keyboard_overlay_data.py in order not to generate duplicated entries in cc and grd files and using it to create this patch. This reverts commit 8f5c2e9ed0cd58b1106f60de012a1eaba03d33bd. BUG=none TEST=Built chrome with the generated data. Review URL: http://codereview.chromium.org/7189010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89450 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Remove duplicate entries from the keyboard overlay code."mazda@chromium.org2011-06-161-14/+2
| | | | | | | | This reverts commit bc655f7f6df0801b2d65dd905d06ae0aa6604cd2. TBR=hashimoto@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89313 0039d316-1c4b-4281-b951-d872f2087c98
* Remove duplicate entries from the keyboard overlay code.mazda@chromium.org2011-06-161-2/+14
| | | | | | | | | | | | Fixed gen_keyboard_overlay_data.py in order not to generate duplicated entries in cc and grd files and using it to create this patch. BUG=none TEST=Built chrome with the generated data. Review URL: http://codereview.chromium.org/7191006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89305 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the keyboard generation script to check for any remapping of the right ↵zork@chromium.org2011-05-191-4/+7
| | | | | | | | | | | | alt key. BUG=chromium-os:15469 TEST=Manual Review URL: http://codereview.chromium.org/7043002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85875 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the bug of the keyboard overlay not showing shortcut descriptions on the ↵mazda@chromium.org2011-05-111-0/+3
| | | | | | | | | | | | space key. BUG=chromium-os:14965 TEST=manual Review URL: http://codereview.chromium.org/6999010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84952 0039d316-1c4b-4281-b951-d872f2087c98
* Modify gen_keyboard_overlay.py to add indentations to the generated cc file.mazda@chromium.org2011-05-111-1/+6
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6998007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84914 0039d316-1c4b-4281-b951-d872f2087c98
* Convert labels on the spreadsheet in the Python script rather than in ↵mazda@chromium.org2011-04-201-2/+34
| | | | | | | | | | | | | | JavaScript. I also removed unused data in the keyboard overlay data corresponding to notes, position and key columns. BUG=chromium-os:14286 TEST=manually on Chrome notebook Review URL: http://codereview.chromium.org/6879034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82255 0039d316-1c4b-4281-b951-d872f2087c98
* Add UK-Dvorak keyboard layout supportmazda@chromium.org2011-04-141-3/+3
| | | | | | | | | | | | | Add UK-Dvorak keyboard layout to input setting menu. Add overlay keyboard display for UK-Dvorak layout BUG=chromium-os:13664 TEST=The layout can be selected from setting menu and seems to work fine Review URL: http://codereview.chromium.org/6852019 Patch from Ryo Hashimoto <hashimoto@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81565 0039d316-1c4b-4281-b951-d872f2087c98
* Don't remap capslock to search when the current keyboard layout uses it.zork@chromium.org2011-04-141-3/+21
| | | | | | | | | | BUG=chromium-os:12349 TEST=Set the layout to German Neo 2. Check that the search key is always a modifier key, even when remapped. Review URL: http://codereview.chromium.org/6849015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81559 0039d316-1c4b-4281-b951-d872f2087c98
* Remap right alt and control keys when the left keys are remapped.zork@chromium.org2011-04-141-2/+3
| | | | | | | | | | | | | The right alt key will not be remapped if it's used as altgr BUG=chromium-os:10091 TEST=Remap the alt or ctrl key. Check that the right key is remapped. Review URL: http://codereview.chromium.org/6836009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81547 0039d316-1c4b-4281-b951-d872f2087c98
* Update the overlay generation script to support outputting a list of layoutszork@chromium.org2011-04-131-4/+35
| | | | | | | | | | | | | that use altgr BUG=chromium-os:10091 TEST=Run gen_keyboard_overlay_data.py --altgr, and check that it outputs a list of layout names. Review URL: http://codereview.chromium.org/6835012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81371 0039d316-1c4b-4281-b951-d872f2087c98
* Change the separator of the keyboard overlay data to allow labels containing ↵mazda@chromium.org2011-03-301-20/+9
| | | | | | | | | | | spaces. BUG=chromium-os:13047 TEST=manually on the netbook Review URL: http://codereview.chromium.org/6708107 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79794 0039d316-1c4b-4281-b951-d872f2087c98
* Change gen_keyboard_overlay_data.js to generate the power key as a ↵mazda@chromium.org2011-03-281-2/+4
| | | | | | | | | | | highlithed key in the base state. BUG=none TEST=Ran gen_keyboard_overlay_data.js and checked the generated data. Review URL: http://codereview.chromium.org/6724030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79527 0039d316-1c4b-4281-b951-d872f2087c98
* WebUI: Fix the remaining references to dom_ui. Final Patch.tfarina@chromium.org2011-02-231-1/+1
| | | | | | | | | BUG=59945, 59946 TEST=trybots Review URL: http://codereview.chromium.org/6555001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75716 0039d316-1c4b-4281-b951-d872f2087c98
* Add a script to generate data for Keyboard Overlay.mazda@chromium.org2011-02-231-0/+352
BUG=chromium-os:6268 TEST=Ran the script and manually checked correct data is output Review URL: http://codereview.chromium.org/6519044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75715 0039d316-1c4b-4281-b951-d872f2087c98