ijprest / keyboard-layout-editor

Web application to enable the design & editing of keyboard layouts
http://www.keyboard-layout-editor.com/
Other
1.3k stars 241 forks source link

"Raw data" allows a format that you can't paste into another service. #221

Closed mhoye closed 6 years ago

mhoye commented 6 years ago

I've discovered that the "raw data" part of k-l-e will recognize

[{x:5},{w:2},"key"]

as being a single key, and display it as intended, but if I paste it into http://builder.swillkb.com/ it comes out broken,on that site, believing I meant two keys, the first of which is of width 1 and has no label.

[{x:5,w:2},"key"]

works correctly and as intended, of course. I think this means {thing},{thing} should probably be considered an error and k-l-e should suggest (and generate!) {thing,thing} instead.

Thank you for k-l-e, though, it's good fun and useful.

iandoug commented 6 years ago

the raw data view is json-lite ... use the Download -> Download JSON to get the proper json version for swill.

iandoug commented 6 years ago

Contrawise, if you're using the QMK firmware generator, you need to use the "lite" version ....

ijprest commented 6 years ago

FWIW, KLE does generate the second version. (If you type the first version, then tweak it in any way using the editor, you'll see that the raw-data has change to the second version).

The first version is still considered valid, though. (I can't comment on what swillkb.com does/doesn't support.)