Installing a Dictionary Into Sublime Text Via The Terminal


The default dictionary used by Sublime Text is utf-8-based and American English-centric. You can use different dictionaries, but they must be encoded in utf-8. For dictionary options, Sublime suggests looking at these dictionaries, available at OpenOffice.

Note: Every OpenOffice dictionary is a compressed file—with a .oxt extension—of a bundle of related files. One of those files is the actual dictionary, which ends in a .dic extension.

Mac Install *

For the following example, I’ll refer to a dictionary downloaded from the Internet called es_es.oxt. I’ll also assume you’re using Sublime Text 3.

  1. Download your desired dictionary, which will likely have a .oxt extension.
  2. Navigate to the directory containing the dictionary you just downloaded. I downloaded es_es.oxt into the Downloads folder:
    cd ~/Downloads
  3. Change the extension of the dictionary file from .oxt to .zip:
    mv es_es.oxt
  4. Create a new folder and use the name of the dictionary as the name of the folder:
    mkdir es_es
  5. Move the ZIP file into the new folder:
    mv es_es
  6. Navigate into the the new folder:
    cd es_es
  7. Unzip the dictionary file:
  8. Delete the ZIP file:
  9. Navigate to the parent folder:
    cd ..
  10. Move the dictionary folder to Sublime’s User folder:
    mv es_es ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User
  11. The dictionary is now an option under the View menu. Select it by pointing your mouse at View ➞ Dictionary ➞ User. The es_es dictionary, in my case, is at View ➞ Dictionary ➞ User ➞ es_es.
  12. Verify that you’ve installed the dictionary correctly. Look for the "dictionary" option in your preferences file.