wip
This commit is contained in:
parent
328d2be585
commit
e62db09f12
2 changed files with 57 additions and 4 deletions
|
@ -27,7 +27,7 @@
|
|||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<svg class="keycaps" display="none">
|
||||
<svg class="keyboard" width="100%" height="auto" viewBox="0 0 22.5 8" preserveAspectRatio="xMidYMid meet">
|
||||
<defs>
|
||||
<polygon points="-0.44,-0.44 0.44,-0.44 0.44,0.44 -0.44,0.44" id="default"></polygon>
|
||||
<polygon points="-0.565,-0.44 0.565,-0.44 0.565,0.44 -0.565,0.44" id="oneandaquarter"></polygon>
|
||||
|
@ -40,8 +40,6 @@
|
|||
<polygon points="-0.69,-0.44 0.69,-0.44 0.69,1.44 -0.44,1.44 -0.44,0.44 -0.69,0.44" id="enter"></polygon>
|
||||
<polygon points="-3.19,-0.44 3.19,-0.44 3.19,0.44 -3.19,0.44" id="space65"></polygon>
|
||||
</defs>
|
||||
</svg>
|
||||
<svg class="keyboard" width="100%" height="auto" viewBox="0 0 22.5 8" preserveAspectRatio="xMidYMid meet">
|
||||
<g transform="translate(.5, 0)">
|
||||
<g transform="translate(0, .5)">
|
||||
<g transform="translate(0, 0)">
|
||||
|
@ -204,7 +202,7 @@
|
|||
<g transform="translate(0, 2.75)">
|
||||
<g transform="translate(0.25, 0)">
|
||||
<use class="key" href="#oneandhalf"></use>
|
||||
<text class="keycap_text">^</text>
|
||||
<text class="keycap_text">↹</text>
|
||||
</g>
|
||||
<g transform="translate(1.5, 0)">
|
||||
<use class="key" href="#default"></use>
|
||||
|
|
55
experiments/keyboard/keyboard.rb
Normal file
55
experiments/keyboard/keyboard.rb
Normal file
|
@ -0,0 +1,55 @@
|
|||
keycaps = {
|
||||
's1': {
|
||||
width: 1,
|
||||
},
|
||||
'h1': {
|
||||
width: 1,
|
||||
points: '-0.44,-0.44 0.44,-0.44 0.44,0.44 -0.44,0.44',
|
||||
},
|
||||
'h1.25': {
|
||||
width: 1.25,
|
||||
points: '-0.565,-0.44 0.565,-0.44 0.565,0.44 -0.565,0.44',
|
||||
},
|
||||
'h1.5': {
|
||||
width: 1.5,
|
||||
points: '-0.69,-0.44 0.69,-0.44 0.69,0.44 -0.69,0.44',
|
||||
},
|
||||
'h1.75': {
|
||||
width: 1.75,
|
||||
points: '-0.815,-0.44 0.815,-0.44 0.815,0.44 -0.815,0.44',
|
||||
},
|
||||
'h2': {
|
||||
width: 2,
|
||||
points: '-0.94,-0.44 0.94,-0.44 0.94,0.44 -0.94,0.44',
|
||||
},
|
||||
'h2.5': {
|
||||
width: 2.5,
|
||||
points: '-1.19,-0.44 1.19,-0.44 1.19,0.44 -1.19,0.44',
|
||||
},
|
||||
'h2.75': {
|
||||
width: 2.75,
|
||||
points: '-1.315,-0.44 1.315,-0.44 1.315,0.44 -1.315,0.44',
|
||||
},
|
||||
'h6.5': {
|
||||
width: 6.5,
|
||||
points: '-3.19,-0.44 3.19,-0.44 3.19,0.44 -3.19,0.44',
|
||||
},
|
||||
'v2': {
|
||||
width: 1,
|
||||
points: '-0.44,-0.44 0.44,-0.44 0.44,1.44 -0.44,1.44',
|
||||
},
|
||||
'enter_iso': {
|
||||
width: 1.5,
|
||||
points: '-0.69,-0.44 0.69,-0.44 0.69,1.44 -0.44,1.44 -0.44,0.44 -0.69,0.44',
|
||||
},
|
||||
}
|
||||
|
||||
keyboard = {
|
||||
0 => 'ESC :1 F1 F2 F3 F4 :.5 F5 F6 F7 F8 :.5 F9 F10 F11 F12 :.25 PNT ROL PAU',
|
||||
1.75 => 'CARET 1 2 3 4 5 6 7 8 9 0 ß ´ BACKSPACE:h2 :.25 INS HOM PUP :.25 NUM / * -',
|
||||
2.75 => 'TAB:h1.5 Q W E R T Z U I O P Ü + ENTER:enter_iso :.25 DEL END PDN :.25 7 8 9 +:v2',
|
||||
3.75 => 'CAPS:h1.75 A S D F G H J K L Ö Ä # :.25 :1 :1 : 1 :.25 4 5 6',
|
||||
4.75 => 'SHIFT:h1.25 < Y X C V B N M , . - SHIFT:h2.5 :.25 :1 ARU :1 :.25 1 2 3 ENTER:v2',
|
||||
5.75 => 'CTL:h1.25 SUP:h1.25 ALT:h1.25 SPACE:h6.5 AGR:h1.25 SUP:h1.25 MENU CTL:h1.25 :.25 ARL ARD ARR :.25 0:h2 DEL'
|
||||
}
|
||||
|
Loading…
Reference in a new issue