[Surfraw-devel] RAE elvi

Ruben Pollan meskio@terra.es
Mon, 27 Sep 2004 12:48:52 +0200


--nextPart2257987.avCKKKKFRZ
Content-Type: multipart/mixed;
  boundary="Boundary-01=_UA/VBC1DpG7DqAV"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--Boundary-01=_UA/VBC1DpG7DqAV
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

I have done an elvi to search in RAE dictionary. This is the official=20
dictionary of Spanish (Spain) language. I attach it.
=20
=2D-=20
Rub=E9n Poll=E1n  | jabber:meskio@zgzjabber.ath.cx
=2D=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-=3D-=3D-=3D-
               Hay un mundo
  a la vuelta de la esquina de tu mente,
     donde la realidad es un intruso
      y los sue=F1os se hacen realidad.

=2D----------------------------------------------
Internet Explorer 6 is obsolete. Please upgrade to Mozilla FireFox.
Internet Explorer 6 est=E1 anticuado.  Actual=EDcese a Mozilla FireFox.
      http://www.mozilla.org/products/firefox/

--Boundary-01=_UA/VBC1DpG7DqAV
Content-Type: application/x-shellscript;
  name="rae"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="rae"

#!/bin/sh
# $Id: rae,v 1.2 2003/09/10 20:21:57 ianb-guest Exp $
# elvis: rae		-- Busca en el diccionario de la Real Academia de la Lengua E=
spa=F1ola
# Author: Ruben Pollan <meskio@terra.es>
=2E surfraw || exit 1

w3_config_hook () {
def   SURFRAW_rae_tipo 0
}

w3_usage_hook () {
    cat <<EOF
Usage: $w3_argv0 [options] [search words]...
Description:
  Busca en el diccionario de la Real Academia de la Lengua Espa=F1ola
Local options:
  -tipo=3D                        Tipo de busqueda
          0             |       Busqueda exacta
          1             |       Busqueda sin signos diacriticos
          2             |       Semejanza fonetico-ortografica
          3             |       Busqueda escalonada
                                Default: $SURFRAW_rae_tipo
                                Environment: SURFRAW_rae_tipo
EOF
    w3_global_usage
}

w3_parse_option_hook () {
    opt=3D"$1"
    optarg=3D"$2"
    case "$opt" in
    	-tipo=3D*)  setopt SURFRAW_rae_tipo $optarg ;;
	*)        return 1 ;;
    esac
    return 0
}

w3_config
w3_parse_args "$@"
# w3_args now contains a list of arguments
if null "$w3_args"; then
    w3_browse_url "http://buscon.rae.es/diccionario/drae.htm"
else
    escaped_args=3D`w3_url_of_arg $w3_args`
    w3_browse_url "http://buscon.rae.es/draeI/SrvltGUIBusUsual?TIPO_HTML=3D=
2&LEMA=3D${escaped_args}&&TIPO_BUS=3D${SURFRAW_rae_tipo}"
fi

--Boundary-01=_UA/VBC1DpG7DqAV--

--nextPart2257987.avCKKKKFRZ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQBBV/AXGKOQ92SwNMIRAijLAJ0XY+C990klGNASQqVTCSseXLNP8wCeKTgb
fI/3zqOCibO6H2V2OMjS4Rc=
=bkvc
-----END PGP SIGNATURE-----

--nextPart2257987.avCKKKKFRZ--