.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "LEO 1p" .TH LEO 1p "2019-03-13" "perl v5.24.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" leo \- commandline interface to http://dict.leo.org/. .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 1 \& leo [\-slmcfuphdv] [] .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\fBleo\fR is a commandline interface to the german/english/french dictionary on http://dict.leo.org/. It supports almost all features which the website supports, plus more. .PP Results will be printed to the terminal. By default the searched key word will be highlighted (which can be turned off, see below). .PP To get faster results, \fBleo\fR is able to cache queries if you repeatedly use the same query. .PP \&\fBleo\fR acts as a standard webbrowser as your mozilla or what so ever does, it connects to the website, exectues the query, parses the \s-1HTML\s0 result and finally prints it somewhat nicely formatted to the terminal. .PP As of this writing \fBleo\fR acts as: .PP .Vb 1 \& Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 .Ve .SH "OPTIONS" .IX Header "OPTIONS" .IP "\fI\-s \-\-spelltolerance\fR" 4 .IX Item "-s --spelltolerance" Allow spelling errors. .Sp Possible values: \fBstandard\fR, \fBon\fR or \fBoff\fR. .Sp Default setting: \fBstandard\fR. .IP "\fI\-m \-\-morphology\fR" 4 .IX Item "-m --morphology" Provide morphology information. .Sp Possible values: \fBstandard\fR, \fBnone\fR or \fBforcedAll\fR. .Sp Default setting: \fBstandard\fR. .IP "\fI\-c \-\-chartolerance\fR" 4 .IX Item "-c --chartolerance" Allow umlaut alternatives. .Sp Possible values: \fBfuzzy\fR, \fBexact\fR or \fBrelaxed\fR. .Sp Default: \fBrelaxed\fR. .IP "\fI\-l \-\-language\fR" 4 .IX Item "-l --language" Translation direction. Please note that dict.leo.org always translates either to or from german. .Sp The following languages are supported: english, polish, spanish, portuguese russian and chinese. .Sp You can specify only the country code, or append \fBde2\fR in order to force translation to german, or preprend \fBde2\fR in order to translate to the other language. .Sp Valid examples: .Sp ru to or from russian de2pl to polish es2de spanish to german .Sp Valid country codes: .Sp en english es spanish fr french ru russian pt portuguese pl polish ch chinese .Sp Default: \fBen\fR. .IP "\fI\-n \-\-noescapechars\fR" 4 .IX Item "-n --noescapechars" Don't use escapes for highlighting. .Sp Default: do highlighting. .Sp Controllable via config file too. See below. .Sp No highlighting will be used if \s-1STDOUT\s0 is not connected to a terminal. .IP "\fI\-f \-\-force\fR" 4 .IX Item "-f --force" Don't use the query cache. .Sp Default: use the cache. .Sp This option has no effect if \fBuse_cache\fR is turned off in the config file. .IP "\fI\-u \-\-user\fR" 4 .IX Item "-u --user" Specify the http proxy user to use if your proxy requires authentication. Read the '\s-1PROXY\s0' section for more details. .IP "\fI\-p \-\-passwd\fR" 4 .IX Item "-p --passwd" Specify the cleartext password to use with http proxy authentication. .Sp This is not recommended and just implemented for completeness. .IP "\fI\-h \-\-help\fR" 4 .IX Item "-h --help" Display this help and exit. .IP "\fI\-v \-\-version\fR" 4 .IX Item "-v --version" Display version information and exit. .IP "\fI\-d \-\-debug\fR" 4 .IX Item "-d --debug" Enable debugging output (a lot of it, beware!), which will be printed to \s-1STDERR.\s0 If you find a bug you must supply the debugging output along with your bugreport. .PP \&\fBterm\fR is the key word which you want to translate. If the term contains white spaces quote it using double quotes. .PP If the \fBterm\fR parameter is not specified, \fBleo\fR will read it from \s-1STDIN.\s0 .SH "CONFIG" .IX Header "CONFIG" \&\fBleo\fR reads a config file \fB.leo\fR in your home directory if it exists. The following variables are supported: .IP "\fIuse_latin\fR" 4 .IX Item "use_latin" Turns on conversion of \s-1UTF8\s0 characters to their latin* encoding. .Sp Default setting (if not given): \fByes\fR. .IP "\fIuse_cache\fR" 4 .IX Item "use_cache" Controls the use of the cache (see later). .Sp Possible values: \fByes\fR or \fBno\fR. .Sp Default setting(if not given): \fByes\fR. .Sp If the commandline option \fB\-f\fR or \fB\-\-force\fR has been set then the cache will not be used for the query and if for this query exists an entry in the cache it will be removed from it. .IP "\fIuse_color\fR" 4 .IX Item "use_color" Controls the use of escape sequences in the terminal output to highlight the key-waord in the result. .Sp Possible values: \fByes\fR or \fBno\fR. .Sp Default setting(if not given): \fByes\fR. .Sp You can set this option via commandline too: \fB\-n\fR or \fB\-\-noescapechars\fR. .Sp The config option has higher precedence. .IP "\fIuser_agent\fR" 4 .IX Item "user_agent" You may modify the user agent as \fBleo\fR identifies itself on the target site. The default is: .Sp User-Agent: Mozilla/5.0 (compatible; Konqueror/3.3.1; X11) .SH "CACHING" .IX Header "CACHING" \&\fBleo\fR supports caching of queries for faster results if you repeatedly use the same query. A query consists of the given \fBterm\fR (the key word or string) plus the translation option settings. .PP If you, for example, execute once the following query: .PP % leo langnase .PP and somewhere later: .PP % leo \-c exact .PP then \fBleo\fR will treat the latter query as a different one than the previous one, because \fIdict.leo.org\fR behaves different when different translation options are given. .SH "PROXY" .IX Header "PROXY" \&\fBleo\fR can be used with a \s-1HTTP\s0 proxy service. For this to work, you only have to set the environment variable \&\fBhttp_proxy\fR. It has the following format: .PP PROTO://[USER:PASSWD@]SERVER[:PORT] .PP The only supported protocol is \fBhttp\fR. If your proxy works without authentication, you can omit the \fBuser:passwd\fR part. If no port is specified, \fB80\fR will be used. .PP Here is an example (for bash): .PP export http_proxy=http://172.16.120.120:3128 .PP and an example with authentication credentials: .PP export http_proxy=http://max:34dwe2@172.16.120.120:3128 .PP As security is always important, I have to warn you, that other users on the same machine can read your environment using the 'ps \-e ..' command, so this is not recommended. .PP The most secure way for proxy authentication is just to specify the server+port with \fBhttp_proxy\fR but no credentials, and instead use the \fB\-u\fR commandline parameter to specify a user (do not use \fB\-p\fR to specify the password, this will also be readyble in process listing). In this case, \fBleo\fR will ask you interactively for the password. It will try its best to hide it from being displayed when you type it (as most such routines in other tools do it as well), it this fails (e.g. because you do not have the 'stty' tool installed), the password will be read from \s-1STDIN.\s0 .SH "FILES" .IX Header "FILES" ~/.leo the config file for leo. Not required. ~/.leo\-CACHE.db* the cache file. .SH "AUTHOR" .IX Header "AUTHOR" Thomas v.D. .SH "BUGS" .IX Header "BUGS" \&\fBleo\fR depends on http://dict.leo.org/. It may break \fBleo\fR if they change something on the site. Therefore be so kind and inform me if you encounter some weird behavior of \fBleo\fR. In most cases it is not a bug of \fBleo\fR itself, it is a website change on http://dict.leo.org/. .PP In such a case repeat the failed query and use the commandline flag \fB\-d\fR (which enables debugging) and send the full output to me, thanks. .SH "COPYRIGHT" .IX Header "COPYRIGHT" \&\fBleo\fR copyleft 2000\-2017 Thomas v.D.. All rights reserved. .PP http://dict.leo.org/ copyright (c) 1995\-2017 \s-1LEO\s0 Dictionary Team. .PP The search results returned by \fBleo\fR are based on the work of the people at \s-1LEO\s0.org. Thanks for the great work. .PP Some time ago they told me that they are disagreed with \fBleo\fR, or in other words: from their point of view \fBleo\fR seems to break copyright law in some or another way. .PP I thought a long time about this, but I must deny this. \fBleo\fR acts as a simple web client, just like mozilla, \s-1IE\s0 or even lynx are doing. They are providing the service to the public so I use my favorite web browser to make use of it. In fact my favorite browser to view dict.leo.org is \fBleo\fR. There is nothing wrong with that. \s-1IMHO.\s0 .PP If you disagree or are asked by the \s-1LEO\s0 team to stop using \fBleo\fR you may decide this for yourself. I in my case wrote kinda browser, what is not prohibited. At least not today. .SH "VERSION" .IX Header "VERSION" This is the manpage for \fBleo\fR version \fB2.01\fR.