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 Tue 27 Jun 2017, 15:23
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
lletters: a game to teach the alphabet to children
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
muggins

Joined: 20 Jan 2006
Posts: 6721
Location: hobart

PostPosted: Tue 07 Aug 2007, 00:58    Post subject:  lletters: a game to teach the alphabet to children  

http://lln.sourceforge.net/



Quote:
It is intended for children 2 and up, and is a fun learning game. It helps younger chilren learn their letters and numbers, while older children will improve their spelling, and vocabulary skills. It also helps them develop important keyboard and mouse skills too.


c00kie1000 let me know of lletters, a game for children to learn the alphabet & numbers.



it's easy to add different images or sounds. e.g. i pinched klu9's dingo puppy from this thread:

http://www.murga-linux.com/puppy/viewtopic.php?search_id=1249112561&t=20306&start=15

saved the image to /usr/share/lletters/images/Puppy.jpg, then added a sound from the net to the sounds directory & renamed as Puppy.wav, so on pressing the letter "P", a puppy barks.

I've separated out the .wav sound files, into an additional lletters-wav.tar.bz2 package, as it was too big for the forum limits. Just extract it to /, and it will deposit the .wav files into /usr/share/lletters/sounds directory, (plus the wav player wavr into /usr/bin).


Run via Menu->Fun->Lletters, or by typing lletters in a console.

N.B. As the program is gtk1-based, if you're using pup4, then you would need to install the following .pets:

glib12-1.2.10.pet (53k)
gtk+12-1.2.10.pet (522k)
gdk_pixbuf10-0.22.0.pet (121k)
imlib-1.9.15-1.pet (386k)

(If you install them in the order above, you won't get any error messages).
Back to top
View user's profile Send private message 
sidders

Joined: 23 Jul 2008
Posts: 470
Location: Bolton, uk

PostPosted: Thu 15 Jan 2009, 09:45    Post subject:  

Has anyone tried this on 3.01 (Edupup). I have installed it and even it works, it doesnt look like the screenshot. In particular the font of the letters.
Back to top
View user's profile Send private message 
sidders

Joined: 23 Jul 2008
Posts: 470
Location: Bolton, uk

PostPosted: Mon 16 Feb 2009, 16:42    Post subject:  

I have mailed a pragrammer i know about the font issue. I will attempt to get to make sense of this, but its a massive learning curve. I'm still getting my head round all things Linux, in particular Puppy at the moment, but if his makes sense to anybody feel free. His reply is:

Looking at the source code, in lln_window.c there's a routine lln_set_widget_font that looks at one time to have done the font-setting for a widget. The line that looks to actually set the font (highlighted) is commented out i.e inside /* */

To change the font you’d have to uncomment this code and set the correct parameter for the gdk_font_load call for the required font.

This raises two questions (1) why has he commented this section out, perhaps it did not work properly (2) what gdk_font_load is, is it a standard library function, where is the interface defined?

So to change the font you’d have to first uncomment this section and recompile / rerun to see what happens, then if all was ok, find the interface definition for gdk_font_load ( in a .h file somewhere ) and change the call to select the required font, recompile and rerun.


#include "lletters.h"

/* Set the font of a widget */
void
lln_set_widget_font (GtkWidget * widget)
{

/*GtkStyle *style;

gtk_widget_ensure_style (widget);
style = gtk_style_copy (widget->style);

style->font = gdk_font_load ("-*-utopia-*-r-*-*-60-400-*-*-*-*-*-*");

gtk_widget_set_style (widget, style);*/

gtk_widget_set_name (widget, "main_label");
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6721
Location: hobart

PostPosted: Tue 17 Feb 2009, 02:54    Post subject:  

I don't have a pup3 install to test, but what is the problem with how the fonts are displayed...the actual font, or the font size? If the latter, does Menu->Desktop->Set global font size have any effect?

Have you seen SHS's howto on fonts here?
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6721
Location: hobart

PostPosted: Tue 17 Feb 2009, 03:45    Post subject:  

OK, I just had a look at the lletters sources and see that, in the file "NEWS", it mentions that:

Quote:
lln.c (main): Added support for GTK rc files. You can now use a global
or user specific rc file to change the colors, backgrounds, and fonts.

* lln.rc/.llnrc: Created default rc files.


Unfortunately when I compiled lletters, AFAIK, these files weren't created. But, following this link:

http://www.moeraki.com/pygtktutorial/pygtk2tutorial/sec-ExampleRcFile.html

If you copy this file, and save it as /usr/share/lletters/lln.rcb, then this definitely alters the look of lletters.

Then, if you just added a hash, (#), in front of those lines that you wanted to have no effect, then altered the lines that change the font, you should be able to achieve the effect you're seeking.
Back to top
View user's profile Send private message 
sidders

Joined: 23 Jul 2008
Posts: 470
Location: Bolton, uk

PostPosted: Tue 17 Feb 2009, 03:56    Post subject:  

Thanks Muggins i will give it a try.
The problem seems to be with the front end. Where-as on the example your origonal post the letters and numbers on the grid fill the 'click on' box. The one in 3.01, the letter and numbers are a fraction of the size and it looks uninspriring. I will try it in 4.12 and see how it looks. I have started to collect pics and am going to record some Kids saying the letters and numbers, which i will make available.

Thanks for the suggestion
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6721
Location: hobart

PostPosted: Tue 17 Feb 2009, 17:10    Post subject:  

I've attached the lln.rc file from the debian port of lletters.
lln.rc.zip
Description 
zip

 Download 
Filename  lln.rc.zip 
Filesize  1.88 KB 
Downloaded  400 Time(s) 
Back to top
View user's profile Send private message 
sidders

Joined: 23 Jul 2008
Posts: 470
Location: Bolton, uk

PostPosted: Tue 17 Feb 2009, 17:19    Post subject:  

Great. Thanks. I will give it a whirl and post back.

Thanks again for your efforts
Back to top
View user's profile Send private message 
sidders

Joined: 23 Jul 2008
Posts: 470
Location: Bolton, uk

PostPosted: Tue 17 Feb 2009, 18:32    Post subject:  

Spot on muggins. Playing with the rc file, particularly the section:

#Definie a style for captions.
style "lln_caption"
{
font = "-*-utopia-*-r-*-*-60-400-*-*-*-*-*-*"

changing the font to helvetica for example changed what was needed to change. I am going to experiment with the fonts (helvetica looks broken). I will try to mimic a font in the screenshot in your firs post.
Back to top
View user's profile Send private message 
sidders

Joined: 23 Jul 2008
Posts: 470
Location: Bolton, uk

PostPosted: Tue 31 Mar 2009, 15:42    Post subject:  

I have had a play with the fonts and downloaded Fun Fonts. I have used one called "Beast Wars". The name doesnt really characerise the font, never-the-less. I dropped into:

/usr/X11R6/lib/X11/fonts/TTF
Ran commands:

mkfontscale .
mkfontdir .
fc-cache -f

Edited the RC file.

I am collecting photos and getting rid of the pictures, then i will record some kids saying the words. I will post back when i have finished wil the files location. Just got to find somnething beginning with Q (apart from Her Majesty)
Back to top
View user's profile Send private message 
muggins

Joined: 20 Jan 2006
Posts: 6721
Location: hobart

PostPosted: Tue 31 Mar 2009, 17:33    Post subject:  

Quokka?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Games
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.0429s ][ Queries: 14 (0.0056s) ][ GZIP on ]