Skip to content

Commit

Permalink
Transpose KLE JSON to be row-wise
Browse files Browse the repository at this point in the history
This brings the data one step closer to generating from miryoku-babel.

It took quite some fiddling, and KLE will immediately re-align it again
upon import or editing, but at least this is source data which is
simpler to understand and edit raw.

KLE (as one [quickly
discover](https://github.com/ijprest/keyboard-layout-editor/wiki/Serialized-Data-Format))
render a stateful/relative source (in order to reduce redunant parameters
such as "render the next key") into a stateless/absolute result, in
particular complicating the order of rotations and font properties.

WIP: Transpose other KLE diagrams, starting with Base Layer

WIP: Transpose Button layer

WIP: Features layer

WIP: Functions layer

WIP: Add missing AltGr

This corresponds to qmk/qmk_firmware#7426
  • Loading branch information
UncleCJ authored and CJ Sveningsson committed Sep 25, 2022
1 parent c0a8e6a commit 8f9ec7b
Show file tree
Hide file tree
Showing 7 changed files with 494 additions and 719 deletions.
251 changes: 98 additions & 153 deletions data/layers/miryoku-kle-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,202 +15,184 @@
],
[
{
"y": -0.5,
"x": 2,
"a": 7,
"f": 3
"f": 3,
"a": 7
},
"F",
"Q",
{
"x": 6
"y": -0.37
},
"U"
],
[
"W",
{
"y": -0.87,
"x": 1
"y": -0.13
},
"W",
"F",
{
"x": 1
"y": 0.13
},
"P",
{
"x": 4
"y": 0.12
},
"L",
"B",
{
"x": 1
"x": 2
},
"Y"
],
[
"J",
{
"y": -0.8799999999999999,
"x": 4
"y": -0.12
},
"B",
"L",
{
"x": 2
"y": -0.13
},
"J"
],
[
"U",
{
"y": -0.75
"y": 0.13
},
"Q",
"Y",
{
"x": 10,
"a": 5,
"fa": [
2
]
"y": 0.37,
"a": 5
},
"\"\n\n\n\n\n\n'"
],
[
{
"y": -0.5,
"x": 2,
"a": 7,
"f": 3
"a": 7
},
"S\n\n\n\nCtrl",
"A\n\n\n\nSuper",
{
"x": 6,
"f": 3
"y": -0.37
},
"E\n\n\n\nCtrl"
],
[
"R\n\n\n\nAlt",
{
"y": -0.8700000000000001,
"x": 1,
"f": 3
"y": -0.13
},
"R\n\n\n\nAlt",
"S\n\n\n\nCtrl",
{
"x": 1,
"f": 3,
"y": 0.13,
"n": true
},
"T\n\n\n\nShift",
{
"x": 4,
"f": 3,
"n": true
"y": 0.12
},
"N\n\n\n\nShift",
"G",
{
"x": 1,
"f": 3
"x": 2
},
"I\n\n\n\nAlt"
],
[
"M",
{
"y": -0.8799999999999999,
"x": 4,
"f": 3
"y": -0.12,
"n": true
},
"G",
"N\n\n\n\nShift",
{
"x": 2,
"f": 3
"y": -0.13
},
"M"
],
[
"E\n\n\n\nCtrl",
{
"y": -0.75,
"f": 3
"y": 0.13
},
"A\n\n\n\nSuper",
"I\n\n\n\nAlt",
{
"x": 10,
"f": 3
"y": 0.37
},
"O\n\n\n\nSuper"
],
[
"Z\n\n\n\nButton",
{
"y": -0.5,
"x": 2,
"f": 3
"y": -0.37
},
"X\n\n\n\nAltGr",
{
"y": -0.13
},
"C",
{
"x": 6,
"a": 5,
"f": 3
"y": 0.13
},
"<\n\n\n\n\n\n,"
],
[
"D",
{
"y": -0.8700000000000001,
"x": 1,
"a": 7,
"f": 3
"y": 0.12
},
"X\n\n\n\nAltGr",
"V",
{
"x": 1,
"f": 3
"x": 2
},
"D",
"K",
{
"x": 4,
"f": 3
"y": -0.12
},
"H",
{
"x": 1,
"a": 5,
"f": 3
"y": -0.13,
"a": 5
},
"<\n\n\n\n\n\n,",
{
"y": 0.13
},
">\n\n\n\nAltGr\n\n.",
{
"y": 0.37
},
"?\n\n\n\nButton\n\n/"
],
[
{
"y": -0.8799999999999999,
"x": 4,
"a": 7,
"f": 3
"y": -0.34,
"x": 2.5,
"a": 7
},
"V",
"Esc\n\n\n\nMedia"
],
[
{
"x": 2,
"f": 3
"r": 18,
"rx": 3,
"ry": 7.75,
"y": -4.09,
"x": -0.5,
"n": true
},
"K"
"Spc\n\n\n\nNav"
],
[
{
"y": -0.75,
"f": 3
"r": 36,
"y": -1,
"x": -0.5
},
"Z\n\n\n\nButton",
"\n\n\n\nMouse"
],
[
{
"x": 10,
"a": 5,
"f": 3
"r": -36,
"rx": 9,
"y": -4.09,
"x": -0.5
},
"?\n\n\n\nButton\n\n/"
"\n\n\n\nSym"
],
[
{
"y": -0.33999999999999986,
"x": 2.5,
"a": 7,
"f": 3
"r": -18,
"y": -1,
"x": -0.5,
"n": true
},
"Esc\n\n\n\nMedia",
"\n\n\n\nNum"
],
[
{
"x": 5,
"f": 3
"r": 0,
"rx": 0,
"ry": 0,
"x": 8.5,
"y": 3.66
},
"\n\n\n\nFun"
],
Expand Down Expand Up @@ -241,42 +223,5 @@
"d": true
},
"<img src='https://raw.githubusercontent.com/manna-harbour/miryoku/master/data/logos/miryoku-roa-32.png'>"
],
[
{
"r": 18,
"rx": 3,
"ry": 7.75,
"y": -4.09,
"x": -0.5,
"n": true
},
"Spc\n\n\n\nNav"
],
[
{
"r": 36,
"y": -1,
"x": -0.5
},
"\n\n\n\nMouse"
],
[
{
"r": -36,
"rx": 9,
"y": -4.09,
"x": -0.5
},
"\n\n\n\nSym"
],
[
{
"r": -18,
"y": -1,
"x": -0.5,
"n": true
},
"\n\n\n\nNum"
]
]
Loading

0 comments on commit 8f9ec7b

Please sign in to comment.