Re: advice, building livecd for translators



On Fri, 21 Dec 2007 09:53:43 -0600
"Cybe R. Wizard" <cybe_r_wizard@xxxxxxxxxxxxx> wrote:

Peter Garrett <peter.garrett@xxxxxxxxxxxxxxx> 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

Attachment: pgpeKyi5O5uUq.pgp
Description: PGP signature

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


Relevant Pages

  • Re: how to replace multiple lines in a file?
    ... It would not have been done if Peter had followed ... and I'm having trouble converting expressions that span ... bash-2.05b$ exit ...
    (comp.unix.questions)
  • Re: how to replace multiple lines in a file?
    ... It would not have been done if Peter had followed ... and I'm having trouble converting expressions that span ... bash-2.05b$ exit ...
    (comp.unix.programmer)
  • Re: how to replace multiple lines in a file?
    ... It would not have been done if Peter had followed ... and I'm having trouble converting expressions that span ... bash-2.05b$ exit ...
    (comp.unix.shell)
  • Re: problem with gpg password
    ... peter wrote: ... exiting immediately after delivery of PASSPHRASE. ... one more before the exit? ...
    (comp.lang.tcl)
  • Re: Calvin Brock is a JOKE
    ... you so <grin> ... So once I expose you as an inconsistent liar who has no real opinion ... First there's "no way" Toney can beat Peter, ...
    (rec.sport.boxing)