# Description: 
#   looks up the english meanings of a french word
#
# Author:
#   mj bishop
#
# Testing:
#   This script has been tested on the Cygwin unix emulator running on WinMe.
#
# Dependencies:
#   lynx, the unix text browser or something like html2text or 'links' another
#   text only browser
#   Requires an Internet connection

#-- urls of online spanish dictionaries.
sUrlHarperCollins="http://www.wordreference.com/es/translation.asp?tranword"
sUrlHarperCollins="http://www.wordreference.com/fr/Translation.asp?enfr"

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

  This script looks up the English meanings of a French 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