Mike Schilli's Friendly Neighborhood Perl Shop

Home
USArundbrief.com
Resume
CPAN Modules
Articles in English
Articles in German
Mike's Script Archive
English-Japanese Translation Trainer
Adventures with O'Reilly's Safari
10 Easy Steps to Become a California Driver
Unofficial perlmonks.com IRC Channel
My Collection of Outage Pages
Prisma (Computer Club Deutschland)
Mike's Monologues
Mike's Script Archive: leo

leo - Look up a word or phrase on dict.leo.org


NAME

    leo - Look up a word or phrase on dict.leo.org


DOWNLOAD

leo


DOWNLOAD

leo


SYNOPSIS

      # German/English English/German
    leo word ...
      # German/French French/German
    leo -f word ...
      # German/Spanish Spanish/German
    leo -s word ...


DESCRIPTION

leo contacts the dictionary server on dict.leo.org, fills in the form field with the provided word or phrase and presses the submit button. It analyzes the HTML result and extracts the relevant information.

dict.leo.org handles both German/English, English/German, German/French, and French/German translations. So does leo, you can specify German or English words/phrases on the command line. With the -f option, it will translate between German/French and French/German.

dict.leo.org handles spelling errors gracefully by presenting a list of links to similar spelled words. leo handles this case by clicking on the first link presented and returning this link's result.


CONTRIBUTORS

Thanks to

  • Sven Hergenhahn for providing a fix to make 'leo' work with the latest dict.leo.org page layout (01/04/2005)

  • Christian Moeller for a patch to adapt leo to Leo's new HTML table layout

  • Volker Mertens for adapting it to WWW::Mechanize 1.22

  • Dirk große Osterhues for Spanish switches and Term::ANSIColor (made optional).


EXAMPLES

  $ leo ludicrous
  ludicrous
      aberwitzig
  ludicrous
      albern
  ludicrous
      drollig
  ludicrous
      irrsinnig
  ludicrous
      lächerlich
  $ leo flabberkasted
  flabbergasted
    entgeistert
  flabbergasted
    verblüfft
  to be flabbergasted
    baff sein
  to be flabbergasted
    Bauklötze staunen [coll.][fig.]
  to be flabbergasted
    platt sein
  $ leo depp
  dork
    der Depp
  dumb cluck [sl.]
    der Depp [coll.]
  fool
    der Depp
  git [coll.]
    der Depp
  moron
    der Depp
  oaf
    der Depp
  plonker [Brit.][sl.]
    der Depp
  prick [coll.]
    der Depp [coll.]
  retard [sl.][pej.]
    der Depp [sl.][pej.]
  schnook
    der Depp

Leo also supports French:

  $ leo -f meister
  champion  m.
    der Meister
  maître  m.
    der Meister
  C'est en forgeant qu'on devient forgeron.
    Übung macht den Meister.

And Spanish:

  $ leo -s paella
  la paella [culin.]
    die Paella
  arroz a la valenciana [culin.]
    die Paella
  paella de bogavante [culin.]
    Paella mit Hummer

If Term::ANSIColor is installed, the original will be printed in blue, the translations in black.

Make sure you have a UTF-8 Terminal if you want accented characters to be printed correctly.


LEGALESE

Copyright 2003-2007 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.


AUTHOR

Mike Schilli <m@perlmeister.com>


Latest update: 20-Oct-2013