DICT

Revision as of 19:55, 31 December 2024 by imported>Kirkgaard (→‎Dictionaries of English: add GCIDE)
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Template:Short description Template:About Template:Infobox networking protocol {{ safesubst:#invoke:Unsubst||date=__DATE__|$B= Template:Ambox }}

DICT is a dictionary network protocol created by the DICT Development Group<ref name=":0">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> in 1997, described by RFC 2229.<ref name=":2">Template:Cite journal</ref> Its goal is to surpass the Webster protocol to allow clients to access a variety of dictionaries via a uniform interface.

In section 3.2 of the DICT protocol RFC, queries and definitions are sent in clear-text, meaning that there is no encryption. Nevertheless, according to section 3.1 of the RFC, various forms of authentication (sans encryption) are supported, including Kerberos version 4.<ref name=":2" />

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:

dict://<user>;<auth>@<host>:<port>/<c>:<word>:<database>:<strategy>:<n>

Resources for free dictionaries from DICT protocol serversEdit

A repository of source files for the DICT Development group's dict protocol server (with a few sample dictionaries) is available online.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

Dictionaries of EnglishEdit

|CitationClass=web }}</ref> (1990 Census)

  • V.E.R.A.<ref>{{#invoke:citation/CS1|citation

|CitationClass=web }}</ref> – Virtual Entity of Relevant Acronyms which are used in the field of computing

Bilingual dictionariesEdit

  • Big English–Russian Dictionary
  • English–French dictionary
  • 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.<ref>{{#invoke:citation/CS1|citation

|CitationClass=web }}</ref>

  • FREELANG Dictionary
  • Lingvo English–Russian and Russian–English dictionaries are not free, but when purchased, can easily be converted into DICT format
  • Mueller's English–Russian dictionary
  • Slovak-English legal dictionary
  • Slovak-Italian legal dictionary

DICT serversEdit

  • dictd<ref name=":1">{{#invoke:citation/CS1|citation

|CitationClass=web }}</ref> (the standard server made by the DICT Development Group)

  • DictD++<ref>{{#invoke:citation/CS1|citation

|CitationClass=web }}</ref> – modern powerful server written in C++ with heavy usage of STL and boost (abandoned)

  • GNU Dico<ref>{{#invoke:citation/CS1|citation

|CitationClass=web }}</ref>

  • JDictd<ref>{{#invoke:citation/CS1|citation

|CitationClass=web }}</ref> – a Java-based DICT server implementation (abandoned)

DICT clientsEdit

A dictd server can be used from Telnet. For example, to connect to the DICT server on localhost, on a Unix system one can normally type:

telnet localhost dict

and then enter the command "help" to see the available commands. The standard dictd package also provides a "dict" command for command-line use.

More sophisticated DICT clients include:

  • cURL
  • dictc (DICT Client)<ref>{{#invoke:citation/CS1|citation

|CitationClass=web }}</ref> client for Windows written in Delphi.

  • dict.org's own client (part of the dictd<ref name=":1" /> package)
  • dictem,<ref>{{#invoke:citation/CS1|citation

|CitationClass=web }}</ref> for the Emacs text editor

|CitationClass=web }}</ref> for the Nokia 770

  • MATE Dictionary (with accompanying applet)
  • Mozdev.org's 'dict',<ref>{{#invoke:citation/CS1|citation

|CitationClass=web }}</ref> a Firefox/Mozilla extension

  • OKDict,<ref>{{#invoke:citation/CS1|citation

|CitationClass=web }}</ref> an OpenOffice.org extension

|CitationClass=web }}</ref> for Zope<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> from Pentila<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

  • GoldenDict
  • xfce4-dict, from the Xfce project<ref>{{#invoke:citation/CS1|citation

|CitationClass=web }}</ref>

There are also programs that read the DICT file format directly. For example, S60Dict,<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> 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<ref name=":1" /> server made by the DICT Development Group<ref name=":0" /> 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: <syntaxhighlight lang="bash"> dictfmt --utf8 --allchars -s "My Dictionary" -j mydict < mydict.txt </syntaxhighlight> will compile a Unicode-compatible DICT file called mydict, with heading My Dictionary, from mydict.txt which is in Jargon File format i.e.:

:word1:definition 1
:word2:definition 2
etc.

Once the dictionary file has been produced, it can be easily installed on a server with commands similar to this:

mv mydict.dict mydict.index /usr/share/dictd/
/usr/sbin/dictdconfig—write
/etc/init.d/dictd restart

Format convertersEdit

  • Linguae Software<ref>{{#invoke:citation/CS1|citation

|CitationClass=web }}</ref> is able to convert from/to wb, dict (stardict and dictd) csv, xdxf, txt, ini and ling (native) file formats, Linux, Windows and Mac OS X.

  • XDXF<ref>{{#invoke:citation/CS1|citation

|CitationClass=web }}</ref> XML Dictionary Exchange Format converts between various dictionary formats using pluggable codec architecture.

dictzipEdit

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.

See alsoEdit

ReferencesEdit

Template:Reflist

External linksEdit

Template:URI scheme