Un très simple RFC, pour décrire un protocole requête / réponse
pour interroger un
Suivant la tendance de son époque, le
Aujourd'hui, un tel protocole serait peut-être bâti sur
Tel qu'il est, DICT est très simple à programmer et c'est par
exemple fait dans le module
(global-set-key [f5] 'dictionary-search)
(autoload 'dictionary-search "dictionary"
"Ask for a word and search it in all dictionaries" t)
(autoload 'dictionary-match-words "dictionary"
"Ask for a word and search all matching words in the dictionaries" t)
(autoload 'dictionary-lookup-definition "dictionary"
"Unconditionally lookup the word at point." t)
(autoload 'dictionary "dictionary"
"Create a new dictionary buffer" t)
;(setq dictionary-server "dict.example.org")
et un appui sur <F5> affichera la définition du terme sur lequel
se trouve le curseur.
Une autre solution est d'utiliser, en ligne de commande,
l'excellent outil
% curl dict://dict.org/lookup:corrugated:web1913
220 aspen.miranda.org dictd 1.9.15/rf on Linux 2.6.18-4-k7 <auth.mime> <4730178.11990.1182115574@aspen.miranda.org>
250 ok
150 1 definitions retrieved
151 "Corrugated" web1913 "Webster's Revised Unabridged Dictionary (1913)"
Corrugate \Cor"ru*gate\ (-g?t), v. t. [imp. & p. p. {Corrugated}
(-g?`t?d); p. pr. & vb. n. {Corrugating} (-g?`t?ng).]
To form or shape into wrinkles or folds, or alternate ridges
and grooves, as by drawing, contraction, pressure, bending,
or otherwise; to wrinkle; to purse up; as, to corrugate
plates of iron; to corrugate the forehead.
{Corrugated iron}, sheet iron bent into a series of alternate
ridges and grooves in parallel lines, giving it greater
stiffness.
{Corrugated paper}, a thick, coarse paper corrugated in order
to give it elasticity. It is used as a wrapping material
for fragile articles, as bottles.
.
250 ok [d/m/c = 1/0/18; 0.000r 0.000u 0.000s]
221 bye [d/m/c = 0/0/0; 0.000r 0.000u 0.000s]
Les seuls dictionnaires accessibles par
ce protocole que j'ai trouvées en ligne sont en
Quant à ce qui concerne le serveur, je vous invite à lire l'article de Jan-Piet Mens.