[gcompris-devel] Japanese falling letters

Yan Seiner yan at cardinalengineering.com
Sat Feb 7 04:18:01 UTC 2004


Bruno Coudoin wrote:
> Le sam 07/02/2004 à 12:25, Yan Seiner a écrit :
> 
>>Bruno Coudoin wrote:
>>
>>>>>I don't know for Japanese but gcompris uses UTF-8 as it's coding
>>>>>standard, including the falling words. For letters, it's different.
>>>>>Gcompris is hardcoded to use a-z letter set. You can change this in
>>>>>gletters.c. This will need to add code to make sure a-z is still the
>>>>>default.
>>
>>I'm thinking of rewriting the gletters.c to something like gkana.c, 
>>rather than relying on locale.  That way, a non-speaker can learn kana. 
>>  I've looked at the code; it looks pretty good and it shouldn't be that 
>>hard.
>>
> 
> No, it's not the solution. You should implement it in gletters. I don't
> see your point about "non-speakers". Well you can fork this file but I
> won't release it in gcompris. I don't wan't to have an activity specific
> to a locale. gcompris is international.

I think we're talking about the same thing here.  My default locale is 
cs_CZ, but my kids are learning Japanese.  I want to be able to bring up 
gcompris, and play a falling kana game without changing my locale, while 
maintaining my instructions in Czech.  I though that it would be easier 
to do this as a separate game, rather than switch between roman alphabet 
and kana based on locale.  Are you saying the same thing?

If I implement this in gletters, how would users switch between roman 
and japanese?

As far as the non-speakers go, I can imagine lots of parents who don't 
speak japanese but whose kids are learning japanese at a basic level in 
school, so the locale will be set to the parent's locale, but the game 
will be in Japanese.  Anyone who can read Japanese will not need to play 
this game other than for fun.

> 
> 
>>The one big question I have, and this may be a stupid question, where do 
>>the letter images get generated?  This may be obvious to some, but I 
>>have never done any graphics programming under linux.
>>
> 
> 
> Since gcompris 5.0 letter and number images have been removed. Now we
> use this kind of code to create a text. No images.
> 
>   gnome_canvas_item_new (GNOME_CANVAS_GROUP(item),
> 			 gnome_canvas_text_get_type (),
> 			 "text", "<UTF-8 String>",

                                   ^^^^^^^^^^^^^^^
so this is the char code for the image  I want? that would be too easy. 
   :-)

> 			 "font", gcompris_skin_font_board_huge_bold,
> 			 "x", (double) x,
> 			 "y", (double) -20,
> 			 "anchor", GTK_ANCHOR_CENTER,
> 			 "fill_color_rgba", 0x8c8cFFFF,
> 			 NULL);
> 

--Yan

-- 
         o
      /\ /_       o__
    o*  ~(_)      ,>/'_      o__
Yan Seiner, PE  (_)\(_)     ,>/'_   o__     o__
Cardinal Engineering, Inc. (_)\(_)  ,>/'_   ,>/'_
http://www.cardinalengineering.com (_)\(_) (_)\(_)
spam killer code kpwq1jkcsEzdx39gnkVvgycd15ayqq






More information about the Gcompris-devel mailing list