diff --git a/scripts/erb2json.rb b/scripts/erb2json.rb index cb237e6d7..b221fb4a0 100755 --- a/scripts/erb2json.rb +++ b/scripts/erb2json.rb @@ -90,6 +90,10 @@ def frontmost_application(type, app_alias) '^org\.macports\.X11$', ] + microsoft_powerpoint_bundle_identifiers = [ + '^com\.microsoft\.Powerpoint', + ] + case app_alias when 'terminal' data = { @@ -120,6 +124,12 @@ def frontmost_application(type, app_alias) 'bundle_identifiers' => vi_bundle_identifiers, } JSON.generate(data) + when 'aquaskk_workaround' + data = { + 'type' => type, + 'bundle_identifiers' => microsoft_powerpoint_bundle_identifiers, + } + JSON.generate(data) else '' end diff --git a/src/index.html.erb b/src/index.html.erb index 3ca0a421e..64a37cc43 100644 --- a/src/index.html.erb +++ b/src/index.html.erb @@ -33,6 +33,7 @@ <%= file_import_panel("docs/json/exchange_semicolon_and_colon.json") %> <%= file_import_panel("docs/json/ctrl_command_fn_letter_specials.json") %> <%= file_import_panel("docs/json/command_arrows_to_option_arrows.json") %> + <%= file_import_panel("docs/json/aquaskk_workaround.json") %> <%= file_import_panel("docs/json/japanese.json") %> diff --git a/src/json/aquaskk_workaround.json.erb b/src/json/aquaskk_workaround.json.erb new file mode 100644 index 000000000..06d2d024b --- /dev/null +++ b/src/json/aquaskk_workaround.json.erb @@ -0,0 +1,16 @@ +{ + "title": "AquaSKK workaround", + "rules": [ + { + "description": "Change control+j to かな & 英数 in Microsoft PowerPoint.", + "manipulators": [ + { + "type": "basic", + "from": <%= from("j", ["control"], ["caps_lock", "shift", "option"]) %>, + "to": <%= to([["japanese_eisuu"], ["japanese_kana"]]) %>, + "conditions": [ <%= frontmost_application_if("aquaskk_workaround") %> ] + } + ] + } + ] +}