LoginSignup
2
1

More than 5 years have passed since last update.

Google 日本語入力のユーザー辞書を ATOK に移行する

Last updated at Posted at 2019-01-15

Google 日本語入力でエクスポートしたファイル形式そのままでは ATOK でインポートすることはできない。ヘッダーを挿入し、文字コードを変更する必要がある。

ヘッダーの挿入

ファイル先頭行に !!ATOK_TANGO_TEXT_HEADER_1 を挿入する。

sed -i '1i!!ATOK_TANGO_TEXT_HEADER_1' dictionary.txt

文字コードの変更

文字コードを UTF-16 に変更する。

$ nkf -g dictionary.txt
UTF-8
$ nkf -w16 --overwrite dictionary.txt
$ nkf -g dictionary.txt
UTF-16

これで dictionary.txt は ATOK でインポート可能な形式になった。

ATOK でインポート操作

  1. Click 「辞書ユーティリティ」
  2. Click 「ツール」
  3. Click 「ファイルから登録・削除」
  4. 「単語ファイル」のファイル名に dictionary.txt を指定
  5. 「ファイル形式」は ATOK
  6. Click 「登録」

でユーザー辞書のインポートが完了する。

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1