keymap_latvian.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /* Copyright 2020
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "keymap.h"
  18. // clang-format off
  19. /*
  20. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  21. * │ ` │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ - │ = │ │
  22. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  23. * │ │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ [ │ ] │ │
  24. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  25. * │ │ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │ \ │ │
  26. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  27. * │ │ \ │ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │ │
  28. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  29. * │ │ │ │ │ │ │ │ │
  30. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  31. */
  32. // Row 1
  33. #define LV_GRV KC_GRV // `
  34. #define LV_1 KC_1 // 1
  35. #define LV_2 KC_2 // 2
  36. #define LV_3 KC_3 // 3
  37. #define LV_4 KC_4 // 4
  38. #define LV_5 KC_5 // 5
  39. #define LV_6 KC_6 // 6
  40. #define LV_7 KC_7 // 7
  41. #define LV_8 KC_8 // 8
  42. #define LV_9 KC_9 // 9
  43. #define LV_0 KC_0 // 0
  44. #define LV_MINS KC_MINS // -
  45. #define LV_EQL KC_EQL // =
  46. // Row 2
  47. #define LV_Q KC_Q // Q
  48. #define LV_W KC_W // W
  49. #define LV_E KC_E // E
  50. #define LV_R KC_R // R
  51. #define LV_T KC_T // T
  52. #define LV_Y KC_Y // Y
  53. #define LV_U KC_U // U
  54. #define LV_I KC_I // I
  55. #define LV_O KC_O // O
  56. #define LV_P KC_P // P
  57. #define LV_LBRC KC_LBRC // [
  58. #define LV_RBRC KC_RBRC // ]
  59. // Row 3
  60. #define LV_A KC_A // A
  61. #define LV_S KC_S // S
  62. #define LV_D KC_D // D
  63. #define LV_F KC_F // F
  64. #define LV_G KC_G // G
  65. #define LV_H KC_H // H
  66. #define LV_J KC_J // J
  67. #define LV_K KC_K // K
  68. #define LV_L KC_L // L
  69. #define LV_SCLN KC_SCLN // ;
  70. #define LV_QUOT KC_QUOT // ' (dead)
  71. #define LV_BSLS KC_NUHS // (backslash)
  72. // Row 4
  73. #define LV_NUBS KC_NUBS // (backslash)
  74. #define LV_Z KC_Z // Z
  75. #define LV_X KC_X // X
  76. #define LV_C KC_C // C
  77. #define LV_V KC_V // V
  78. #define LV_B KC_B // B
  79. #define LV_N KC_N // N
  80. #define LV_M KC_M // M
  81. #define LV_COMM KC_COMM // ,
  82. #define LV_DOT KC_DOT // .
  83. #define LV_SLSH KC_SLSH // /
  84. /* Shifted symbols
  85. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  86. * │ ~ │ ! │ @ │ # │ $ │ % │ ^ │ & │ * │ ( │ ) │ _ │ + │ │
  87. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  88. * │ │ │ │ │ │ │ │ │ │ │ │ { │ } │ │
  89. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  90. * │ │ │ │ │ │ │ │ │ │ │ : │ " │ | │ │
  91. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  92. * │ │ │ │ │ │ │ │ │ │ < │ > │ ? │ │
  93. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  94. * │ │ │ │ │ │ │ │ │
  95. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  96. */
  97. // Row 1
  98. #define LV_TILD S(LV_GRV) // ~
  99. #define LV_EXLM S(LV_1) // !
  100. #define LV_AT S(LV_2) // @
  101. #define LV_HASH S(LV_3) // #
  102. #define LV_DLR S(LV_4) // $
  103. #define LV_PERC S(LV_5) // %
  104. #define LV_CIRC S(LV_6) // ^
  105. #define LV_AMPR S(LV_7) // &
  106. #define LV_ASTR S(LV_8) // *
  107. #define LV_LPRN S(LV_9) // (
  108. #define LV_RPRN S(LV_0) // )
  109. #define LV_UNDS S(LV_MINS) // _
  110. #define LV_PLUS S(LV_EQL) // +
  111. // Row 2
  112. #define LV_LCBR S(LV_LBRC) // {
  113. #define LV_RCBR S(LV_RBRC) // }
  114. // Row 3
  115. #define LV_COLN S(LV_SCLN) // :
  116. #define LV_DQUO S(LV_QUOT) // " (dead)
  117. #define LV_PIPE S(LV_BSLS) // |
  118. // Row 4
  119. #define LV_LABK S(LV_COMM) // <
  120. #define LV_RABK S(LV_DOT) // >
  121. #define LV_QUES S(LV_SLSH) // ?
  122. /* AltGr symbols
  123. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  124. * │ - │ │ « │ » │ € │ │ ’ │ │ │ │ │ – │ │ │
  125. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  126. * │ │ │ │ Ē │ Ŗ │ │ │ Ū │ Ī │ Ō │ │ │ │ │
  127. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  128. * │ │ Ā │ Š │ │ │ Ģ │ │ │ Ķ │ Ļ │ │ ´ │ │ │
  129. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  130. * │ │ │ Ž │ │ Č │ │ │ Ņ │ │ │ │ │ │
  131. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  132. * │ │ │ │ │ │ │ │ │
  133. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  134. */
  135. // Row 1
  136. #define LV_SHYP ALGR(LV_GRV) // ­ (soft hyphen)
  137. #define LV_NBSP ALGR(LV_1) //   (non-breaking space)
  138. #define LV_LDAQ ALGR(LV_2) // «
  139. #define LV_RDAQ ALGR(LV_3) // »
  140. #define LV_EURO ALGR(LV_4) // €
  141. #define LV_RSQU ALGR(LV_6) // ’
  142. #define LV_NDSH ALGR(LV_MINS) // –
  143. // Row 2
  144. #define LV_EMAC ALGR(LV_E) // Ē
  145. #define LV_RCED ALGR(LV_R) // Ŗ
  146. #define LV_UMAC ALGR(LV_U) // Ū
  147. #define LV_IMAC ALGR(LV_I) // Ī
  148. #define LV_OMAC ALGR(LV_O) // Ō
  149. // Row 3
  150. #define LV_AMAC ALGR(LV_A) // Ā
  151. #define LV_SCAR ALGR(LV_S) // Š
  152. #define LV_GCED ALGR(LV_G) // Ģ
  153. #define LV_KCED ALGR(LV_K) // Ķ
  154. #define LV_LCED ALGR(LV_L) // Ļ
  155. #define LV_ACUT ALGR(LV_QUOT) // ´ (dead)
  156. // Row 4
  157. #define LV_ZCAR ALGR(LV_Z) // Ž
  158. #define LV_CCAR ALGR(LV_C) // Č
  159. #define LV_NCED ALGR(LV_N) // Ņ
  160. /* Shift+AltGr symbols
  161. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  162. * │ │ │ │ │ § │ ° │ │ ± │ × │ │ │ — │ │ │
  163. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  164. * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
  165. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┐ │
  166. * │ │ │ │ │ │ │ │ │ │ │ │ ¨ │ │ │
  167. * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┴────┤
  168. * │ │ │ │ │ │ │ │ │ │ │ │ │ │
  169. * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬────┬────┤
  170. * │ │ │ │ │ │ │ │ │
  171. * └────┴────┴────┴────────────────────────┴────┴────┴────┴────┘
  172. */
  173. // Row 1
  174. #define LV_SECT S(ALGR(LV_4)) // §
  175. #define LV_DEG S(ALGR(LV_5)) // °
  176. #define LV_PLMN S(ALGR(LV_7)) // ±
  177. #define LV_MUL S(ALGR(LV_8)) // ×
  178. #define LV_MDSH S(ALGR(LV_MINS)) // —
  179. // Row 3
  180. #define LV_DIAE S(ALGR(LV_QUOT)) // ¨ (dead)