[Surfraw-commits] [SCM] surfraw - a fast unix command line interface to WWW branch, master, updated. surfraw_2-2-5_1-211-g8e32f5e
Ian Beckwith
ianb at erislabs.net
Tue Aug 9 23:03:24 UTC 2011
The following commit has been merged in the master branch:
commit 8e32f5edaf26b7a65e5535d81b513f6d63e82847
Author: Ian Beckwith <ianb at erislabs.net>
Date: Tue Aug 9 23:56:28 2011 +0100
new elvi: priberam. Thanks to Paulo Almeida <paulo at diasalmeida.com>
diff --git a/AUTHORS b/AUTHORS
index 7186dfd..6453da7 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -123,6 +123,9 @@ Jason Ryan <jasonwryan at gmail.com>
Sara Fauzia <sara at archlinux.us>
archpkg fix.
+Paulo Almeida <paulo at diasalmeida.com>
+ elvi: priberam
+
THANKS TO
Brian Nelson <bnelson at bloodclot.net>
diff --git a/ChangeLog b/ChangeLog
index 9720dbe..6b4025f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-08-09 Ian Beckwith <ianb at erislabs.net>
+
+ * New elvi: priberam - search Portuguese dictionary.
+ Author: Paulo Almeida <paulo at diasalmeida.com>
+ * Added test for priberam.
+
2011-07-11 Ian Beckwith <ianb at erislabs.net>
* netbsd: fix normal & mail search.
diff --git a/README b/README
index 95184a1..79e79ea 100644
--- a/README
+++ b/README
@@ -159,7 +159,7 @@ acronym -- Look for acronyms definitions (www.acronymfinder.com)
ads -- Search SAO/NASA Astrophysics Data System
alioth -- Search Alioth (alioth.debian.org)
amazon -- Search the amazon.com bookstore
-archpkg -- Search Arch Linux packages (www.archlinux.org)
+archpkg -- Search Arch Linux Packages (www.archlinux.org/packages/)
archwiki -- Search the Arch Linux Wiki
arxiv -- Search arXiv E-Print Archive for articles
ask -- Question the web using Ask Jeeves (www.ask.com)
@@ -175,7 +175,7 @@ cia -- Search CIA documents at www.cia.gov
cite -- Search computer science papers (citeseerx.ist.psu.edu)
cliki -- Search the common lisp wiki
cnn -- Search on CNN (cnn.com)
-codesearch -- Search source code using Google Code Search (www.google.com/codesearch)
+codesearch -- Search source code using Google Code Search (www.google.fr/codesearch)
comlaw -- Search Australian Law using Comlaw (www.comlaw.gov.au)
ctan -- Search the Comprehensive TeX Archive Network (ctan.org)
currency -- Convert currencies with the Universal Currency Converter (www.xe.net/ucc)
@@ -230,6 +230,7 @@ opensearch -- Search an OpenSearch-enabled website
pasearch -- Search the unofficial Penny Arcade archives (pipefour.org/pa)
pgpkeys -- Search the PGP key database
piratebay -- Search thepiratebay.org for torrents
+priberam -- Look up word in Priberam online dictionary (www.priberam.pt/dlpo)
pubmed -- Search medical/molbio databases (www.ncbi.nlm.nih.gov)
rae -- Busca en el diccionario de la Real Academia de la Lengua Española (Spanish Dictionary)
rfc -- Search RFCs (internet standards documents)
diff --git a/elvi/Makefile.am b/elvi/Makefile.am
index 103de84..6182131 100644
--- a/elvi/Makefile.am
+++ b/elvi/Makefile.am
@@ -78,6 +78,7 @@ dist_elvi_SCRIPTS = \
pasearch \
piratebay \
pgpkeys \
+ priberam \
pubmed \
rae \
rfc \
diff --git a/elvi/thesaurus b/elvi/priberam
similarity index 52%
copy from elvi/thesaurus
copy to elvi/priberam
index 5d22798..05daddc 100755
--- a/elvi/thesaurus
+++ b/elvi/priberam
@@ -1,13 +1,17 @@
#!/bin/sh
# $Id$
-# elvis: thesaurus -- Look up word in Merriam-Webster's Thesaurus (www.m-w.com)
+# elvis: priberam -- Look up word in Priberam online dictionary (www.priberam.pt/dlpo)
. surfraw || exit 1
+w3_config_hook () {
+def SURFRAW_priberam dictionary
+}
+
w3_usage_hook () {
cat <<EOF
Usage: $w3_argv0 [options] [search words]...
Description:
- Look up word in Merriam-Webster's Thesaurus (www.m-w.com)
+ Look up word in Priberam online dictionary (www.priberam.pt/dlpo)
EOF
w3_global_usage
}
@@ -18,8 +22,8 @@ SURFRAW_quote_ifs=0
w3_parse_args "$@"
# w3_args now contains a list of arguments
if test -z "$w3_args"; then
- w3_browse_url "http://www.m-w.com/thesaurus.htm"
+ w3_browse_url "http://www.priberam.pt/dlpo/"
else
escaped_args=`w3_url_of_arg $w3_args`
- w3_browse_url "http://www.m-w.com/cgi-bin/thesaurus?book=Thesaurus&va=${escaped_args}"
+ w3_browse_url "http://www.priberam.pt/dlpo/default.aspx?pal=${escaped_args}"
fi
diff --git a/links.IN b/links.IN
index 3d9a75f..845d1d5 100644
--- a/links.IN
+++ b/links.IN
@@ -74,6 +74,7 @@ elvi.1sr.gz @mandir@/man1/opensearch.1sr.gz
elvi.1sr.gz @mandir@/man1/pasearch.1sr.gz
elvi.1sr.gz @mandir@/man1/piratebay.1sr.gz
elvi.1sr.gz @mandir@/man1/pgpkeys.1sr.gz
+elvi.1sr.gz @mandir@/man1/priberam.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
diff --git a/test/Makefile.am b/test/Makefile.am
index 2a0dd32..ea9d441 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -16,15 +16,15 @@ EXTRA_DIST = runtests elviwithouttests README COOKIES W.test \
macports.test mathworld.test mininova.test musicbrainz.test \
netbsd.test ntrs.test openbsd.test openports.test \
opensearch.test pasearch.test piratebay.test pgpkeys.test \
- pubmed.test rae.test rfc.test rhyme.test rpmsearch.test \
- scholar.test scicom.test scitopia.test scirus.test scpan.test \
- scroogle.test slashdot.test slinuxdoc.test sourceforge.test \
- springer.test stack.test stockquote.test sunonesearch.test \
- thesaurus.test translate.test urban.test w3css.test \
- w3html.test w3link.test w3rdf.test wayback.test webster.test \
- wetandwild.test wikipedia.test woffle.test \
- worldwidescience.test yahoo.test yandex.test youtube.test \
- yubnub.test
+ priberam.test pubmed.test rae.test rfc.test rhyme.test \
+ rpmsearch.test scholar.test scicom.test scitopia.test \
+ scirus.test scpan.test scroogle.test slashdot.test \
+ slinuxdoc.test sourceforge.test springer.test stack.test \
+ stockquote.test sunonesearch.test thesaurus.test \
+ translate.test urban.test w3css.test w3html.test w3link.test \
+ w3rdf.test wayback.test webster.test wetandwild.test \
+ wikipedia.test woffle.test worldwidescience.test yahoo.test \
+ yandex.test youtube.test yubnub.test
test:
./runtests
diff --git a/test/priberam.test b/test/priberam.test
new file mode 100644
index 0000000..c83c8d2
--- /dev/null
+++ b/test/priberam.test
@@ -0,0 +1,2 @@
+priberam equivalente
+produzindo
--
surfraw - a fast unix command line interface to WWW
More information about the Surfraw-commits
mailing list