# DESCRIPTION:
#   looks up the english meanings of a  spanish word
# AUTHOR:
#   mj bishop
# DATES: june 2002
# TESTING:
#   This script has been tested on the Cygwin unix emulator running on WinMe.

#-- urls of online spanish dictionaries.
sUrlHarperCollins="http://www.wordreference.com/es/en/translation.asp?spen"
sUrlHarperCollins="http://www.wordreference.com/es/translation.asp?tranword"
sUrlSpanishDict="http://www.spanishdict.com/AS.cfm?e"

#-- Check for valid parameters
if [ "$1" = "" ]
then
  echo "
      usage: $0 spanishword

  This script looks up the English meanings of a
  Spanish word on the site http://www.wordreference.com/
  and returns the result as plain text
  "
  exit 1
else
  sLookupWord="$1"
fi

lynx --dump $sUrlHarperCollins=$sLookupWord | less