#! /bin/bash
# english

word=$1

if  [ "$word" = "" ]; then
	word=$(/usr/bin/gdialog --title "WordNet Dictionary" --inputbox "Enter English Word to Define:" 50 50 2>&1)
fi


wn $word -over -framv | fold -s >/tmp/defined
/usr/bin/gdialog --separate-output --title "WordNet: $word" --textbox /tmp/defined 50 70 2>&1
rm /tmp/defined
