Eclipse IDE
weinert-automation
Prof. Dr.-Ing. Albrecht Weinert

from the blogs
eclipse dictionary


A comprehensive German dictionary for Eclipse
first published Aug 5th, 2009 in Albrecht's former blog

If your HTML, XML and JavaDoc or Doxygen is to some extend German (and not just English) Eclipse’s spell checker gets more bothering than a help. Here the developer gets a comprehensive German dictionary containing more than 24 500 word forms including OO, Java and process control.

Get and install

Download: weinert-automation.de/software/eclipse/de_DE.dic.
Best stored at: C:\Programme\eclipse\dropins

Install in Eclipse as “User defined directory” by: Window>Preferences>General>Editors>Texteditors>spelling.

Hint: Eclipse probably requires write access for its user to the file
    C:\Programme\eclipse\dropins\de_DE.dic

On Windows this is done in the Explorer or by cacls in the shell. Under Linux, you get there by something like
    sudo cp ‘/where/it/is/de_DE.dic’ ‘/usr/lib/eclipse/dropins’
    sudo chmod 777 /usr/lib/eclipse/dropins/de_DE.dic

Hint 2: Of all Eclipse editors the “Text Editor” has the best spell checking integration. So it should be used from time to time if your .java, .xml, .php, .html or whatever contains a considerable amount of readable text.

Structure and content

The most simple form of a .dic file for Eclipse is used here
  • one word respectively word form per line
  • no repetitions, not even for just first capital letter (if “wandern” is contained, Eclipse will accept “Wandern” anyway)
  • no (abbreviation) dots at the end (Eclipse accepts “etc.” in the text by a .dic entry “etc”)
  • no hyphenated words (Eclipse checks “Baden-Württemberg” against the two words “baden” and “Württemberg”)
  • not sorted (Eclipse seems to sort on load anyway. Other information?)

Modify or make it yourself

Frame4J‘s tool UCopy will bring a text file to this form by
    java UCopy source.txt -eclipDic -v destination.dic
doing those transformations
  • separate word in single lines
  • delete a trailing dot
  • delete single letters and doublets (also those distinguished by first capital only)
  • delete words containing digits or upper case characters only.
This tool greatly simplifies the making and adding to such .dic files. Without bothering about line structure or forms already contained one just adds correctly (!) spelled words and lets UCopy with -eclipdic option crunch it.

Comments welcome

Due to commonly known troubles some of my publications originally done in a Wordpress blog respectively at Google+ will be converted to (static) .pdf or .html. Nevertheless you are welcome to comment.
Please do so by mail giving your full name, URL, mail address and a small photo — and, of course, your comment.
Copyright   ©   2018  Albrecht Weinert
Stand: 25.02.2019 (V.65)       A. Weinert,   E-Mail (webmaster)