DICT is a dictionarynetwork protocol created by the DICT Development Group in 1997, described by RFC 2229. Its goal is to surpass the Webster protocol to allow clients to access a variety of dictionaries via a uniform interface.
The protocol consists of a few commands a server must recognize so a client can access the available data and lookup word definitions. DICT servers and clients use TCP port 2628 by default. Queries are captured in the following URL scheme:
Freedict provides a collection of over 85 translating dictionaries, as XML source files with the data, mostly accompanied by databases generated from the XML files in the format used by DICT servers and clients. These are available from the Freedict project web site at.
There are also programs that read the DICT file format directly. For example, S60Dict, is a dictionary program for Symbian Series 60 that uses DICT dictionaries. Additionally, some DICT clients, such as Fantasdic, are also capable of reading the DICT format directly.
Dict file formatEdit
The standard dictd server made by the DICT Development Group uses a special dict file format. It comprises two files, a .index file and a .dict file (or .dict.dz if compressed). These files are usually generated by a program called dictfmt. For example, the Unix command:
dictfmt --utf8 --allchars -s "My Dictionary" -j mydict < mydict.txt
will compile a Unicode-compatible DICT file called mydict, with heading My Dictionary, from mydict.txt which is in Jargon File format i.e.:
Once the dictionary file has been produced, it can be easily installed on a server with commands similar to this:
In order to efficiently store dictionary data, dictzip, an extension to the gzip compression format (also the name of the utility), can be used to compress a .dict file.
Dictzip compresses file in chunks and stores the chunk index in the gzip file header, thus allowing random access to the data.
^ ab"dict.org". Dict.org. Retrieved 16 October 2014.