You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Ian Prest 64e610327e Deleting AWS stuff we don't need anymore 9 years ago
bg Optimized file size of background images 9 years ago
font-src Added 'NN' to the SP ABS palette. 11 years ago
fonts Now managing third-party components with Bower 9 years ago
js Now managing third-party components with Bower 9 years ago
samples Moved radii field inline with other background fields 9 years ago
spec Fix CSS parser to handle at-rules with nested blocks 9 years ago
tests Updated unit-tests with new screenshots of smaller keyboard area 9 years ago
.gitignore Deleting AWS stuff we don't need anymore 9 years ago
CHANGELOG.md Bumped version to v0.14; updated CHANGELOG 9 years ago
CONTRIB.md Cleaned up CONTRIB & README 9 years ago
LICENSE.md Split readme into several files; added LICENSE.md 9 years ago
Makefile Basic GitHub login via OAuth 9 years ago
README.md Cleaned up CONTRIB & README 9 years ago
backgrounds.json Rejiggered the background-image dropdown & data 9 years ago
bower.json Basic GitHub login via OAuth 9 years ago
colors.json Added YBX color to "Signature Plastics / PBT" palette 9 years ago
cssparser.y Fix CSS parser to handle at-rules with nested blocks 9 years ago
deploy.bat Updated deployment script for 'bg' folder 9 years ago
extensions.js Merge remote-tracking branch 'origin/master' into fully-generic-legends 9 years ago
favicon.ico Added Favicon 9 years ago
jsonl.grammar.js Made JSON-L parser even more lenient 9 years ago
kb.css Rejiggered the background-image dropdown & data 9 years ago
kb.html Fix some IE rendering issues 9 years ago
kb.js Rudimentary validation of 'radii' to frustrate sneaky users 9 years ago
kb.sublime-project Wrote my own CSS parser + unit-tests 9 years ago
keys.json Added a center-stepped key to the "add key" menu. 11 years ago
layouts.json Merge branch 'backgrounds' of git://github.com/iandoug/keyboard-layout-editor into iandoug-backgrounds 9 years ago
nub.png Major refactoring of the keycap rendering to HTML 9 years ago
oauth.html Added second GitHub client ID for local development 9 years ago
pickers.json Removed redundant 'desc' field from character-picker data. 9 years ago
render.js Parse user-defined glyphs in CSS 9 years ago
serial.js Tweaked serialization to omit background completely when removed 9 years ago

README.md

keyboard-layout-editor

Keyboard-layout-editor.com is a web application that enables the editing of keyboard-layouts, i.e., the position and appearance of each physical key.

The motivation for creating this application was a custom keyboard I was designing. I wanted to be able to experiment quickly with different possible layouts and visualize them easily. The existing graphics tools were capable enough, but cumbersome to use for this specific task.

As I sank further into the keyboard-enthusiast scene, I became aware of custom keycap sets that were being created by and for other enthusiasts. The ability to specify various details of the visual-appearance of the keycaps is an attempt to render these custom keycap sets as accurately as possible (within the constraints of HTML/CSS).

Getting Started for Developers

Want to play around with the source? Install the tools, clone the repository, then build / test.

Required Tools:

Installing prerequisite components (once):

  • make install

Build:

  • make

Test:

  • webdriver-manager update
  • webdriver-manager start
  • make test

Notes:

  • You can use any HTTP server for local development; I'm using an ancient version of Mongoose, but whatever you've got handy should work.
  • However, if you want to be able to log in to GitHub via OAuth (without hacking up the code and registering your own OAuth application), you will need to put the server at: http://localhost:8080/