Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 27 Nov 2014, 21:33
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
xcowsay talking lobster? new x message display with icon
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 6 [85 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Fri 02 Jul 2010, 13:22    Post subject:  

Hey vovchick

Depending what voice program is installed
having different choices to select from is always the best way
working out the filter for festival is very important because the sound quality is very good keep at it


heres a nice little pic for that robot sound
for personal use only of course Wink

thanks

Joe
Wall-E-200.png
 Description   
 Filesize   57.97 KB
 Viewed   2118 Time(s)

Wall-E-200.png


_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Fri 02 Jul 2010, 14:19    Post subject: Re: Learning experience  

Minnesota wrote:
Lobster:
Can you direct me to the Pets??
Thanks everyone.


Page 2 of this very thread

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Mon 05 Jul 2010, 13:45    Post subject:  

Dear Puppians (particularly Lobster and big_bass),

I did something for xcowsay over the past few days. Here is a little markup editor that allows for nice tag editing and preview, plus voice synthesis and the saving of results in ready-to-run executable scripts. Please have a look. Much more info on how this thing runs is available in the help file.

Have fun.

With kind regards,
vovchik

PS. Please bear in mind that this is kind of a "first draft", and suggestions are always welcome.
xcowmoo-small.jpg
 Description   
 Filesize   29.05 KB
 Viewed   2064 Time(s)

xcowmoo-small.jpg

xcowmoo.pet
Description 
pet

 Download 
Filename  xcowmoo.pet 
Filesize  35.6 KB 
Downloaded  661 Time(s) 
Back to top
View user's profile Send private message 
Jim1911

Joined: 19 May 2008
Posts: 2457
Location: Texas, USA

PostPosted: Mon 05 Jul 2010, 17:14    Post subject:  

vovchik wrote:
I did something for xcowsay over the past few days. Here is a little markup editor that allows for nice tag editing and preview, plus voice synthesis and the saving of results in ready-to-run executable scripts. Please have a look. Much more info on how this thing runs is available in the help file.
Thanks for the pet, however, not working on luci-208.
Code:
# xcowmoo-run
./xcow-moo: line 420: gtkdialog: command not found

Jim
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Mon 05 Jul 2010, 17:21    Post subject:  

Dear Jim,

The problem is that gtkdialog in many Puppies has been renamed gtkdialog3 (to distinguish it from an earlier version of gtkdialog, which is called gtkdialog2 in some Puppies). The program will run fine if you simply make a symlink (using Rox, right click on /usr/sbin/gtkdialog3 and click on "Symlink", having deleted the "3" from the input box). You will then have a symlink to gtkdialog3 name gtkdialog (which is the standard name, BTW).

With kind regards,
vovchik

PS. I will do that automatically in the next version.
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 887

PostPosted: Mon 05 Jul 2010, 17:34    Post subject:  

vovchik,

Yes, that is alot of fun - nice job. The only thing that didn't work was the span "font" selection. I'm using Pup 431 and since I don't have a $HOME./fonts directory, I created it and linked my "fonts.dir" file and it still didn't work - I'll try to look at the code later.


Jim1911 wrote:
Thanks for the pet, however, not working on luci-208.
Code:
# xcowmoo-run
./xcow-moo: line 420: gtkdialog: command not found

[/quote]

Jim, try this in a terminal -
Code:
ln /usr/sbin/gtkdialog3 /usr/sbin/gtkdialog


And then restart.

Cheers,
s

(Edit, didn't see Vovchik's post's answer) Very Happy
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Mon 05 Jul 2010, 17:49    Post subject:  

Dear seaside,

I am glad you're having fun. I am, to be sure. You may have to update your fonts.dir (i.e. make it real or refresh it).

The commands are (from a term in the $HOME/.fonts dir):
Code:

mkfontscale .
mkfontdir .
fc-cache -fv . (takes a minute)
xset fp+ /root/.fonts


Note the space and full stop in the stuff above. Then restart X. Some old M$ TTF fonts don't display well with Pango, so check out a few fonts. My old Academy fonts dumped from an M$ machine work fine in nearly all GTK apps, QT/KDE and OO but do not display in a few apps where Pango is involved. I will have to massage them in fontforge, I suppose.

With kind regards,
vovchik
Back to top
View user's profile Send private message 
Jim1911

Joined: 19 May 2008
Posts: 2457
Location: Texas, USA

PostPosted: Mon 05 Jul 2010, 18:15    Post subject:  

vovchik wrote:
The problem is that gtkdialog in many Puppies has been renamed gtkdialog3 (to distinguish it from an earlier version of gtkdialog, which is called gtkdialog2 in some Puppies). The program will run fine if you simply make a symlink (using Rox, right click on /usr/sbin/gtkdialog3 and click on "Symlink", having deleted the "3" from the input box). You will then have a symlink to gtkdialog3 name gtkdialog (which is the standard name, BTW).
Worked, thanks,
Jim
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 887

PostPosted: Mon 05 Jul 2010, 18:48    Post subject:  

vovchik wrote:
Dear seaside,

I am glad you're having fun. I am, to be sure. You may have to update your fonts.dir (i.e. make it real or refresh it).

The commands are (from a term in the $HOME/.fonts dir):
Code:

mkfontscale .
mkfontdir .
fc-cache -fv . (takes a minute)
xset fp+ /root/.fonts


Note the space and full stop in the stuff above. Then restart X. Some old M$ TTF fonts don't display well with Pango, so check out a few fonts. My old Academy fonts dumped from an M$ machine work fine in nearly all GTK apps, QT/KDE and OO but do not display in a few apps where Pango is involved. I will have to massage them in fontforge, I suppose.

With kind regards,
vovchik


Vovchik,

Thanks for the pointer on refreshing the fonts. I looked at the code and made this change in line 43. (Removed "!" -not- in front of "-e" at the beginning of the line)

Code:
 [  -e "$FILE_FONT" ] && egrep -v  "(Bold|Oblique|Italic)"  "$FILE_FONT_DIR" | cut -d "-" -f1 | uniq | grep -E "^[a-zA-Z]" | cut -d "." -f1 > $FILE_FONT && cut -d "-" -f1 /usr/share/fonts/X11/100dpi/fonts.alias | uniq | grep -E "^[a-zA-Z]" >> $FILE_FONT


All the fonts show up now in the span area.

Thanks again for bringing the singing and felicity of talking cows, cats and puppies into a nice integrated package.

Regards,
s
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Mon 05 Jul 2010, 19:08    Post subject:  

Dear seaside,

I have already implemented your mod and it will be in the next release. I also should probably put a button on the bottom to open rox in /usr/local/xcowmoo/dialog or make a combobox or filechoose button to show the dialog files so they can be launched as a kind of "proof of the pudding". Users may not know where to find the generated scripts. I am certain a good many ideas for improvement will come to us. Also, to create mini-animations, there should be a possibility to sequence the generated dialogs in a concatenated script or a launch file.

Thanks.

With kind regards,
vovchik

PS. It occurred to me that line 43 (without the "not") won't create a file if there is none, so I have to do a file check. Although that line is hideously long already, I thought it might benefit from a "| sort -f" at the very end, so that we get a font list that is sorted without case sensitivity. It is easier to find fonts that way, at least for me.
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 887

PostPosted: Mon 05 Jul 2010, 19:24    Post subject:  

vovchik wrote:
Dear seaside,

I have already implemented your mod and it will be in the next release. I also should probably put a button on the bottom to open rox in /usr/local/xcowmoo/dialog or make a combobox or filechoose button to show the dialog files so they can be launched as a kind of "proof of the pudding". Users may not know where to find the generated scripts. I am certain a good many ideas for improvement will come to us. Also, to create mini-animations, there should be a possibility to sequence the generated dialogs in a concatenated script or a launch file.

Thanks.

With kind regards,
vovchik


Vovchik,

I always wondered where the saying "proof of the pudding" came from. Was it from one of those early days of history when merchants tried to fake such things or some other origin. I think the proof would be good. Very Happy

I noticed this line used in the gtkdialog tree script -"<action signal="cursor_changed">". I don't remember seeing that action signal before - is this another secret gtkdialog function? Very Happy

Looking forward to any new versions,

Regards,
s
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Tue 06 Jul 2010, 09:38    Post subject:  

Dear seaside,

The "<action signal="cursor_changed">" bit is also used by Zibert. Here, for instance:http://www.murga-linux.com/puppy/viewtopic.php?t=35601&start=2280. It would be nice if gtkdialog were documented properly, wouldn't it?

With kind regards,
vovchik
Back to top
View user's profile Send private message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Wed 07 Jul 2010, 22:46    Post subject:  

vovchick
Quote:
Dear Puppians (particularly Lobster and big_bass),



great stuff

any GUI that helps the end user code something faster and error free
with pre-built in commands that are tested
will advance the usability greatly

so more fun and less time coding Very Happy

*a mini how to would be motivating to get more people started
and try some simple commands to get comfortable

* I pre installed xcowsay and flite in my new ISO called TXZ_pup 4.5
so any examples with flite would be nice to add and fun to test

Joe

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Fri 30 Jul 2010, 05:28    Post subject: Ganesha  

Dear vovchik, fellow fun lovers, Very Happy



Editor is a great idea
Had to play about a bit to understand how to get that link . . .
Cool

One of my duties as official crustacean to Puppy Linux
is to provide cyber elephants. Rolling Eyes
It is a hard job but someone has to be crazy enough to do it . . . Wink

I have done that with the enclosed file which is designed
for Lucid 5.1 (it will not work in Lucid 5.0) as mplayer is used.
If you want to use another version of Puppy
you will need to change
Code:
mplayer Ganesh_Mantra.mp3 "$@" &

to something like
Code:
gxine Ganesh_Mantra.mp3 "$@" &


Download the file
unzip in a directory
and run the xpupsay-1 pet
then run 'xcowsay'


It is a vedic invocation
to the Hindu deity Ganesh - partially elephant
(featuring Shivas male cow)
Ganapatayei is one of Ganeshas many names

Below is the code
I mean it as a serious contribution to
a 40 day practice/puja I am doing
Much to my surprise Ganesha is venerated by some Christians,
as well as Hindus, Jains, Buddhists, the spiritually demented

I did try using flite for repeating mantras
but found it hard to get an acceptable effect
- if you have flite installed there is still a remnant
in the code . . .

The best I could do with flite, is this mantra to Murugan (brother of Ganesh)
Code:
flitet "OM, SHA-RA-VA-NA-BHA-VA-YA, NAHMA-HAH."


So what I have done is use an actual mp3 file and repeated that
Not sure how it works out on slower computers . . .
and of course doing it this way, makes the size larger . . .
It also counts the number of mantras recited and displays that

Code:
#! /bin/bash
# Sacred Vedic Chants
# Lobster, Vovchic, Joe Big Bass, Seaside, Potong
 - Aug 6 010

# --------------------
function init_vars()
# --------------------
{
txt1="Ganesh\n
Will chant mantras for you\n
OM SHANTI OM"
   
txt2="Om Gam Ganapatayei Namaha"   

   sec=10
   fnt="DejaVu Sans Bold 15"
   repetitions=27  # Change the number of recitations
}

# # # # # # # # # # # # # # #
function display_message()
# # # # # # # # # # # # # # #

{
 aplay tinsha.wav "$@" &
 xpupsay --image=ganesha1.gif --time=4 "Om Gam Ganapatayei Namaha"  "$@"
   printf %b "$txt1" | xpupsay --image=nandi.png --time=$sec --font="$fnt" "$@" | aplay &
  sleep 10
 
 for g in $(eval echo {$repetitions..1})
  do
     mplayer Ganesh_Mantra.mp3 "$@" &
     printf %b "$txt2 \n\n" " $g" | xpupsay --image=ganesh.gif --time=6 --font="$fnt" "$@"
  done
 sleep 2

 xpupsay --image=ganesha1.gif --time=9 "Om Gam Ganapatayei Namaha" "$@" &
 aplay tinsha.wav "$@" &
}

# # # # # # # #
# END FUNCTIONS
# # # # # # # #

# # # # # # # #
# MAIN
# # # # # # # #

init_vars
display_message

# # # # # # # #
# END MAIN
# # # # # # # #


For those of you not used to Hindu iconography
it can be a little disconcerting

So . . .
The mantra is a greeting to Ganesh
and is designed to overcome obstacles
You can chant along or just listen
Any merit is dedicated to Puppy Linux Lucid 5.1
and in particular Larry and Mick
who have worked on two Puppy editions now

I have set the mantra to repeat 27 times
which is enough to gain a little piece of peace
but not turn you completely Ganapatayei

Om Gam Ganapatayei Namaha

Holy Cow
it's Puppy Linux
Very Happy
ganesh.zip
Description 
zip

 Download 
Filename  ganesh.zip 
Filesize  430.33 KB 
Downloaded  447 Time(s) 

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
seaside

Joined: 11 Apr 2007
Posts: 887

PostPosted: Fri 06 Aug 2010, 17:04    Post subject:  

Lobster,

So this is what the repetitions were for.......

An elephantine, way off-broadway, Tibetan chanting production of "Hello Dalai". Very Happy

Would I be repeating myself by saying "Isn't this what Puppy is all about?" - "**** four stars, enchanting, spellbinding -don't miss"

Ciao,
s
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 5 of 6 [85 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1142s ][ Queries: 13 (0.0091s) ][ GZIP on ]