dict
data structure in PostScript, Erlang, Python, TCL, or etc., seeassociative array. For the Philippine executive department, seeDepartment of Information and Communications Technology.DICT is adictionarynetwork protocol created by the DICT Development Group[1] in 1997, described by RFC 2229.[2] Its goal is to surpass theWebster protocol to allow clients to access a variety ofdictionaries via a uniform interface.
Communication protocol | |
Purpose | Allow clients access to remote dictionaries |
---|---|
Developer(s) | DICT Development Group |
Introduction | January 1, 1997; 28 years ago (1997-01-01) |
OSI layer | Application layer (7) |
Port(s) | 2628 (TCP) |
RFC(s) | RFC 2229 A Dictionary Server Protocol |
This articlemay beconfusing or unclear to readers. Please helpclarify the article. There might be a discussion about this onthe talk page.(June 2010) (Learn how and when to remove this message) |
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.[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 servers
editA 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
edit- Bouvier's Law Dictionary, Revised 6th Ed (1856)
- CIA World Factbook
- Easton's Bible Dictionary (1897)
- Elements database
- Free On-line Dictionary of Computing
- GNU Collaborative International Dictionary of English (GCIDE)
- Hitchcock's Bible Names Dictionary
- Jargon File
- Moby Thesaurus
- Oxford Advanced Learner's Dictionary[citation needed]
- The Devil's Dictionary (1911)
- The U.S. Gazetteer[4] (1990 Census)
- V.E.R.A.[5] – Virtual Entity of Relevant Acronyms which are used in the field of computing
- Webster's Revised Unabridged Dictionary (1913)
- WordNet
Bilingual dictionaries
edit- 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.[6]
- 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 servers
editDICT clients
editA dictd server can be used fromTelnet. 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)[11] client for Windows written inDelphi.
- dict.org's own client (part of the dictd[7] package)
- dictem,[12] for theEmacstext editor
- Dictionary, an application included with Mac OS X. Online dictionaries can be accessed by setting it as the helper for 'dict://'URI schemes.
- Fantasdic
- GNOME Dictionary, comes withGNOME
- GNU dico's own client (part of the dico package)
- Kdict, comes withKDE
- KTranslator, KDE dictionary
- MaemoDict,[13] for theNokia 770
- MATE Dictionary (with accompanying applet)
- Mozdev.org's 'dict',[14] aFirefox/Mozilla extension
- OKDict,[15] anOpenOffice.org extension
- OmniDictionary, forMac OS X
- StarDict[citation needed]
- ZopeDictDB[16] for Zope[17] from Pentila[18]
- GoldenDict
- xfce4-dict, from theXfce project[19]
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 asFantasdic, are also capable of reading the DICT format directly.
Dict file format
editThe standard dictd[7] server made by the DICT Development Group[1] uses a specialdict 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 calleddictfmt. For example, theUnix command:
dictfmt--utf8--allchars-s"My Dictionary"-jmydict<mydict.txt
will compile aUnicode-compatible DICT file calledmydict, with headingMy Dictionary, frommydict.txt which is inJargon File format i.e.:
:word1:definition 1:word2:definition 2etc.
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
edit- Linguae Software[21] 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[22]XML Dictionary Exchange Format converts between various dictionary formats using pluggable codec architecture.
dictzip
editIn order to efficiently store dictionary data,dictzip, an extension to thegzip 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
editReferences
edit- ^ab"dict.org". Dict.org. Retrieved16 October 2014.
- ^abFaith, Rickard E.; Martin, Bret (October 1997)."rfc2229".datatracker.ietf.org. Retrieved2021-09-11.
- ^"dict.org: Resources". Dict.org. Archived fromthe original on 30 August 2020. Retrieved11 September 2021.
- ^"U.S. Gazetteer".www.census.gov. Archived fromthe original on 1 January 1997. Retrieved13 January 2022.
- ^"delorie.com". Delorie.com. Retrieved16 October 2014.
- ^"freedict.org". FreeDict Project. Retrieved28 October 2017.
- ^abc"DICT Development Group".SourceForge. Retrieved2021-09-11.
- ^"ndl.kie.ua". Ndl.kiev.ua. 26 March 2010. Retrieved16 October 2014.
- ^"gnu.org". Gnu.org. Retrieved16 October 2014.
- ^Ho Ngoc Duc."informatik.uni-leipzig.de". Informatik.uni-leipzig.de. Retrieved16 October 2014.
- ^"DICT Client". SourceForge.Archived from the original on 5 May 2013. Retrieved11 September 2021.
- ^"DictEm - Dictionary client for Emacs download". SourceForge. Archived fromthe original on 1 October 2015.
- ^"garage: MaemoDict: Project Info". Garage.maemo.org. Retrieved2015-03-07.
- ^"mozdev.org - dict: index". Dict.mozdev.org. Archived fromthe original on 2009-12-26. Retrieved2015-03-07.
- ^"OKDict". Kilargo. Retrieved2015-03-07.
- ^"Presentation". Pentila. Archived fromthe original on 22 October 2008.
- ^"Start —". Zope.org. Retrieved2015-03-07.
- ^"Pentila Néro". Pentila.com. Archived fromthe original on 2007-02-05. Retrieved2015-03-07.
- ^"apps:xfce4-dict:start [Xfce Docs]".docs.xfce.org. Retrieved2022-01-27.
- ^Giannakakis, Kostas."S60Dict". Archived fromthe original on 11 June 2013.
- ^"Linguae, gestionnaire de dictionnaires". Linguae.stalikez.info. Retrieved2015-03-07.
- ^"soshial/xdxf_makedict · GitHub". Github.com. Retrieved2015-03-07.
External links
edit- RFC 2229 – Definition of the DICT protocol
- dict.org DICT Development Group. A WWW interface to several freely available on-line dictionaries.
- DICT protocol server list by the FreeDict project