Add dvorak's spanish variant to quantum/keymap_extras (#8732)
* Added dvorak's spanish variant. * Fixed spacing * Fixed filename typo * Applied fixes and suggestions. * Fixed spacing * Added sendstring_spanish_dvorak.h * Fixed sendstring_spanish.h * Update quantum/keymap_extras/sendstring_spanish_dvorak.h Co-Authored-By: Ryan <fauxpark@gmail.com> * Update quantum/keymap_extras/sendstring_spanish.h Co-Authored-By: Ryan <fauxpark@gmail.com> * Update quantum/keymap_extras/sendstring_spanish_dvorak.h Co-Authored-By: Ryan <fauxpark@gmail.com> Co-authored-by: joseandres42 <joseandres42@Orion-PC.localdomain> Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
parent
cd5399942b
commit
195324cc4c
|
@ -0,0 +1,151 @@
|
|||
/* Copyright 2020 José Andrés García
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "keymap.h"
|
||||
|
||||
/*
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||
* │ º │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ ' │ ¡ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||
* │ │ . │ , │ Ñ │ P │ Y │ F │ G │ C │ H │ L │ ` │ + │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||
* │ │ A │ O │ E │ U │ I │ D │ R │ T │ N │ S │ ' │ Ç │ │
|
||||
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||
* │ │ < │ - │ Q │ J │ K │ X │ B │ M │ W │ V │ Z │ │
|
||||
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||
* │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||
*/
|
||||
// Row 1
|
||||
#define DV_MORD KC_GRV // º
|
||||
#define DV_1 KC_1 // 1
|
||||
#define DV_2 KC_2 // 2
|
||||
#define DV_3 KC_3 // 3
|
||||
#define DV_4 KC_4 // 4
|
||||
#define DV_5 KC_5 // 5
|
||||
#define DV_6 KC_6 // 6
|
||||
#define DV_7 KC_7 // 7
|
||||
#define DV_8 KC_8 // 8
|
||||
#define DV_9 KC_9 // 9
|
||||
#define DV_0 KC_0 // 0
|
||||
#define DV_QUOT KC_MINS // '
|
||||
#define DV_IEXL KC_EQL // ¡
|
||||
// Row 2
|
||||
#define DV_DOT KC_Q // .
|
||||
#define DV_COMM KC_W // ,
|
||||
#define DV_NTIL KC_E // Ñ
|
||||
#define DV_P KC_R // P
|
||||
#define DV_Y KC_T // Y
|
||||
#define DV_F KC_Y // F
|
||||
#define DV_G KC_U // G
|
||||
#define DV_C KC_I // C
|
||||
#define DV_H KC_O // H
|
||||
#define DV_L KC_P // L
|
||||
#define DV_GRV KC_LBRC // ` (dead)
|
||||
#define DV_PLUS KC_RBRC // +
|
||||
// Row 3
|
||||
#define DV_A KC_A // A
|
||||
#define DV_O KC_S // O
|
||||
#define DV_E KC_D // E
|
||||
#define DV_U KC_F // U
|
||||
#define DV_I KC_G // I
|
||||
#define DV_D KC_H // D
|
||||
#define DV_R KC_J // R
|
||||
#define DV_T KC_K // T
|
||||
#define DV_N KC_L // N
|
||||
#define DV_S KC_SCLN // S
|
||||
#define DV_ACUT KC_QUOT // ´ (dead)
|
||||
#define DV_CCED KC_NUHS // Ç
|
||||
// Row 4
|
||||
#define DV_LABK KC_NUBS // <
|
||||
#define DV_MINS KC_Z // -
|
||||
#define DV_Q KC_X // Q
|
||||
#define DV_J KC_C // J
|
||||
#define DV_K KC_V // K
|
||||
#define DV_X KC_B // X
|
||||
#define DV_B KC_N // B
|
||||
#define DV_M KC_M // M
|
||||
#define DV_W KC_COMM // W
|
||||
#define DV_V KC_DOT // V
|
||||
#define DV_Z KC_SLSH // Z
|
||||
|
||||
/* Shifted symbols
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||
* │ ª │ ! │ " │ · │ $ │ % │ & │ / │ ( │ ) │ = │ ? │ ¿ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||
* │ │ : │ ; │ │ │ │ │ │ │ │ │ ^ │ * │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ ¨ │ │ │
|
||||
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||
* │ │ > │ _ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||
* │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||
*/
|
||||
// Row 1
|
||||
#define DV_FORD S(DV_MORD) // ª
|
||||
#define DV_EXLM S(DV_1) // !
|
||||
#define DV_DQUO S(DV_2) // "
|
||||
#define DV_BULT S(DV_3) // ·
|
||||
#define DV_DLR S(DV_4) // $
|
||||
#define DV_PERC S(DV_5) // %
|
||||
#define DV_AMPR S(DV_6) // &
|
||||
#define DV_SLSH S(DV_7) // /
|
||||
#define DV_LPRN S(DV_8) // (
|
||||
#define DV_RPRN S(DV_9) // )
|
||||
#define DV_EQL S(DV_0) // =
|
||||
#define DV_QUES S(DV_QUOT) // ?
|
||||
#define DV_IQUE S(DV_IEXL) // ¿
|
||||
// Row 2
|
||||
#define DV_COLN S(KC_DOT) // :
|
||||
#define DV_SCLN S(KC_COMM) // ;
|
||||
#define DV_CIRC S(DV_GRV) // ^ (dead)
|
||||
#define DV_ASTR S(DV_PLUS) // *
|
||||
// Row 3
|
||||
#define DV_DIAE S(DV_GRV) // ¨ (dead)
|
||||
// Row 4
|
||||
#define DV_RABK S(DV_LABK) // >
|
||||
#define DV_UNDS S(DV_MINS) // _
|
||||
|
||||
/* AltGr symbols
|
||||
* ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
|
||||
* │ \ │ | │ @ │ # │ ~ │ € │ ¬ │ │ │ │ │ │ │ │
|
||||
* ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ [ │ ] │ │
|
||||
* ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ { │ } │ │
|
||||
* ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
|
||||
* │ │ │ │ │ │ │ │ │ │ │ │ │ │
|
||||
* ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
|
||||
* │ │ │ │ │ │ │ │ │
|
||||
* └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
|
||||
*/
|
||||
// Row 1
|
||||
#define DV_BSLS ALGR(DV_MORD) // (backslash)
|
||||
#define DV_PIPE ALGR(DV_1) // |
|
||||
#define DV_AT ALGR(DV_2) // @
|
||||
#define DV_HASH ALGR(DV_3) // #
|
||||
#define DV_TILD ALGR(DV_4) // ~
|
||||
#define DV_EURO ALGR(DV_5) // €
|
||||
#define DV_NOT ALGR(DV_6) // ¬
|
||||
// Row 2
|
||||
#define DV_LBRC ALGR(DV_GRV) // [
|
||||
#define DV_RBRC ALGR(DV_PLUS) // ]
|
||||
// Row 3
|
||||
#define DV_LCBR ALGR(DV_ACUT) // {
|
||||
#define DV_RCBR ALGR(DV_CCED) // }
|
|
@ -96,5 +96,5 @@ const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
|||
// p q r s t u v w
|
||||
ES_P, ES_Q, ES_R, ES_S, ES_T, ES_U, ES_V, ES_W,
|
||||
// x y z { | } ~ DEL
|
||||
ES_X, ES_Y, ES_Z, ES_ACUT, ES_1, ES_CCED, ES_NTIL, KC_DEL
|
||||
ES_X, ES_Y, ES_Z, ES_ACUT, ES_1, ES_CCED, ES_4, KC_DEL
|
||||
};
|
||||
|
|
|
@ -0,0 +1,100 @@
|
|||
/* Copyright 2020 José Andrés García
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// Sendstring lookup tables for Spanish Dvorak layout
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "keymap_spanish_dvorak.h"
|
||||
#include "quantum.h"
|
||||
|
||||
// clang-format off
|
||||
|
||||
const uint8_t ascii_to_shift_lut[16] PROGMEM = {
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
|
||||
KCLUT_ENTRY(0, 1, 1, 0, 1, 1, 1, 0),
|
||||
KCLUT_ENTRY(1, 1, 1, 0, 0, 0, 0, 1),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 1, 1, 0, 1, 1, 1),
|
||||
KCLUT_ENTRY(0, 1, 1, 1, 1, 1, 1, 1),
|
||||
KCLUT_ENTRY(1, 1, 1, 1, 1, 1, 1, 1),
|
||||
KCLUT_ENTRY(1, 1, 1, 1, 1, 1, 1, 1),
|
||||
KCLUT_ENTRY(1, 1, 1, 0, 0, 0, 1, 1),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0)
|
||||
};
|
||||
|
||||
const uint8_t ascii_to_altgr_lut[16] PROGMEM = {
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
|
||||
KCLUT_ENTRY(0, 0, 0, 1, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(1, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 0, 0, 0, 0, 0),
|
||||
KCLUT_ENTRY(0, 0, 0, 1, 1, 1, 1, 0)
|
||||
};
|
||||
|
||||
const uint8_t ascii_to_keycode_lut[128] PROGMEM = {
|
||||
// NUL SOH STX ETX EOT ENQ ACK BEL
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
// BS TAB LF VT FF CR SO SI
|
||||
KC_BSPC, KC_TAB, KC_ENT, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
// DLE DC1 DC2 DC3 DC4 NAK SYN ETB
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
// CAN EM SUB ESC FS GS RS US
|
||||
XXXXXXX, XXXXXXX, XXXXXXX, KC_ESC, XXXXXXX, XXXXXXX, XXXXXXX, XXXXXXX,
|
||||
|
||||
// ! " # $ % & '
|
||||
KC_SPC, DV_1, DV_2, DV_3, DV_4, DV_5, DV_6, DV_QUOT,
|
||||
// ( ) * + , - . /
|
||||
DV_8, DV_9, DV_PLUS, DV_PLUS, DV_COMM, DV_MINS, DV_DOT, DV_7,
|
||||
// 0 1 2 3 4 5 6 7
|
||||
DV_0, DV_1, DV_2, DV_3, DV_4, DV_5, DV_6, DV_7,
|
||||
// 8 9 : ; < = > ?
|
||||
DV_8, DV_9, DV_DOT, DV_COMM, DV_LABK, DV_0, DV_LABK, DV_QUOT,
|
||||
// @ A B C D E F G
|
||||
DV_2, DV_A, DV_B, DV_C, DV_D, DV_E, DV_F, DV_G,
|
||||
// H I J K L M N O
|
||||
DV_H, DV_I, DV_J, DV_K, DV_L, DV_M, DV_N, DV_O,
|
||||
// P Q R S T U V W
|
||||
DV_P, DV_Q, DV_R, DV_S, DV_T, DV_U, DV_V, DV_W,
|
||||
// X Y Z [ \ ] ^ _
|
||||
DV_X, DV_Y, DV_Z, DV_GRV, DV_MORD, DV_PLUS, DV_GRV, DV_MINS,
|
||||
// ` a b c d e f g
|
||||
DV_GRV, DV_A, DV_B, DV_C, DV_D, DV_E, DV_F, DV_G,
|
||||
// h i j k l m n o
|
||||
DV_H, DV_I, DV_J, DV_K, DV_L, DV_M, DV_N, DV_O,
|
||||
// p q r s t u v w
|
||||
DV_P, DV_Q, DV_R, DV_S, DV_T, DV_U, DV_V, DV_W,
|
||||
// x y z { | } ~ DEL
|
||||
DV_X, DV_Y, DV_Z, DV_ACUT, DV_1, DV_CCED, DV_4, KC_DEL
|
||||
};
|
Loading…
Reference in New Issue