On Fri, 22 Feb 2008 22:31:46 +0000, Ian Jackson wrote:
> Russ Allbery writes ("Re: Bug#465140: debian-policy: clarify when to use
> alternatives"):
> > libtranslate-bin actually provides a user program that goes in /usr/bin.
> > The confusing name is because the binary is just a wrapper around the
> > libtranslate library.
>
> Ah. Well, then an alternative might indeed be ensible. But someone
> needs to write down what the common subset of functionality is, that a
> caller is allowed to rely on.
This is the usage message from "translate":
USAGE:
translate [-niwvh] [-l languages] [words to translate]
OPTIONS:
-n non-interactive (don't prompt if no matches found)
-i inverse lookup (from second to first language)
-w search only complete words
-l languages to translate between
-v display version and exit
-h display this message
It currently only supports "de-en" as language pair (but, having the -i switch,
it also counts as "en-de"). Thus a typical call would be:
$ translate -l de-en -i housekeeper
Haushälterin {f} | Haushälterinnen {pl} :: housekeeper | housekeepers
$
This is, instead "ntranslate" (from libtranslate-bin -- I've renamed the
binary to avoid useless Conflicting "translate"):
Synopsis:
ntranslate {-? | -v | --list-services}
ntranslate [-s SERVICES] [-f LANG] [-t LANG] -l
ntranslate [-s SERVICES] [-f LANG] [-t LANG] {HTTP_URL | HTTPS_URL}
ntranslate [-s SERVICES] [-f LANG] [-t LANG] [--max-threads=N]
[--max-retries=N] [FILE]
Options:
-?, --help Show this help
-v, --version Show version information
--list-services List the available services
-s, --services=SERVICES Specify the list of services to use
-f, --from=LANG Specify the source language
-t, --to=LANG Specify the destination language
-l, --list-pairs List the available language pairs
--max-threads=N Specify the maximum number of threads to use
--max-retries=N Specify the maximum number of retries per chunk
A typical usage would be:
$ echo housekeeper | ntranslate -f en -t de
Haushälterin
$
David
--
. ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
signature.asc
Description: PGP signature

