DICT explained

DICT
Is Stack:No
Purpose:Allow clients access to remote dictionaries
Developer:DICT Development Group
Osilayer:Application layer (7)
Ports:2628 (TCP)
Rfcs: A Dictionary Server Protocol

DICT is a dictionary network protocol created by the DICT Development Group[1] in 1997, described by RFC 2229.[2] 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.

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://;@:/::::

Resources for free dictionaries from DICT protocol servers

A repository of source files for the DICT Development group's dict protocol server (with a few sample dictionaries) is available online.[3]

Dictionaries of English

Bilingual dictionaries

DICT servers

DICT clients

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:

There are also programs that read the DICT file format directly. For example, S60Dict,[20] 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 format

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.txtwill 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 converters

dictzip

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 also

External links

Notes and References

  1. Web site: dict.org. Dict.org. 16 October 2014.
  2. Faith . Rickard E. . Martin . Bret . October 1997 . rfc2229 . 2021-09-11 . datatracker.ietf.org.
  3. Web site: dict.org: Resources. dead. https://web.archive.org/web/20200830164200/http://www.dict.org/links.html. 30 August 2020. 11 September 2021. Dict.org.
  4. Web site: U.S. Gazetteer . www.census.gov . 13 January 2022 . https://web.archive.org/web/19970101144813/http://www.census.gov/cgi-bin/gazetteer . 1 January 1997 . dead.
  5. Web site: delorie.com. Delorie.com. 16 October 2014.
  6. Web site: freedict.org. FreeDict Project. 28 October 2017.
  7. Web site: DICT Development Group. 2021-09-11. SourceForge. en.
  8. Web site: ndl.kie.ua. 26 March 2010. Ndl.kiev.ua. 16 October 2014.
  9. Web site: gnu.org. Gnu.org. 16 October 2014.
  10. Web site: informatik.uni-leipzig.de. Ho Ngoc Duc. Informatik.uni-leipzig.de. 16 October 2014.
  11. Web site: DICT Client. live. https://web.archive.org/web/20130505214912/http://sourceforge.net/projects/dictc/. 5 May 2013. 11 September 2021. SourceForge.
  12. Web site: DictEm - Dictionary client for Emacs download. SourceForge. https://web.archive.org/web/20151001133822/http://sourceforge.net/projects/dictem/. 1 October 2015.
  13. Web site: garage: MaemoDict: Project Info . Garage.maemo.org . 2015-03-07.
  14. Web site: mozdev.org - dict: index . Dict.mozdev.org . 2015-03-07 . 2009-12-26 . https://web.archive.org/web/20091226231904/http://dict.mozdev.org/ . dead .
  15. Web site: OKDict . Kilargo . 2015-03-07.
  16. Web site: Presentation. Pentila. https://web.archive.org/web/20081022174939/http://www.pentila.com/produits/zopedictdb-product/. 22 October 2008.
  17. Web site: Start — . Zope.org . 2015-03-07.
  18. Web site: Pentila Néro . Pentila.com . 2015-03-07 . 2007-02-05 . https://web.archive.org/web/20070205181947/http://www.pentila.com/ . dead .
  19. Web site: apps:xfce4-dict:start [Xfce Docs]]. 2022-01-27. docs.xfce.org.
  20. Web site: S60Dict. Kostas. Giannakakis. https://web.archive.org/web/20130611225015/http://users.forthnet.gr/ath/kgiannak/S60Dict.html. 11 June 2013.
  21. Web site: Linguae, gestionnaire de dictionnaires . Linguae.stalikez.info . 2015-03-07.
  22. Web site: soshial/xdxf_makedict · GitHub . Github.com . 2015-03-07.