Karabiner-Elements14.10.0で動作確認しています。Karabiner-ElementsはMac OS用です。
Karabiner-Elementsはデータ構造でアルゴリズムを記述するため、通常のプログラミング言語とはかなり違います。プログラマーでも理解は難しいでしょう。初心者にはもはや理解不可能です。(LISPの偉大さを思い知ります。)
「筋が悪い」とはいえ、ちゃんとこちらの希望通り動作するのも確かです。
ここではそれほど難しいことをしているわけではありません。ソースコードをよく読めば何をしているのかはわかるでしょう。コードは長いですが、同時押しと2打鍵を定義しているだけです。
Leia配列日本語拡張とは関係ありませんが、通常のローマ字「子音+母音」の同時押しも定義しています。私自身は実際には使っていませんが…。
なお、キー配列(Leia配列)はここでは定義していません。Karabiner-Elementsでキー配列を変更するか、QMK ConfiguratorやVIA、Remapなどで変更しておいてください。
(2022年10月)
{
"title": "LEIA3",
"rules": [
{
"description": "LEIA3 日本語拡張 v3.20",
"manipulators": [
{"_comment": "同時押し:左手撥音=============================="},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "a"},
{"key_code": "v"}
]
},
"to": [
{"key_code": "a","repeat": false},
{"key_code": "n","repeat": false},
{"key_code": "n","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "i"},
{"key_code": "w"}
]
},
"to": [
{"key_code": "i","repeat": false},
{"key_code": "n","repeat": false},
{"key_code": "n","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "u"},
{"key_code": "x"}
]
},
"to": [
{"key_code": "u","repeat": false},
{"key_code": "n","repeat": false},
{"key_code": "n","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "e"},
{"key_code": "w"}
]
},
"to": [
{"key_code": "e","repeat": false},
{"key_code": "n","repeat": false},
{"key_code": "n","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "o"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "o","repeat": false},
{"key_code": "n","repeat": false},
{"key_code": "n","repeat": false}
],
"conditions": [
]
},
{"_comment": "同時押し:左手二重母音=============================="},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "a"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "a","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "o"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "o","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "e"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "e","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "y"},
{"key_code": "o"}
]
},
"to": [
{"key_code": "y","repeat": false},
{"key_code": "o","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "y"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "y","repeat": false},
{"key_code": "u","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{"_comment": "同時押し:左手二重母音==隠し設定====================="},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "a"},
{"key_code": "x"}
]
},
"to": [
{"key_code": "u","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "o"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "o","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "u"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "u","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{"_comment": "同時押し:左手やゆよ、「ye」============================="},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "w"},
{"key_code": "period"}
]
},
"to": [
{"key_code": "y","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "comma"},
{"key_code": "w"}
]
},
"to": [
{"key_code": "y","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "y"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "y","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "comma"},
{"key_code": "period"}
]
},
"to": [
{"key_code": "y","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{"_comment": "「っ」=============================="},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "s"},
{"key_code": "r"}
]
},
"to": [
{"key_code": "x","repeat": false},
{"key_code": "t","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{"_comment": "同時押し:「ん」=「NN」=============================="},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "k"},
{"key_code": "m"}
]
},
"to": [
{"key_code": "n","repeat": false},
{"key_code": "n","repeat": false}
],
"conditions": [
]
},
{"_comment": "同時押し:助詞=============================="},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "g"},
{"key_code": "n"}
]
},
"to": [
{"key_code": "n","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "g"},
{"key_code": "t"}
]
},
"to": [
{"key_code": "g","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "d"},
{"key_code": "t"}
]
},
"to": [
{"key_code": "d","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "d"},
{"key_code": "h"}
]
},
"to": [
{"key_code": "d","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "n"},
{"key_code": "k"}
]
},
"to": [
{"key_code": "n","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "t"},
{"key_code": "s"}
]
},
"to": [
{"key_code": "t","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "h"},
{"key_code": "z"}
]
},
"to": [
{"key_code": "h","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "n"},
{"key_code": "m"}
]
},
"to": [
{"key_code": "m","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "k"},
{"key_code": "t"}
]
},
"to": [
{"key_code": "k","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "w"},
{"key_code": "v"}
]
},
"to": [
{"key_code": "w","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{"_comment": "「コンマまたはピリオド」 + 数字 → 記号キー ※US配列の記号です=============================="},
{
"type": "basic",
"from": { "key_code": "1" },
"to": [
{ "key_code": "semicolon","modifiers": [ "shift" ] }
],
"conditions": [
{ "type": "variable_if", "name": "comma_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "2" },
"to": [
{ "key_code": "9","modifiers": [ "shift" ] }
],
"conditions": [
{ "type": "variable_if", "name": "comma_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "3" },
"to": [
{"key_code": "0","modifiers": [ "shift" ]}
],
"conditions": [
{ "type": "variable_if", "name": "comma_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "4" },
"to": [
{"key_code": "5","modifiers": [ "shift" ]}
],
"conditions": [
{ "type": "variable_if", "name": "comma_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "5" },
"to": [
{"key_code": "1","modifiers": [ "shift" ]}
],
"conditions": [
{ "type": "variable_if", "name": "comma_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "6" },
"to": [
{"key_code": "7","modifiers": [ "shift" ]}
],
"conditions": [
{ "type": "variable_if", "name": "comma_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "7" },
"to": [
{"key_code": "keypad_plus","repeat": false}
],
"conditions": [
{ "type": "variable_if", "name": "comma_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "8" },
"to": [
{"key_code": "keypad_asterisk","repeat": false}
],
"conditions": [
{ "type": "variable_if", "name": "comma_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "9" },
"to": [
{"key_code": "keypad_equal_sign","repeat": false}
],
"conditions": [
{ "type": "variable_if", "name": "comma_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "1" },
"to": [
{"key_code": "semicolon","repeat": false}
],
"conditions": [
{ "type": "variable_if", "name": "period_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "2" },
"to": [
{"key_code": "open_bracket","repeat": false}
],
"conditions": [
{ "type": "variable_if", "name": "period_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "3" },
"to": [
{"key_code": "close_bracket","repeat": false}
],
"conditions": [
{ "type": "variable_if", "name": "period_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "4" },
"to": [
{"key_code": "4","modifiers": [ "shift" ]}
],
"conditions": [
{ "type": "variable_if", "name": "period_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "5" },
"to": [
{"key_code": "slash","modifiers": [ "shift" ]}
],
"conditions": [
{ "type": "variable_if", "name": "period_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "6" },
"to": [
{"key_code": "3","modifiers": [ "shift" ]}
],
"conditions": [
{ "type": "variable_if", "name": "period_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "7" },
"to": [
{"key_code": "keypad_hyphen","repeat": false}
],
"conditions": [
{ "type": "variable_if", "name": "period_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "8" },
"to": [
{"key_code": "keypad_slash","repeat": false}
],
"conditions": [
{ "type": "variable_if", "name": "period_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "9" },
"to": [
{"key_code": "2","modifiers": [ "shift" ]}
],
"conditions": [
{ "type": "variable_if", "name": "period_on", "value": 1 }
]
},
{
"type": "basic",
"from": { "key_code": "comma" },
"to": [
{ "set_variable": { "name": "comma_on", "value": 1 } }
],
"to_if_alone": [
{ "key_code": "comma" }
],
"to_after_key_up": [
{ "set_variable": { "name": "comma_on", "value": 0 } }
],
"conditions": [
{ "type": "variable_if", "name": "comma_on", "value": 0 }
]
},
{
"type": "basic",
"from": { "key_code": "period" },
"to": [
{ "set_variable": { "name": "period_on", "value": 1 } }
],
"to_if_alone": [
{ "key_code": "period" }
],
"to_after_key_up": [
{ "set_variable": { "name": "period_on", "value": 0 } }
],
"conditions": [
{ "type": "variable_if", "name": "period_on", "value": 0 }
]
},
{"_comment": "同時押し:普通のローマ字==実用的かどうかはさておき、初期から設定してある====================="},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "k"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "k","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "k"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "k","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "k"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "k","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "k"},
{"key_code": "e"}
]
},
"to": [
{"key_code": "k","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "k"},
{"key_code": "o"}
]
},
"to": [
{"key_code": "k","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "s"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "s","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "s"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "s","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "s"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "s","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "s"},
{"key_code": "e"}
]
},
"to": [
{"key_code": "s","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "s"},
{"key_code": "o"}
]
},
"to": [
{"key_code": "s","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "t"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "t","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "t"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "t","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "t"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "t","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "t"},
{"key_code": "e"}
]
},
"to": [
{"key_code": "t","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "t"},
{"key_code": "o"}
]
},
"to": [
{"key_code": "t","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "n"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "n","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "n"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "n","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "n"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "n","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "n"},
{"key_code": "e"}
]
},
"to": [
{"key_code": "n","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "n"},
{"key_code": "o"}
]
},
"to": [
{"key_code": "n","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "h"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "h","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "h"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "h","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "h"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "h","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "h"},
{"key_code": "e"}
]
},
"to": [
{"key_code": "h","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "h"},
{"key_code": "o"}
]
},
"to": [
{"key_code": "h","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "m"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "m","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "m"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "m","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "m"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "m","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "m"},
{"key_code": "e"}
]
},
"to": [
{"key_code": "m","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "m"},
{"key_code": "o"}
]
},
"to": [
{"key_code": "m","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "r"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "r","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "r"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "r","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "r"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "r","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "r"},
{"key_code": "e"}
]
},
"to": [
{"key_code": "r","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "r"},
{"key_code": "o"}
]
},
"to": [
{"key_code": "r","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "g"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "g","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "g"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "g","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "g"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "g","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "g"},
{"key_code": "e"}
]
},
"to": [
{"key_code": "g","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "g"},
{"key_code": "o"}
]
},
"to": [
{"key_code": "g","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "z"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "z","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "z"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "z","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "z"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "z","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "z"},
{"key_code": "e"}
]
},
"to": [
{"key_code": "z","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "z"},
{"key_code": "o"}
]
},
"to": [
{"key_code": "z","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "d"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "d","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "d"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "d","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "d"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "d","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "d"},
{"key_code": "e"}
]
},
"to": [
{"key_code": "d","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "d"},
{"key_code": "o"}
]
},
"to": [
{"key_code": "d","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "b"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "b","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "b"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "b","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "b"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "b","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "b"},
{"key_code": "e"}
]
},
"to": [
{"key_code": "b","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "b"},
{"key_code": "o"}
]
},
"to": [
{"key_code": "b","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "p"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "p","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "p"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "p","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "p"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "p","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "p"},
{"key_code": "e"}
]
},
"to": [
{"key_code": "p","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "p"},
{"key_code": "o"}
]
},
"to": [
{"key_code": "p","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "f"},
{"key_code": "a"}
]
},
"to": [
{"key_code": "f","repeat": false},
{"key_code": "a","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "f"},
{"key_code": "i"}
]
},
"to": [
{"key_code": "f","repeat": false},
{"key_code": "i","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "f"},
{"key_code": "u"}
]
},
"to": [
{"key_code": "f","repeat": false},
{"key_code": "u","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "f"},
{"key_code": "e"}
]
},
"to": [
{"key_code": "f","repeat": false},
{"key_code": "e","repeat": false}
],
"conditions": [
]
},
{
"type": "basic",
"from": {"simultaneous": [
{"key_code": "f"},
{"key_code": "o"}
]
},
"to": [
{"key_code": "f","repeat": false},
{"key_code": "o","repeat": false}
],
"conditions": [
]
},
{"_comment": "2打鍵:子音略語=============================="},
{"_comment": "変数first_charには1打目の文字を格納する"},
{
"type": "basic",
"from": { "key_code": "s" },
"to": [
{"key_code": "e"},
{"key_code": "s"},
{"key_code": "u"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "d" }
]
},
{
"type": "basic",
"from": { "key_code": "t" },
"to": [
{"key_code": "e"},
{"key_code": "s"},
{"key_code": "i"},
{"key_code": "t"},
{"key_code": "a"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "d" }
]
},
{
"type": "basic",
"from": { "key_code": "h" },
"to": [
{"key_code": "e"},
{"key_code": "h"},
{"key_code": "a"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "d" }
]
},
{
"type": "basic",
"from": { "key_code": "k" },
"to": [
{"key_code": "e"},
{"key_code": "k"},
{"key_code": "i"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "d" }
]
},
{
"type": "basic",
"from": { "key_code": "m" },
"to": [
{"key_code": "e"},
{"key_code": "m"},
{"key_code": "o"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "d" }
]
},
{
"type": "basic",
"from": { "key_code": "r" },
"to": [
{"key_code": "e"},
{"key_code": "r"},
{"key_code": "u"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "d" }
]
},
{
"type": "basic",
"from": {"key_code": "d"},
"to": [
{"key_code": "d"},
{ "set_variable": { "name": "first_char", "value": "d" } }
],
"to_delayed_action": {
"to_if_invoked": [
{ "set_variable": { "name": "first_char", "value": 0 } }
],
"to_if_canceled": [
{ "set_variable": { "name": "first_char", "value": 0 } }
]
},
"conditions": [
{ "type": "input_source_if",
"input_sources": [{ "language": "ja" }]
},
{ "type": "variable_if", "name": "first_char", "value": 0 }
]
},
{
"type": "basic",
"from": { "key_code": "t" },
"to": [
{"key_code": "a"},
{"key_code": "t"},
{"key_code": "u"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "g" }
]
},
{
"type": "basic",
"from": { "key_code": "w" },
"to": [
{"key_code": "a"},
{"key_code": "w"},
{"key_code": "a"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "g" }
]
},
{
"type": "basic",
"from": {"key_code": "g"},
"to": [
{"key_code": "g"},
{ "set_variable": { "name": "first_char", "value": "g" } }
],
"to_delayed_action": {
"to_if_invoked": [
{ "set_variable": { "name": "first_char", "value": 0 } }
],
"to_if_canceled": [
{ "set_variable": { "name": "first_char", "value": 0 } }
]
},
"conditions": [
{ "type": "input_source_if",
"input_sources": [{ "language": "ja" }]
},
{ "type": "variable_if", "name": "first_char", "value": 0 }
]
},
{
"type": "basic",
"from": { "key_code": "d" },
"to": [
{"key_code": "o"},
{"key_code": "d"},
{"key_code": "o"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "h" }
]
},
{
"type": "basic",
"from": { "key_code": "k" },
"to": [
{"key_code": "o"},
{"key_code": "k"},
{"key_code": "a"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "h" }
]
},
{
"type": "basic",
"from": { "key_code": "n" },
"to": [
{"key_code": "u"},
{"key_code": "n"},
{"key_code": "n"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "h" }
]
},
{
"type": "basic",
"from": { "key_code": "s" },
"to": [
{"key_code": "a"},
{"key_code": "s"},
{"key_code": "i"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "h" }
]
},
{
"type": "basic",
"from": {"key_code": "h"},
"to": [
{"key_code": "h"},
{ "set_variable": { "name": "first_char", "value": "h" } }
],
"to_delayed_action": {
"to_if_invoked": [
{ "set_variable": { "name": "first_char", "value": 0 } }
],
"to_if_canceled": [
{ "set_variable": { "name": "first_char", "value": 0 } }
]
},
"conditions": [
{ "type": "input_source_if",
"input_sources": [{ "language": "ja" }]
},
{ "type": "variable_if", "name": "first_char", "value": 0 }
]
},
{
"type": "basic",
"from": { "key_code": "n" },
"to": [
{"key_code": "o"},
{"key_code": "n"},
{"key_code": "o"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "k" }
]
},
{
"type": "basic",
"from": { "key_code": "r" },
"to": [
{"key_code": "a"},
{"key_code": "r"},
{"key_code": "a"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "k" }
]
},
{
"type": "basic",
"from": { "key_code": "s" },
"to": [
{"key_code": "u"},
{"key_code": "d"},
{"key_code": "a"},
{"key_code": "s"},
{"key_code": "a"},
{"key_code": "i"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "k" }
]
},
{
"type": "basic",
"from": { "key_code": "t" },
"to": [
{"key_code": "o"},
{"key_code": "t"},
{"key_code": "o"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "k" }
]
},
{
"type": "basic",
"from": { "key_code": "w" },
"to": [
{"key_code": "a"},
{"key_code": "w"},
{"key_code": "a"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "k" }
]
},
{
"type": "basic",
"from": {"key_code": "k"},
"to": [
{"key_code": "k"},
{ "set_variable": { "name": "first_char", "value": "k" } }
],
"to_delayed_action": {
"to_if_invoked": [
{ "set_variable": { "name": "first_char", "value": 0 } }
],
"to_if_canceled": [
{ "set_variable": { "name": "first_char", "value": 0 } }
]
},
"conditions": [
{ "type": "input_source_if",
"input_sources": [{ "language": "ja" }]
},
{ "type": "variable_if", "name": "first_char", "value": 0 }
]
},
{
"type": "basic",
"from": { "key_code": "d" },
"to": [
{"key_code": "a"},
{"key_code": "d"},
{"key_code": "e"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "m" }
]
},
{
"type": "basic",
"from": { "key_code": "n" },
"to": [
{"key_code": "o"},
{"key_code": "n"},
{"key_code": "o"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "m" }
]
},
{
"type": "basic",
"from": { "key_code": "s" },
"to": [
{"key_code": "a"},
{"key_code": "s"},
{"key_code": "u"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "m" }
]
},
{
"type": "basic",
"from": { "key_code": "t" },
"to": [
{"key_code": "a"},
{"key_code": "s"},
{"key_code": "i"},
{"key_code": "t"},
{"key_code": "a"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "m" }
]
},
{
"type": "basic",
"from": {"key_code": "m"},
"to": [
{"key_code": "m"},
{ "set_variable": { "name": "first_char", "value": "m" } }
],
"to_delayed_action": {
"to_if_invoked": [
{ "set_variable": { "name": "first_char", "value": 0 } }
],
"to_if_canceled": [
{ "set_variable": { "name": "first_char", "value": 0 } }
]
},
"conditions": [
{ "type": "input_source_if",
"input_sources": [{ "language": "ja" }]
},
{ "type": "variable_if", "name": "first_char", "value": 0 }
]
},
{
"type": "basic",
"from": { "key_code": "d" },
"to": [
{"key_code": "a"},
{"key_code": "d"},
{"key_code": "o"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "n" }
]
},
{
"type": "basic",
"from": { "key_code": "k" },
"to": [
{"key_code": "a"},
{"key_code": "k"},
{"key_code": "a"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "n" }
]
},
{
"type": "basic",
"from": { "key_code": "r" },
"to": [
{"key_code": "a"},
{"key_code": "r"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "n" }
]
},
{
"type": "basic",
"from": { "key_code": "t" },
"to": [
{"key_code": "i"},
{"key_code": "t"},
{"key_code": "i"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "n" }
]
},
{
"type": "basic",
"from": {"key_code": "n"},
"to": [
{"key_code": "n"},
{ "set_variable": { "name": "first_char", "value": "n" } }
],
"to_delayed_action": {
"to_if_invoked": [
{ "set_variable": { "name": "first_char", "value": 0 } }
],
"to_if_canceled": [
{ "set_variable": { "name": "first_char", "value": 0 } }
]
},
"conditions": [
{ "type": "input_source_if",
"input_sources": [{ "language": "ja" }]
},
{ "type": "variable_if", "name": "first_char", "value": 0 }
]
},
{
"type": "basic",
"from": { "key_code": "g" },
"to": [
{"key_code": "i"},
{"key_code": "k"},
{"key_code": "i"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "s" }
]
},
{
"type": "basic",
"from": { "key_code": "k" },
"to": [
{"key_code": "o"},
{"key_code": "k"},
{"key_code": "o"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "s" }
]
},
{
"type": "basic",
"from": { "key_code": "m" },
"to": [
{"key_code": "a"},
{"key_code": "m"},
{"key_code": "a"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "s" }
]
},
{
"type": "basic",
"from": { "key_code": "n" },
"to": [
{"key_code": "o"},
{"key_code": "n"},
{"key_code": "o"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "s" }
]
},
{
"type": "basic",
"from": { "key_code": "r" },
"to": [
{"key_code": "u"},
{"key_code": "r"},
{"key_code": "u"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "s" }
]
},
{
"type": "basic",
"from": { "key_code": "s" },
"to": [
{"key_code": "i"},
{"key_code": "m"},
{"key_code": "a"},
{"key_code": "s"},
{"key_code": "u"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "s" }
]
},
{
"type": "basic",
"from": { "key_code": "t" },
"to": [
{"key_code": "i"},
{"key_code": "t"},
{"key_code": "a"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "s" }
]
},
{
"type": "basic",
"from": { "key_code": "z" },
"to": [
{"key_code": "i"},
{"key_code": "m"},
{"key_code": "a"},
{"key_code": "s"},
{"key_code": "i"},
{"key_code": "t"},
{"key_code": "a"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "s" }
]
},
{
"type": "basic",
"from": { "key_code": "hyphen" },
"to": [
{"key_code": "y"},
{"key_code": "u"},
{"key_code": "n"},
{"key_code": "n"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "s" }
]
},
{
"type": "basic",
"from": {"key_code": "s"},
"to": [
{"key_code": "s"},
{ "set_variable": { "name": "first_char", "value": "s" } }
],
"to_delayed_action": {
"to_if_invoked": [
{ "set_variable": { "name": "first_char", "value": 0 } }
],
"to_if_canceled": [
{ "set_variable": { "name": "first_char", "value": 0 } }
]
},
"conditions": [
{ "type": "input_source_if",
"input_sources": [{ "language": "ja" }]
},
{ "type": "variable_if", "name": "first_char", "value": 0 }
]
},
{
"type": "basic",
"from": { "key_code": "g" },
"to": [
{"key_code": "u"},
{"key_code": "g"},
{"key_code": "i"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "t" }
]
},
{
"type": "basic",
"from": { "key_code": "h" },
"to": [
{"key_code": "o"},
{"key_code": "h"},
{"key_code": "a"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "t" }
]
},
{
"type": "basic",
"from": { "key_code": "k" },
"to": [
{"key_code": "e"},
{"key_code": "k"},
{"key_code": "i"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "t" }
]
},
{
"type": "basic",
"from": { "key_code": "m" },
"to": [
{"key_code": "a"},
{"key_code": "m"},
{"key_code": "e"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "t" }
]
},
{
"type": "basic",
"from": {"key_code": "t"},
"to": [
{"key_code": "t"},
{ "set_variable": { "name": "first_char", "value": "t" } }
],
"to_delayed_action": {
"to_if_invoked": [
{ "set_variable": { "name": "first_char", "value": 0 } }
],
"to_if_canceled": [
{ "set_variable": { "name": "first_char", "value": 0 } }
]
},
"conditions": [
{ "type": "input_source_if",
"input_sources": [{ "language": "ja" }]
},
{ "type": "variable_if", "name": "first_char", "value": 0 }
]
},
{
"type": "basic",
"from": { "key_code": "k" },
"to": [
{"key_code": "a"},
{"key_code": "k"},
{"key_code": "e"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "w" }
]
},
{
"type": "basic",
"from": {"key_code": "w"},
"to": [
{"key_code": "w"},
{ "set_variable": { "name": "first_char", "value": "w" } }
],
"to_delayed_action": {
"to_if_invoked": [
{ "set_variable": { "name": "first_char", "value": 0 } }
],
"to_if_canceled": [
{ "set_variable": { "name": "first_char", "value": 0 } }
]
},
"conditions": [
{ "type": "input_source_if",
"input_sources": [{ "language": "ja" }]
},
{ "type": "variable_if", "name": "first_char", "value": 0 }
]
},
{
"type": "basic",
"from": { "key_code": "k" },
"to": [
{"key_code": "o"},
{"key_code": "k"},
{"key_code": "u"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "y" }
]
},
{
"type": "basic",
"from": { "key_code": "r" },
"to": [
{"key_code": "o"},
{"key_code": "r"},
{"key_code": "i"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "y" }
]
},
{
"type": "basic",
"from": { "key_code": "t" },
"to": [
{"key_code": "o"},
{"key_code": "t"},
{"key_code": "t"},
{"key_code": "e"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "y" }
]
},
{
"type": "basic",
"from": {"key_code": "y"},
"to": [
{"key_code": "y"},
{ "set_variable": { "name": "first_char", "value": "y" } }
],
"to_delayed_action": {
"to_if_invoked": [
{ "set_variable": { "name": "first_char", "value": 0 } }
],
"to_if_canceled": [
{ "set_variable": { "name": "first_char", "value": 0 } }
]
},
"conditions": [
{ "type": "input_source_if",
"input_sources": [{ "language": "ja" }]
},
{ "type": "variable_if", "name": "first_char", "value": 0 }
]
},
{
"type": "basic",
"from": { "key_code": "hyphen" },
"to": [
{"key_code": "y"},
{"key_code": "u"},
{"key_code": "n"},
{"key_code": "n"}
],
"conditions": [
{ "type": "variable_if", "name": "first_char", "value": "z" }
]
},
{
"type": "basic",
"from": {"key_code": "z"},
"to": [
{"key_code": "z"},
{ "set_variable": { "name": "first_char", "value": "z" } }
],
"to_delayed_action": {
"to_if_invoked": [
{ "set_variable": { "name": "first_char", "value": 0 } }
],
"to_if_canceled": [
{ "set_variable": { "name": "first_char", "value": 0 } }
]
},
"conditions": [
{ "type": "input_source_if",
"input_sources": [{ "language": "ja" }]
},
{ "type": "variable_if", "name": "first_char", "value": 0 }
]
},
{"_comment": "EOF=============================="}
]
}
]
}