advice, building livecd for translators
Peter Garrett
peter.garrett at optusnet.com.au
Fri Dec 21 18:30:36 UTC 2007
On Fri, 21 Dec 2007 09:53:43 -0600
"Cybe R. Wizard" <cybe_r_wizard at earthlink.net> wrote:
> Peter Garrett <peter.garrett at optusnet.com.au> said:
>
> [...]
>
> > My script *is* a graphical dictionary!
> > Heh - did you try it at all?
> > *grin*
>
> Peter, I came late to the thread and have deleted your previous post.
> Could you re-post your script or send it directly to me at the earthlink
> eddress included herein? I would certainly appreciate it.
> That is, if it is released under the GNU set of licenses.
> ;-]
Heheh :-)
I think everyone is safe. I can't afford lawyers... ;-P
Yes, you may consider it 'Copyleft Peter Garrett, GPL 2 or later, at your
option', etc. etc. :D
It's getting a bit verbose and over-commented, sorry.
Bloat is setting in already... <grin>
#!/bin/bash
# Revision 0.0.2-pre-alpha. Changelog: Added --width and --height
# Save this somewhere sensible, like /usr/local/bin/dictionary ,
# and make executable, of course. Add launcher / icon to taste.
# A tiny on-line dictionary - install the "dict" package and
# "zenity" to use...
WORD=$(zenity --width 300 --entry --title Dictionary)
if [ $? -gt 0 ] ; then
exit
else
dict $WORD > /tmp/dict
zenity --width 500 --height 500 \
--title Definition --text-info < /tmp/dict \
exit
fi
You might want to play with the --width and --height options.
Peter
--
"INX Is Not X" based on Ubuntu 7.04 Live CD: http://inx.maincontent.net
Screenshots slideshow: http://inx.maincontent.net/album/1.png.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071222/82c7b180/attachment.sig>
More information about the ubuntu-users
mailing list