keyboard: recombine translations in include syntax
Append {key} descriptions to {def} classes to prevent partial declarations
and simplify maintenance. Distinct translations did not materialise as
expected, and can still be implemented in another way.
Undoes the painstaking separation in commit
v1.3-0-g2034c72e12 (2010-06-18)
[overhaul keyboard module include syntax], already rejoined in commit
v1.10-46-g4c43bcbed6 (2017-07-17) [move key definitions into translation
includes], now basically completely reverted by some dumb labour helped by
this vim macro:
:%s/=> '=\([^']\+\)',/=> \\'\1',/ " replace aliases
:let @a="^mo\"eyi'[{^\"uyi'gg/\\V'\<C-r>u\<C-r>e'\<CR>4lf \"iy$dd'o4lf a[\ef,\"ipi]\ej"
" └(1)└(2) └(3) └(4) └──────────────┘ └(5) └(6) └─────────┘
(1): Original position before {key} declaration
(2): e = single-quoted character
(3): u = key character(s) from containing hash (lead)
(4): find topmost lead+key match for corresponding {def}
(5): i = definition value, then delete definition line
(6): wrap Original key in array and add def value