Intro
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.
- Download your desired dictionary, which will likely have a
.oxt
extension. - Navigate to the directory containing the dictionary you just downloaded. I downloaded
es_es.oxt
into theDownloads
folder:
cd ~/Downloads - Change the extension of the dictionary file from
.oxt
to.zip
:mv es_es.oxt es_es.zip - Create a new folder and use the name of the dictionary as the name of the folder:
mkdir es_es
- Move the ZIP file into the new folder:
mv es_es.zip es_es
- Navigate into the the new folder:
cd es_es
- Unzip the dictionary file:
unzip es_es.zip
- Delete the ZIP file:
rm es_es.zip
- Navigate to the parent folder:
cd ..
- Move the dictionary folder to Sublime’s
User
folder:mv es_es ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User - The dictionary is now an option under the
View
menu. Select it by pointing your mouse atView ➞ Dictionary ➞ User
. Thees_es
dictionary, in my case, is atView ➞ Dictionary ➞ User ➞ es_es
. - Verify that you’ve installed the dictionary correctly. Look for the
"dictionary"
option in your preferences file.