This is the translate-client Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 08 19:46:27 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
translate-client
A client to online web-server translators, currently only google translate
andy peterson
MIT
alexandria
(system).
quri
(system).
dexador
(system).
assoc-utils
(system).
yason
(system).
package.lisp
(file).
translate-client.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
translate-client/translate-client.asd
translate-client/package.lisp
translate-client/translate-client.lisp
translate-client/translate-client.asd
translate-client
(system).
translate-client/translate-client.lisp
package.lisp
(file).
translate-client
(system).
*google-api-key*
(special variable).
*source-language*
(special variable).
*target-language*
(special variable).
*translation-format*
(special variable).
*uri-char-limit*
(special variable).
*uri-host*
(special variable).
*uri-path*
(special variable).
*uri-scheme*
(special variable).
translate
(function).
translate-to-alist
(function).
divide-into-translation-groups
(function).
divide-long-string
(function).
encoded-parameter-length
(function).
google-uri-character-limit-error
(condition).
google-uri-reader
(reader method).
json-to-translated-strings
(function).
string-ellipsis
(function).
translate-uri
(function).
whitespacep
(function).
Packages are listed by definition order.
translate-client
alexandria
.
common-lisp
.
quri
.
*google-api-key*
(special variable).
*source-language*
(special variable).
*target-language*
(special variable).
*translation-format*
(special variable).
*uri-char-limit*
(special variable).
*uri-host*
(special variable).
*uri-path*
(special variable).
*uri-scheme*
(special variable).
translate
(function).
translate-to-alist
(function).
divide-into-translation-groups
(function).
divide-long-string
(function).
encoded-parameter-length
(function).
google-uri-character-limit-error
(condition).
google-uri-reader
(generic reader).
json-to-translated-strings
(function).
string-ellipsis
(function).
translate-uri
(function).
whitespacep
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
the default google cloud api key. You need your own key and should be set in your own code.
the default source language to be translated from. can be a string or keyword. must be an ISO-639-1 identifier
the target language to be translated to. can be a string or keyword. must be an ISO-639-1 identifier
the translation format of the translated text. Must be :html for html or :text for plain-text
google states that the uri must not pass 2000 characters
the google translation api host
the google translation api path
the google translation api scheme
translates the string(s) from the source language to the target language.
The parameter strings is either a string or a list of strings to be translated.
Returns
Parameters source and target are strings or keywords and must be ISO-639-1 language identifiers.
Api-key is a string and must be a valid google cloud api key.
format needs to be either :html or :text
similar to translate but returns an association list of translation pairs.
returns a list of lists. the inner lists must be one of two things:
A list of strings (only) for a single http-request to translate multiple string
or a list of a single list of strings when a single translation string must be
divided into parts
given the json response from google, return the list of translated strings
this returns a string with maximum length max-length.
If the given string is larger than max-length, this returns a string with ellipsis
in the middle at the cut-point.
If cut-point is nil, the ellipsis is in the middle.
If cut-point is zero, negative or :front, the ellipsis is at the beginning.
If cut-point is too large or :back, the ellipsis is at the end.
create google uri to translates string(s) from the source language to the target language
The parameter strings is either a string or a list of strings.
Parameters source and target are strings or keywords and must be ISO-639-1 language identifiers.
Api-key is a string and must be a valid google cloud api key.
format needs to be either :html or :text
google-uri-character-limit-error
)) ¶Jump to: | D E F G J M S T W |
---|
Jump to: | D E F G J M S T W |
---|
Jump to: | *
G S |
---|
Jump to: | *
G S |
---|
Jump to: | C F G P S T |
---|
Jump to: | C F G P S T |
---|