Skip to content

Instantly share code, notes, and snippets.

@akirakubo
Created August 1, 2018 03:34
Show Gist options
  • Save akirakubo/f42f18ab22ddc1dfedc95179e561e432 to your computer and use it in GitHub Desktop.
Save akirakubo/f42f18ab22ddc1dfedc95179e561e432 to your computer and use it in GitHub Desktop.
AquaSKKのSKK辞書(自動ダウンロード)の取得先変更方法

AquaSKK(4.4.6)には、L辞書等の自動ダウンロード、アップデート機能がある。

「辞書の種類」が「SKK辞書(自動ダウンロード)」であって、「有効」のチェックボックスがオンである辞書について、AquaSKKは http://openlab.ring.gr.jp/skk/skk/dic/ にアクセスして取得しようとする。

これを変更するには、plistを編集する必要がある。このplistファイルはプレーンテキストではないため、plutil コマンドで編集する必要がある。

1. 既存の設定のバックアップ

~/Library/Preferences/jp.sourceforge.inputmethod.aquaskk.plist を別の場所にコピーしておく。

2. 設定値の変更

ターミナルから以下を実行。以下は、別のRingミラー(芝浦工業大学のもの)に変更する例。

$ plutil -replace 'openlab_host' -string 'ring.shibaura-it.ac.jp' ~/Library/Preferences/jp.sourceforge.inputmethod.aquaskk.plist
$ plutil -replace 'openlab_path' -string '/archives/elisp/skk/dic' ~/Library/Preferences/jp.sourceforge.inputmethod.aquaskk.plist

念の為再ログインした方が良いかも。

元に戻したい場合は、デフォルト値に再変更する。

$ plutil -replace 'openlab_host' -string 'openlab.ring.gr.jp' ~/Library/Preferences/jp.sourceforge.inputmethod.aquaskk.plist
$ plutil -replace 'openlab_path' -string '/skk/skk/dic' ~/Library/Preferences/jp.sourceforge.inputmethod.aquaskk.plist

又はバックアップしたplistファイルを上書きする。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment