Commit 804d954d authored by Ian Beckwith's avatar Ian Beckwith

added elvi rae by Ruben Pollan <meskio@terra.es>

parent 6fcf9da4
......@@ -139,6 +139,7 @@ netbsd -- Search NetBSD related information (www.netbsd.org)
openbsd -- Search OpenBSD related information (www.openbsd.org)
pgpkeys -- Search the PGP key database
pubmed -- Search medical/molbio databases (www.ncbi.nlm.nih.gov)
rae -- Busca en el diccionario de la Real Academia de la Lengua Espaola (Spanish Dictionary)
rfc -- Search RFCs (internet standards documents)
rhyme -- Search for rhymes et al using Lycos Rhyme (rhyme.lycos.com)
scaleplus -- Search Australian Law using ScalePlus (scaleplus.law.gov.au)
......
......@@ -2,12 +2,13 @@ surfraw (2.1.0-1) unstable; urgency=low
* Ian Beckwith <ianb@nessie.mcc.ac.uk>:
+ New elvi: dmoz, w3html, w3link, w3css, w3rdf.
+ New elvi: rae (by Ruben Pollan <meskio@terra.es>)
+ surfraw.IN:w3_url_escape: escaped `(' and `)'.
+ Added appendix 2 to HACKING on preparing a release.
-- Christian Surchi <csurchi@debian.org> Wed, 15 Sep 2004 17:39:53 +0100
-- Christian Surchi <csurchi@debian.org> Sat, 2 Oct 2004 17:12:22 +0100
surfraw (2.0.2-2) testing-proposed-updates; urgency=high
surfraw (2.0.2-2) unstable; urgency=low
* Applied Brian Mcdonald's workaround for bash bug (Closes: #269982)
......
......@@ -37,6 +37,7 @@ elvi_SCRIPTS = \
openbsd \
pgpkeys \
pubmed \
rae \
rfc \
rhyme \
slashdot \
......
......@@ -139,6 +139,7 @@ elvi_SCRIPTS = \
openbsd \
pgpkeys \
pubmed \
rae \
rfc \
rhyme \
slashdot \
......
#!/bin/sh
# $Id$
# elvis: rae -- Busca en el diccionario de la Real Academia de la Lengua Espaola (Spanish Dictionary)
# Author: Ruben Pollan <meskio@terra.es>
. 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 Espaola (Spanish Dictionary)
Local options:
-tipo= 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="$1"
optarg="$2"
case "$opt" in
-tipo=*) 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=`w3_url_of_arg $w3_args`
w3_browse_url "http://buscon.rae.es/draeI/SrvltGUIBusUsual?TIPO_HTML=2&LEMA=${escaped_args}&&TIPO_BUS=${SURFRAW_rae_tipo}"
fi
......@@ -34,6 +34,7 @@ elvi.1sr.gz @mandir@/man1/netbsd.1sr.gz
elvi.1sr.gz @mandir@/man1/openbsd.1sr.gz
elvi.1sr.gz @mandir@/man1/pgpkeys.1sr.gz
elvi.1sr.gz @mandir@/man1/pubmed.1sr.gz
elvi.1sr.gz @mandir@/man1/rae.1sr.gz
elvi.1sr.gz @mandir@/man1/rfc.1sr.gz
elvi.1sr.gz @mandir@/man1/rhyme.1sr.gz
elvi.1sr.gz @mandir@/man1/scaleplus.1sr.gz
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment