keymap_korean.h 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. * │ │ │ │Hnj│ │H↔Y│ │ │ │ │
  30. * └─────┴───┴─────┴───┴───────────────┴───┴─────┴───┴───┴─────┘
  31. */
  32. // Row 1
  33. #define KR_GRV KC_GRV // `
  34. #define KR_1 KC_1 // 1
  35. #define KR_2 KC_2 // 2
  36. #define KR_3 KC_3 // 3
  37. #define KR_4 KC_4 // 4
  38. #define KR_5 KC_5 // 5
  39. #define KR_6 KC_6 // 6
  40. #define KR_7 KC_7 // 7
  41. #define KR_8 KC_8 // 8
  42. #define KR_9 KC_9 // 9
  43. #define KR_0 KC_0 // 0
  44. #define KR_MINS KC_MINS // -
  45. #define KR_EQL KC_EQL // =
  46. // Row 2
  47. #define KR_Q KC_Q // Q
  48. #define KR_W KC_W // W
  49. #define KR_E KC_E // E
  50. #define KR_R KC_R // R
  51. #define KR_T KC_T // T
  52. #define KR_Y KC_Y // Y
  53. #define KR_U KC_U // U
  54. #define KR_I KC_I // I
  55. #define KR_O KC_O // O
  56. #define KR_P KC_P // P
  57. #define KR_LBRC KC_LBRC // [
  58. #define KR_RBRC KC_RBRC // ]
  59. #define KR_WON KC_BSLS // ₩
  60. // Row 3
  61. #define KR_A KC_A // A
  62. #define KR_S KC_S // S
  63. #define KR_D KC_D // D
  64. #define KR_F KC_F // F
  65. #define KR_G KC_G // G
  66. #define KR_H KC_H // H
  67. #define KR_J KC_J // J
  68. #define KR_K KC_K // K
  69. #define KR_L KC_L // L
  70. #define KR_SCLN KC_SCLN // ;
  71. #define KR_QUOT KC_QUOT // '
  72. // Row 4
  73. #define KR_Z KC_Z // Z
  74. #define KR_X KC_X // X
  75. #define KR_C KC_C // C
  76. #define KR_V KC_V // V
  77. #define KR_B KC_B // B
  78. #define KR_N KC_N // N
  79. #define KR_M KC_M // M
  80. #define KR_COMM KC_COMM // ,
  81. #define KR_DOT KC_DOT // .
  82. #define KR_SLSH KC_SLSH // /
  83. // Row 5
  84. #define KR_HANJ KC_LNG2 // Hanja (한자)
  85. #define KR_HAEN KC_LNG1 // Han ↔ Yeong (한 ↔ 영)
  86. /* Shifted symbols
  87. * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
  88. * │ ~ │ ! │ @ │ # │ $ │ % │ ^ │ & │ * │ ( │ ) │ _ │ + │ │
  89. * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
  90. * │ │ │ │ │ │ │ │ │ │ │ │ { │ } │ | │
  91. * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤
  92. * │ │ │ │ │ │ │ │ │ │ │ : │ " │ │
  93. * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────────┤
  94. * │ │ │ │ │ │ │ │ │ < │ > │ ? │ │
  95. * ├─────┬──┴┬──┴──┬┴──┬┴───┴───┴───┴──┬┴──┬┴───┴┬──┴┬───┬─────┤
  96. * │ │ │ │ │ │ │ │ │ │ │
  97. * └─────┴───┴─────┴───┴───────────────┴───┴─────┴───┴───┴─────┘
  98. */
  99. // Row 1
  100. #define KR_TILD S(KR_GRV) // ~
  101. #define KR_EXLM S(KR_1) // !
  102. #define KR_AT S(KR_2) // @
  103. #define KR_HASH S(KR_3) // #
  104. #define KR_DLR S(KR_4) // $
  105. #define KR_PERC S(KR_5) // %
  106. #define KR_CIRC S(KR_6) // ^
  107. #define KR_AMPR S(KR_7) // &
  108. #define KR_ASTR S(KR_8) // *
  109. #define KR_LPRN S(KR_9) // (
  110. #define KR_RPRN S(KR_0) // )
  111. #define KR_UNDS S(KR_MINS) // _
  112. #define KR_PLUS S(KR_EQL) // +
  113. // Row 2
  114. #define KR_LCBR S(KR_LBRC) // {
  115. #define KR_RCBR S(KR_RBRC) // }
  116. #define KR_PIPE S(KR_WON) // |
  117. // Row 3
  118. #define KR_COLN S(KR_SCLN) // :
  119. #define KR_DQUO S(KR_QUOT) // "
  120. // Row 4
  121. #define KR_LABK S(KR_COMM) // <
  122. #define KR_RABK S(KR_DOT) // >
  123. #define KR_QUES S(KR_SLSH) // ?