Skip to content

Instantly share code, notes, and snippets.

@trpfrog
Created February 1, 2023 05:47
Show Gist options
  • Save trpfrog/1b7cdc976cf9b7cb3b3a29a9d3a410d8 to your computer and use it in GitHub Desktop.
Save trpfrog/1b7cdc976cf9b7cb3b3a29a9d3a410d8 to your computer and use it in GitHub Desktop.
Mac で句読点とカンマピリオドを切り替えるやつ
x=$(defaults read com.apple.inputmethod.Kotoeri JIMPrefPunctuationTypeKey)
if [[ $x == 0 ]] then
defaults write com.apple.inputmethod.Kotoeri JIMPrefPunctuationTypeKey -int 3
echo "カンマ・ピリオド に切り替えました"
else
defaults write com.apple.inputmethod.Kotoeri JIMPrefPunctuationTypeKey -int 0
echo "句点・読点 に切り替えました"
fi
killall -HUP JapaneseIM-RomajiTyping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment