Installing an Open Office dictionary for CodeRush

If you want to enable the Spell Checker in DevXpress' developer productivity tool CodeRush for a language other than English (United States) you can download and install an Open Office dictionary as follows:

  • Download the required dictionary from openoffice.org
  • Create a folder for your dictionary below the CodeRush dictionaries folder, which will be somewhere like this C:\Program Files\DevExpress 2010.1\IDETools\System\CodeRush\BIN\PLUGINS\Dictionaries. I reccomend naming the folder for the culture code e.g. en-GB
  • Extract the .zip file you downloaded and copy the files to the new folder
  • Launch Visual Studio
  • Select DevExpress, Options from the menu bar

  • Expand the Editor node of the treeview so you can see and select the Spell Checker option as in the image
  • Oddly enough you have to start at the bottom of this sheet, enter your culture code in the field labelled Dictionary Name
  • From the list labelled Dictionay Type select Open Office
  • Click the Add button

  • Moving up the sheet, select the new item added to the list labelled Dictionaries
  • You now have to point to the files you extracted
  • In the properties list click in the field labelled DictonaryPath
  • Click on the ellipsis button and browse to and select the .dic file in your new dictonary folder
  • Repeat this for the GrammarPath field and select the .aff file
  • Moving up to the Options section select your own Culture from the drop down listbox
  • You can come back and change other settings later, but for now click OK to add the dictionary and close the dialogue box
  • Open a code file and check that the spell checker is now working with your chosen language.

NB: With the En-Us standard dictionary was selected you may notice there is an additional AlphabetPath set.  My spell checker appears to be working fine without this set, perhaps it is not needed with the Open Office dictionary format, but if you find any issues you can create your own file.  Looking at the file the En-Us dictionary points to you will find that it simply contains each character of the English alphabet.  So creating one of your own for your language should be relatively easy.

blog comments powered by Disqus

Tag cloud

Previous Articles