Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the org-davep-dict Reference Manual, version 2.3, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 05:30:51 2022 GMT+0.
Next: Systems, Previous: The org-davep-dict Reference Manual, Up: The org-davep-dict Reference Manual [Contents][Index]
RFC2229 client for Common Lisp.
The following code provides a set of RFC 2229 client classes, functions and macros for Common Lisp. See http://www.dict.org/ for more details about dictd.
See https://github.com/davep/org-davep-dictrepl as a quick example of how this code might be used.
Next: Files, Previous: Introduction, Up: The org-davep-dict Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
RFC2229 client for Common Lisp.
Dave Pearson <davep@davep.org>
Dave Pearson <davep@davep.org>
LLGPL
org-davep-dict provides a set of RFC 2229 client classes, functions and macros
for Common Lisp. See See <URL:http://www.dict.org/> for more
details about dict servers and clients.
See <URL:http://www.davep.org/lisp/#org-davep-dict> for the latest version of this package.
2.3
Next: Packages, Previous: Systems, Up: The org-davep-dict Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: org-davep-dict/packages.lisp, Previous: Lisp, Up: Lisp [Contents][Index]
org-davep-dict (system).
Next: org-davep-dict/dict.lisp, Previous: org-davep-dict/org-davep-dict.asd, Up: Lisp [Contents][Index]
org-davep-dict (system).
Previous: org-davep-dict/packages.lisp, Up: Lisp [Contents][Index]
packages.lisp (file).
org-davep-dict (system).
Next: Definitions, Previous: Files, Up: The org-davep-dict Reference Manual [Contents][Index]
Packages are listed by definition order.
Next: org-davep-dict-system, Previous: Packages, Up: Packages [Contents][Index]
RFC 2229 client classes, functions and macros
Previous: org.davep.dict, Up: Packages [Contents][Index]
Next: Indexes, Previous: Packages, Up: The org-davep-dict Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Next: Internals, Previous: Definitions, Up: Definitions [Contents][Index]
Next: Special variables, Previous: Public Interface, Up: Public Interface [Contents][Index]
Database name to use when all definitions/matches are required.
Match strategy name meaning "the server’s default".
Match strategy name for an exact match.
Database name to use when the first definition/match is required.
Match strategy name for a prefix match.
Next: Macros, Previous: Constants, Up: Public Interface [Contents][Index]
The default client ID that will be announced to the dictionary server.
If you would prefer that your application announces itself in a different way then you should modify the value of this variable.
Host name to use when a default host is required.
Port to use when a default port is required.
Next: Ordinary functions, Previous: Special variables, Up: Public Interface [Contents][Index]
Create a dictionary client called CLIENT and evaluate BODY.
Next: Generic functions, Previous: Macros, Up: Public Interface [Contents][Index]
Create a dictionary client.
Next: Standalone methods, Previous: Ordinary functions, Up: Public Interface [Contents][Index]
Server’s capability list. A list of keywords.
The numeric code associated with the response.
Connect the dictionary client to the dictionary server.
Ensure that we’re not already connected.
Is DICT-CLIENT connected to a dictionary server?
Any data associated with the response.
The name of the database that the definition came from.
Get a list of databases available on the server.
An object of the class ‘DICT-CLIENT-RESPONSE’ is returned.
Define a word.
A list of definitions is returned, the list being empty if no definitions are found. Where definitions are found the list comprised of objects of the class ‘DICT-WORD-DEFINITION’.
The definition of the word.
This is a list of strings, each item in the list is a line from the
definition.
Return the text of DEFINITION as a string.
The description attribute of the information item.
Disconnect the dictionary client from the dictionary server.
Ensure that we’re connected before we disconnect.
The name of the dictionary host that the client will connect to. The default value for this slot is the value of ‘*DEFAULT-DICT-HOST*’.
Get information about DATABASE.
An object of the class ‘DICT-CLIENT-RESPONSE’ is returned.
Match a word.
An object of the class ‘DICT-CLIENT-RESPONSE’ is returned.
The message ID given to us after a successful connection.
The long name of the database that the definition came from.
The name attribute of the information item.
The number of the port that the client will connect to.
The default value for this slot is the value of ‘*DEFAULT-DICT-PORT*’.
The text of the response received from the server.
Get a list of "see also" items for the definition.
The server details as pulled from the banner after a successful connection.
Request help from the dictionary server.
An object of the class ‘DICT-CLIENT-RESPONSE’ is returned.
Get information about the server.
An object of the class ‘DICT-CLIENT-RESPONSE’ is returned.
Get a list of strategies available on the server.
An object of the class ‘DICT-CLIENT-RESPONSE’ is returned.
The word that is being defined.
Previous: Generic functions, Up: Public Interface [Contents][Index]
Format the DICT-CLIENT-RESPONSE for easy reading when output to STREAM.
Format the DICT-CLIENT for easy reading when output to STREAM.
Format the INFO for easy reading when output to STREAM.
Format the DICT-WORD-DEFINITION for easy reading when output to STREAM.
Previous: Public Interface, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Internals, Up: Internals [Contents][Index]
Next: Generic functions, Previous: Macros, Up: Internals [Contents][Index]
Convert CAP-STRING to a list of keywords.
Is LINE an end of data marker?
Convert KEYWORD into a dict string constant.
Take STRING and read it as a list.
Take STRING and read it as a list while preserving case.
Next: Classes, Previous: Ordinary functions, Up: Internals [Contents][Index]
Is RESPONSE a completion reply?
Check that DICT-CLIENT is connected to a server, error if not.
Is RESPONSE any kind of error?
Read a line from the dictionary server.
Ensure that we’re connected before getting a line.
Get a long (multi line) response from the dict server.
Get a short (one line) response from the dict server.
Send COMMAND to the server and grahter up the resulting information.
Is RESPONSE an intermediate reply?
Send COMMAND to server and get its multi-line response.
Is RESPONSE a permanent error?
Populate various slots from the banner.
DICT-CLIENT is returned.
Is RESPONSE a preliminary reply?
Send a line to the dict server.
Ensure that we’re connected before putting a line.
Read the definition of a word from DICT-CLIENT.
Break up TEXT and populate the slots in INFO.
INFO is returned.
Break up the response TEXT and populate the slots in RESPONSE.
RESPONSE is returned.
Break up the HEADER and populate the slots in DEFINITION.
DEFINITION is returned.
Send COMMAND to server and get its single line response.
The socket used to talk to the host.
Is RESPONSE a temporary error?
Previous: Generic functions, Up: Internals [Contents][Index]
RFC2229 client class.
This class has the following slots:
HOST - The name of the dictionary host.
PORT - The dictionary port on the host.
SOCKET - When connected this is the socket stream that is being used.
BANNER - An instance of ‘DICT-CLIENT-RESPONSE’ that contains the
banner we got from the dictionary server when we connected.
SERVER-DETAILS - The server details as pulled from the BANNER.
CAPABILITIES - List of server capabilities as pulled from the BANNER.
MESSAGE-ID - The message-ID for this connection as pulled from the BANNER.
Methods associated with this class are:
CONNECTEDP - Check if the client is connected.
CONNECT - Connect to the server.
DISCONNECT - Disconnect from the server.
DEFINE - Get the defintions for a word.
MATCH - Get a list of matches for a word.
DATABASES - Get a list of databases on the server.
STRATAGIES - Get a list of matching stratagies supported by the server.
INFO - Get information about a database.
SERVER-HELP - Get the help text of the server.
SERVER-INFO - Get information about the server.
Functions associted with this class are:
MAKE-DICT-CLIENT - Create a dictionary client object.
The name of the dictionary host that the client will connect to. The default value for this slot is the value of ‘*DEFAULT-DICT-HOST*’.
string
org.davep.dict:*default-dict-host*
:host
host.
The number of the port that the client will connect to.
The default value for this slot is the value of ‘*DEFAULT-DICT-PORT*’.
integer
org.davep.dict:*default-dict-port*
:port
port.
The socket used to talk to the host.
(or null stream)
The banner message we got when connected to the host.
This slot, when populated, is a ‘DICT-CLIENT-RESPONSE’ object.
(or null org.davep.dict::dict-client-response)
The server details as pulled from the banner after a successful connection.
string
""
Server’s capability list. A list of keywords.
list
The message ID given to us after a successful connection.
string
""
Class to hold a response from a dictionary server.
This class has three slots:
CODE - The numeric code associated with the response. RESPONSE - The text of the response received from the server. DATA - Any data associated with the response.
The text of the response received from the server.
string
Class to hold general information returned from the server.
This class is used for holding general information that is returned from the
dictionary server, this includes things like items in the list of databases
or the list of match stratagies.
This class has two slots:
NAME - The name attribute of the information item.
DESCRIPTION - The description attribute of the information item.
Class to hold a word definition.
This class is used to hold a word definition, it has the following slots:
WORD - The word that is being defined.
DATABASE - The name of the database that the definition came from.
NAME - The long name of the database that the definition came from.
DEFINITION - The definition of the word. This is a list of strings, each
item in the list is a line from the definition.
Methods associated with this class are:
SEE-ALSO - Get a list of links found in the defintion.
The name of the database that the definition came from.
string
The long name of the database that the definition came from.
string
name.
The definition of the word.
This is a list of strings, each item in the list is a line from the
definition.
list
Previous: Definitions, Up: The org-davep-dict Reference Manual [Contents][Index]
Jump to: | (
B C D E F G H I K L M N P R S T W |
---|
Jump to: | (
B C D E F G H I K L M N P R S T W |
---|
Next: Data types, Previous: Functions, Up: Indexes [Contents][Index]
Jump to: | *
+
B C D H M N P R S W |
---|
Jump to: | *
+
B C D H M N P R S W |
---|
Jump to: | C D F O P S |
---|
Jump to: | C D F O P S |
---|