You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

139 lines
6.5 KiB

  1. /* Copyright 2016 h-youhei
  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. * JP106-layout (Japanese Standard)
  17. *
  18. * For more information, see
  19. * http://www2d.biglobe.ne.jp/~msyk/keyboard/layout/usbkeycode.html
  20. * note: This website is written in Japanese.
  21. */
  22. #pragma once
  23. #include "keymap.h"
  24. // clang-format off
  25. /*
  26. *
  27. * ZH 1 2 3 4 5 6 7 8 9 0 - ^ ¥
  28. *
  29. * Q W E R T Y U I O P @ [
  30. *
  31. * Eisū A S D F G H J K L ; : ]
  32. *
  33. * Z X C V B N M , . / \
  34. *
  35. * Muhen Hen KH
  36. *
  37. */
  38. // Row 1
  39. #define JP_ZKHK KC_GRV // Zenkaku ↔︎ Hankaku ↔ Kanji (半角 ↔ 全角 ↔ 漢字)
  40. #define JP_1 KC_1 // 1
  41. #define JP_2 KC_2 // 2
  42. #define JP_3 KC_3 // 3
  43. #define JP_4 KC_4 // 4
  44. #define JP_5 KC_5 // 5
  45. #define JP_6 KC_6 // 6
  46. #define JP_7 KC_7 // 7
  47. #define JP_8 KC_8 // 8
  48. #define JP_9 KC_9 // 9
  49. #define JP_0 KC_0 // 0
  50. #define JP_MINS KC_MINS // -
  51. #define JP_CIRC KC_EQL // ^
  52. #define JP_YEN KC_INT3 // ¥
  53. // Row 2
  54. #define JP_Q KC_Q // Q
  55. #define JP_W KC_W // W
  56. #define JP_E KC_E // E
  57. #define JP_R KC_R // R
  58. #define JP_T KC_T // T
  59. #define JP_Y KC_Y // Y
  60. #define JP_U KC_U // U
  61. #define JP_I KC_I // I
  62. #define JP_O KC_O // O
  63. #define JP_P KC_P // P
  64. #define JP_AT KC_LBRC // @
  65. #define JP_LBRC KC_RBRC // [
  66. // Row 3
  67. #define JP_EISU KC_CAPS // Eisū (英数)
  68. #define JP_A KC_A // A
  69. #define JP_S KC_S // S
  70. #define JP_D KC_D // D
  71. #define JP_F KC_F // F
  72. #define JP_G KC_G // G
  73. #define JP_H KC_H // H
  74. #define JP_J KC_J // J
  75. #define JP_K KC_K // K
  76. #define JP_L KC_L // L
  77. #define JP_SCLN KC_SCLN // ;
  78. #define JP_COLN KC_QUOT // :
  79. #define JP_RBRC KC_NUHS // ]
  80. // Row 4
  81. #define JP_Z KC_Z // Z
  82. #define JP_X KC_X // X
  83. #define JP_C KC_C // C
  84. #define JP_V KC_V // V
  85. #define JP_B KC_B // B
  86. #define JP_N KC_N // N
  87. #define JP_M KC_M // M
  88. #define JP_COMM KC_COMM // ,
  89. #define JP_DOT KC_DOT // .
  90. #define JP_SLSH KC_SLSH // /
  91. #define JP_BSLS KC_INT1 // (backslash)
  92. // Row 5
  93. #define JP_MHEN KC_INT5 // Muhenkan (無変換)
  94. #define JP_HENK KC_INT4 // Henkan (変換)
  95. #define JP_KANA KC_INT2 // Katakana ↔ Hiragana ↔ Rōmaji (カタカナ ↔ ひらがな ↔ ローマ字)
  96. /* Shifted symbols
  97. *
  98. * ! " │ # │ $ │ % │ & │ ' │ ( │ ) │ │ = │ ~ │ | │ │
  99. *
  100. * ` {
  101. *
  102. * Caps + * }
  103. *
  104. * < > ? _
  105. *
  106. *
  107. *
  108. */
  109. // Row 1
  110. #define JP_EXLM S(JP_1) // !
  111. #define JP_DQUO S(JP_2) // "
  112. #define JP_HASH S(JP_3) // #
  113. #define JP_DLR S(JP_4) // $
  114. #define JP_PERC S(JP_5) // %
  115. #define JP_AMPR S(JP_6) // &
  116. #define JP_QUOT S(JP_7) // '
  117. #define JP_LPRN S(JP_8) // (
  118. #define JP_RPRN S(JP_9) // )
  119. #define JP_EQL S(JP_MINS) // =
  120. #define JP_TILD S(JP_CIRC) // ~
  121. #define JP_PIPE S(JP_YEN) // |
  122. // Row 2
  123. #define JP_GRV S(JP_AT) // `
  124. #define JP_LCBR S(JP_LBRC) // {
  125. // Row 3
  126. #define JP_CAPS S(JP_EISU) // Caps Lock
  127. #define JP_PLUS S(JP_SCLN) // +
  128. #define JP_ASTR S(JP_COLN) // *
  129. #define JP_RCBR S(JP_RBRC) // }
  130. // Row 4
  131. #define JP_LABK S(JP_COMM) // <
  132. #define JP_RABK S(JP_DOT) // >
  133. #define JP_QUES S(JP_SLSH) // ?
  134. #define JP_UNDS S(JP_BSLS) // _