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.

77 lines
2.2 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. #ifndef KEYMAP_JP_H
  23. #define KEYMAP_JP_H
  24. #include "keymap.h"
  25. #define JP_ZHTG KC_GRV // hankaku/zenkaku|kanzi
  26. #define JP_YEN KC_INT3 // yen, |
  27. #define JP_CIRC KC_EQL // ^, ~
  28. #define JP_AT KC_LBRC // @, `
  29. #define JP_LBRC KC_RBRC // [, {
  30. #define JP_COLN KC_QUOT // :, *
  31. #define JP_RBRC KC_NUHS // ], }
  32. #define JP_BSLS KC_INT1 // \, _
  33. #define JP_MHEN KC_INT5 // muhenkan
  34. #define JP_HENK KC_INT4 // henkan
  35. #define JP_KANA KC_INT2 // katakana/hiragana|ro-mazi
  36. //Aliases for shifted symbols
  37. #define JP_DQT LSFT(KC_2) // "
  38. #define JP_AMPR LSFT(KC_6) // &
  39. #define JP_QUOT LSFT(KC_7) // '
  40. #define JP_LPRN LSFT(KC_8) // (
  41. #define JP_RPRN LSFT(KC_9) // )
  42. #define JP_EQL LSFT(KC_MINS) // =
  43. #define JP_TILD LSFT(JP_CIRC) // ~
  44. #define JP_PIPE LSFT(JP_YEN) // |
  45. #define JP_GRV LSFT(JP_AT) // `
  46. #define JP_LCBR LSFT(JP_LBRC) // {
  47. #define JP_PLUS LSFT(KC_SCLN) // +
  48. #define JP_ASTR LSFT(JP_COLN) // *
  49. #define JP_RCBR LSFT(JP_RBRC) // }
  50. #define JP_UNDS LSFT(JP_BSLS) // _
  51. // These symbols are correspond to US101-layout.
  52. #define JP_MINS KC_MINS // -
  53. #define JP_SCLN KC_SCLN // ;
  54. #define JP_COMM KC_COMM // ,
  55. #define JP_DOT KC_DOT // .
  56. #define JP_SLSH KC_SLSH // /
  57. // shifted
  58. #define JP_EXLM KC_EXLM // !
  59. #define JP_HASH KC_HASH // #
  60. #define JP_DLR KC_DLR // $
  61. #define JP_PERC KC_PERC // %
  62. #define JP_LT KC_LT // <
  63. #define JP_GT KC_GT // >
  64. #define JP_QUES KC_QUES // ?
  65. #endif