1 /* Copyright 2016 h-youhei
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.
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.
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/>.
16 * JP106-layout (Japanese Standard)
18 * For more information, see
19 * http://www2d.biglobe.ne.jp/~msyk/keyboard/layout/usbkeycode.html
20 * note: This website is written in Japanese.
31 #define JP_ZHTG KC_GRV // hankaku/zenkaku|kanzi
32 #define JP_YEN KC_INT3 // yen, |
33 #define JP_CIRC KC_EQL // ^, ~
34 #define JP_AT KC_LBRC // @, `
35 #define JP_LBRC KC_RBRC // [, {
36 #define JP_COLN KC_QUOT // :, *
37 #define JP_RBRC KC_NUHS // ], }
38 #define JP_BSLS KC_INT1 // \, _
39 #define JP_MHEN KC_INT5 // muhenkan
40 #define JP_HENK KC_INT4 // henkan
41 #define JP_KANA KC_INT2 // katakana/hiragana|ro-mazi
44 //Aliases for shifted symbols
45 #define JP_DQT LSFT(KC_2) // "
46 #define JP_AMPR LSFT(KC_6) // &
47 #define JP_QUOT LSFT(KC_7) // '
48 #define JP_LPRN LSFT(KC_8) // (
49 #define JP_RPRN LSFT(KC_9) // )
50 #define JP_EQL LSFT(KC_MINS) // =
51 #define JP_TILD LSFT(JP_CIRC) // ~
52 #define JP_PIPE LSFT(JP_YEN) // |
53 #define JP_GRV LSFT(JP_AT) // `
54 #define JP_LCBR LSFT(JP_LBRC) // {
55 #define JP_PLUS LSFT(KC_SCLN) // +
56 #define JP_ASTR LSFT(JP_COLN) // *
57 #define JP_RCBR LSFT(JP_RBRC) // }
58 #define JP_UNDS LSFT(JP_BSLS) // _
61 // These symbols are correspond to US101-layout.
62 #define JP_MINS KC_MINS // -
63 #define JP_SCLN KC_SCLN // ;
64 #define JP_COMM KC_COMM // ,
65 #define JP_DOT KC_DOT // .
66 #define JP_SLSH KC_SLSH // /
68 #define JP_EXLM KC_EXLM // !
69 #define JP_HASH KC_HASH // #
70 #define JP_DLR KC_DLR // $
71 #define JP_PERC KC_PERC // %
72 #define JP_LT KC_LT // <
73 #define JP_GT KC_GT // >
74 #define JP_QUES KC_QUES // ?