[keymap] Add tiny text, full width characters to Ergodone->Vega (#17427)

This commit is contained in:
Vega Deftwing 2022-07-02 08:08:18 -05:00 committed by GitHub
parent d66b5db1d6
commit e25879e836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,9 @@
// Copyright 2021 Vega Carlson (@VegaDeftwing)
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
enum layer_names {
BASE,
GREL,
GREU,
SYMB,
MATH,
QWER,
FNLR
};
enum layer_names { BASE, GREL, GREU, SYMB, MATH, QWER, FNLR, TINY, FULL, FULU };
enum unicode_names {
// MATH
@ -22,7 +17,8 @@ enum unicode_names {
nexists, //∄
forall, //∀
and, //∧
or, //
or
, //
xor, //⊕
apeql, //≅
root, //√
@ -61,7 +57,6 @@ enum unicode_names {
mdot,
rang,
lshade,
mshade,
dshade,
@ -207,6 +202,122 @@ enum unicode_names {
Gb, // B:: Β
Gn, // N:: Ν
Gm, // M:: Μ
// ᵃ ᵇ ᶜ ᵈ ᵉ ᶠ ᵍ ʰ ⁱ ʲ ᵏ ˡ ᵐ ⁿ ᵒ ᵖ ʳ ˢ ᵗ ᵘ ᵛ ʷ ˣ ʸ ᶻ ⁰ ¹ ² ³ ⁴ ⁵ ⁶ ⁷ ⁸ ⁹
tone, // 1:: ¹
ttwo, // 2:: ²
tthree, // 3:: ³
tfour, // 4:: ⁴
tfive, // 5:: ⁵
tsix, // 6:: ⁶
tseven, // 7:: ⁷
teight, // 8:: ⁸
tnine, // 9:: ⁹
tzero, // 0 :: ⁰
tq, // Q:: ۹
tw, // W:: ʷ
te, // E:: ᵉ
tr, // R:: ʳ
tt, // T:: ᵗ
ty, // Y:: ʸ
tu, // U:: ᵘ
ti, // I:: ⁱ
to, // O:: ᵒ
tp, // P:: ᵖ
ta, // A:: ᵃ
ts, // S:: ˢ
td, // D:: ᵈ
tf, // F:: ᶠ
tg, // G:: ᵍ
th, // H:: ʰ
tj, // J:: ʲ
tk, // K:: ᵏ
tl, // L:: ˡ
tz, // Z:: ᶻ
tx, // X:: ˣ
tc, // C:: ᶜ
tv, // V:: ᵛ
tb, // B:: ᵇ
tn, // N:: ⁿ
tm, // M:: ᵐ
// Fullwitdth - note, these are *not* the monospace unicode code points.
// This is done to prevent something eating it and using a weird font, which,
// presumably, isn't desired if doing this.
fwone, // 1::
fwtwo, // 2::
fwthree, // 3::
fwfour, // 4::
fwfive, // 5::
fwsix, // 6::
fwseven, // 7::
fweight, // 8::
fwnine, // 9::
fwzero, // 0 ::
fwq, // Q::
fww, // W::
fwe, // E::
fwr, // R::
fwt, // T::
fwy, // Y::
fwu, // U::
fwi, // I::
fwo, // O::
fwp, // P::
fwa, // A::
fws, // S::
fwd, // D::
fwf, // F::
fwg, // G::
fwh, // H::
fwj, // J::
fwk, // K::
fwl, // L::
fwz, // Z::
fwx, // X::
fwc, // C::
fwv, // V::
fwb, // B::
fwn, // N::
fwm, // M::
// Full width caps + fractions, and a few extra symbols that lack a better place
Fwone, // 1:: ¼
Fwtwo, // 2:: ½
Fwthree, // 3:: ¾
Fwfour, // 4:: ⅓
Fwfive, // 5:: ⅔
Fwsix, // 6:: ⅕
Fwseven, // 7:: ⅛
Fweight, // 8:: 𝒳
Fwnine, // 9:: 𝒴
Fwzero, // 0 :: 𝒵
Fwq, // Q::
Fww, // W::
Fwe, // E::
Fwr, // R::
Fwt, // T::
Fwy, // Y::
Fwu, // U::
Fwi, // I::
Fwo, // O::
Fwp, // P::
Fwa, // A::
Fws, // S::
Fwd, // D::
Fwf, // F::
Fwg, // G::
Fwh, // H::
Fwj, // J::
Fwk, // K::
Fwl, // L::
Fwz, // Z::
Fwx, // X::
Fwc, // C::
Fwv, // V::
Fwb, // B::
Fwn, // N::
Fwm, // M::
nbsp, // You know what this is  
ibang, //‽
nullpic, // Null picture - ␀
};
const uint32_t PROGMEM unicode_map[] = {
@ -259,7 +370,6 @@ const uint32_t PROGMEM unicode_map[] = {
[mdot] = 0x00B7, //·
[rang] = 0x299C, //⦜
[lshade] = 0x2591, //░
[mshade] = 0x2592, //▒
[dshade] = 0x2593, //▓
@ -404,10 +514,123 @@ const uint32_t PROGMEM unicode_map[] = {
[Gb] = 0x0392, // B:: Β
[Gn] = 0x039D, // N:: Ν
[Gm] = 0x039C, // M:: Μ
[tone] = 0x00B9, // 1:: ¹
[ttwo] = 0x00B2, // 2:: ²
[tthree] = 0x00B3, // 3:: ³
[tfour] = 0x2074, // 4:: ⁴
[tfive] = 0x2075, // 5:: ⁵
[tsix] = 0x2076, // 6:: ⁶
[tseven] = 0x2077, // 7:: ⁷
[teight] = 0x2078, // 8:: ⁸
[tnine] = 0x2079, // 9:: ⁹
[tzero] = 0x2070, // 0 :: ⁰
[tq] = 0x06F9, // Q:: ۹ - superscript q doesn't exist.
[tw] = 0x02B7, // W:: ʷ
[te] = 0x1D49, // E:: ᵉ
[tr] = 0x02B3, // R:: ʳ
[tt] = 0x1D57, // T:: ᵗ
[ty] = 0x02B8, // Y:: ʸ
[tu] = 0x1D58, // U:: ᵘ
[ti] = 0x2071, // I:: ⁱ
[to] = 0x1D52, // O:: ᵒ
[tp] = 0x1D56, // P:: ᵖ
[ta] = 0x1D43, // A:: ᵃ
[ts] = 0x02E2, // S:: ˢ
[td] = 0x1D48, // D:: ᵈ
[tf] = 0x1DA0, // F:: ᶠ
[tg] = 0x1D4D, // G:: ᵍ
[th] = 0x02B0, // H:: ʰ
[tj] = 0x02B2, // J:: ʲ
[tk] = 0x1D4F, // K:: ᵏ
[tl] = 0x02E1, // L:: ˡ
[tz] = 0x1DBB, // Z:: ᶻ
[tx] = 0x02E3, // X:: ˣ
[tc] = 0x1D9C, // C:: ᶜ
[tv] = 0x1D5B, // V:: ᵛ
[tb] = 0x1D47, // B:: ᵇ
[tn] = 0x207F, // N:: ⁿ
[tm] = 0x1D50, // M:: ᵐ
[fwone] = 0xFF11, // 1::
[fwtwo] = 0xFF12, // 2::
[fwthree] = 0xFF13, // 3::
[fwfour] = 0xFF14, // 4::
[fwfive] = 0xFF15, // 5::
[fwsix] = 0xFF16, // 6::
[fwseven] = 0xFF17, // 7::
[fweight] = 0xFF18, // 8::
[fwnine] = 0xFF19, // 9::
[fwzero] = 0xFF10, // 0 ::
[fwq] = 0xFF51, // Q::
[fww] = 0xFF57, // W::
[fwe] = 0xFF45, // E::
[fwr] = 0xFF52, // R::
[fwt] = 0xFF54, // T::
[fwy] = 0xFF59, // Y::
[fwu] = 0xFF55, // U::
[fwi] = 0xFF49, // I::
[fwo] = 0xFF4F, // O::
[fwp] = 0xFF50, // P::
[fwa] = 0xFF41, // A::
[fws] = 0xFF53, // S::
[fwd] = 0xFF44, // D::
[fwf] = 0xFF46, // F::
[fwg] = 0xFF47, // G::
[fwh] = 0xFF48, // H::
[fwj] = 0xFF4A, // J::
[fwk] = 0xFF4B, // K::
[fwl] = 0xFF4C, // L::
[fwz] = 0xFF5A, // Z::
[fwx] = 0xFF58, // X::
[fwc] = 0xFF43, // C::
[fwv] = 0xFF56, // V::
[fwb] = 0xFF42, // B::
[fwn] = 0xFF4E, // N::
[fwm] = 0xFF4D, // M::
// Full width caps + fractions, and a few extra symbols that lack a better place
[Fwone] = 0x00BC, // 1:: ¼
[Fwtwo] = 0x00BD, // 2:: ½
[Fwthree] = 0x00BE, // 3:: ¾
[Fwfour] = 0x2153, // 4:: ⅓
[Fwfive] = 0x2154, // 5:: ⅔
[Fwsix] = 0x2155, // 6:: ⅕
[Fwseven] = 0x215B, // 7:: ⅛
[Fweight] = 0x00A0, // 8:: &nbsp
[Fwnine] = 0x203D, // 9:: ibang ‽
[Fwzero] = 0x2400, // 0 :: nullpic ␀
[Fwq] = 0xFF31, // Q::
[Fww] = 0xFF37, // W::
[Fwe] = 0xFF25, // E::
[Fwr] = 0xFF32, // R::
[Fwt] = 0xFF34, // T::
[Fwy] = 0xFF39, // Y::
[Fwu] = 0xFF35, // U::
[Fwi] = 0xFF29, // I::
[Fwo] = 0xFF2F, // O::
[Fwp] = 0xFF30, // P::
[Fwa] = 0xFF21, // A::
[Fws] = 0xFF33, // S::
[Fwd] = 0xFF24, // D::
[Fwf] = 0xFF26, // F::
[Fwg] = 0xFF27, // G::
[Fwh] = 0xFF28, // H::
[Fwj] = 0xFF2A, // J::
[Fwk] = 0xFF2B, // K::
[Fwl] = 0xFF2C, // L::
[Fwz] = 0xFF3A, // Z::
[Fwx] = 0xFF38, // X::
[Fwc] = 0xFF23, // C::
[Fwv] = 0xFF36, // V::
[Fwb] = 0xFF22, // B::
[Fwn] = 0xFF2E, // N::
[Fwm] = 0xFF2D, // M::
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// clang-format off
[BASE] = LAYOUT_ergodox( // layer 0 : default
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_GRV,
KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_BSLS,
@ -428,8 +651,8 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
// left hand
UC_M_LN, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_NO,
UC_M_WC,KC_F11, KC_F12, KC_F13,KC_F14, KC_F15, KC_NO,
KC_NO,KC_F21, KC_F22, KC_F23,KC_F24, KC_NO,
KC_NO,KC_PAUSE,KC_PSCR,KC_SLCK,KC_NO,KC_NO,KC_NO,
TO(TINY),KC_F21, KC_F22, KC_F23,KC_F24, MAGIC_TOGGLE_NKRO,
TO(FULL),KC_PAUSE,KC_PSCR,KC_SLCK,KC_NO,KC_NO,KC_NO,
EEP_RST,TO(BASE),TO(BASE),TO(BASE),TO(BASE),
KC_NO,KC_NO,
KC_NO,
@ -525,6 +748,56 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_END, KC_RBRC, KC_LEFT, KC_RGHT, KC_ENT, KC_SPC
),
[TINY] = LAYOUT_ergodox(
KC_ESC, X(tone), X(ttwo), X(tthree), X(tfour), X(tfive), KC_GRV,
KC_TAB, KC_QUOT, KC_COMM, KC_DOT, X(tp), X(ty), KC_SLSH,
KC_SLSH, X(ta), X(to), X(te), X(tu), X(ti),
KC_TRNS, KC_SCLN, X(tq), X(tj), X(tk), X(tx), KC_AMPR,
KC_MS_L, TO(BASE), TO(BASE), KC_INS, KC_DEL,
KC_LBRC, KC_HOME, KC_UP, KC_SPC, KC_LGUI, KC_DOWN,
TO(BASE), X(tsix), X(tseven), X(teight), X(tnine), X(tzero), KC_BSPC,
KC_PGUP, X(tf), X(tg), X(tc), X(tr), X(tl), KC_EQL,
X(td), X(th), X(tt), X(tn), X(ts), KC_MINS,
KC_PGDN, X(tb), X(tm), X(tw), X(tv), X(tz), KC_TRNS,
KC_RCTL, KC_RALT, KC_APP, TO(BASE), TO(BASE),
KC_END, KC_RBRC, KC_LEFT, KC_RGHT, KC_ENT, KC_SPC
),
[FULL] = LAYOUT_ergodox(
KC_ESC, X(fwone), X(fwtwo), X(fwthree), X(fwfour), X(fwfive), KC_GRV,
KC_TAB, KC_QUOT, KC_COMM, KC_DOT, X(fwp), X(fwy), KC_SLSH,
KC_SLSH, X(fwa), X(fwo), X(fwe), X(fwu), X(fwi),
MO(FULU), KC_SCLN, X(fwq), X(fwj), X(fwk), X(fwx), KC_AMPR,
KC_MS_L, TO(BASE), TO(BASE), KC_INS, KC_DEL,
KC_LBRC, KC_HOME, KC_UP, KC_SPC, KC_LGUI, KC_DOWN,
TO(BASE), X(fwsix), X(fwseven), X(fweight), X(fwnine), X(fwzero), KC_BSPC,
KC_PGUP, X(fwf), X(fwg), X(fwc), X(fwr), X(fwl), KC_EQL,
X(fwd), X(fwh), X(fwt), X(fwn), X(fws), KC_MINS,
KC_PGDN, X(fwb), X(fwm), X(fww), X(fwv), X(fwz), MO(FULU),
KC_RCTL, KC_RALT, KC_APP, TO(BASE), TO(BASE),
KC_END, KC_RBRC, KC_LEFT, KC_RGHT, KC_ENT, KC_SPC
),
[FULU] = LAYOUT_ergodox(
KC_ESC, X(Fwone), X(Fwtwo), X(Fwthree), X(Fwfour), X(Fwfive), KC_GRV,
KC_TAB, KC_QUOT, KC_COMM, KC_DOT, X(Fwp), X(Fwy), KC_SLSH,
KC_SLSH, X(Fwa), X(Fwo), X(Fwe), X(Fwu), X(Fwi),
KC_TRNS, KC_SCLN, X(Fwq), X(Fwj), X(Fwk), X(Fwx), KC_AMPR,
KC_MS_L, TO(BASE), TO(BASE), KC_INS, KC_DEL,
KC_LBRC, KC_HOME, KC_UP, KC_SPC, KC_LGUI, KC_DOWN,
TO(BASE), X(Fwsix), X(Fwseven), X(Fweight), X(Fwnine), X(Fwzero), KC_BSPC,
KC_PGUP, X(Fwf), X(Fwg), X(Fwc), X(Fwr), X(Fwl), KC_EQL,
X(Fwd), X(Fwh), X(Fwt), X(Fwn), X(Fws), KC_MINS,
KC_PGDN, X(Fwb), X(Fwm), X(Fww), X(Fwv), X(Fwz), KC_TRNS,
KC_RCTL, KC_RALT, KC_APP, TO(BASE), TO(BASE),
KC_END, KC_RBRC, KC_LEFT, KC_RGHT, KC_ENT, KC_SPC
),
// clang-format on
};
// Runs just one time when the keyboard initializes.