Commit 3593ccb6 authored by Yves Combe's avatar Yves Combe

- add new activity: memory_enumerate. Pictures by Mathieu.

svn path=/branches/gcomprixogoo/; revision=3635
parent d171b4a7
2008-12-08 Yves Combe <yves@ycombe.net>
- add new activity: memory_enumerate. Pictures by Mathieu.
* configure.in:
* po/POTFILES.in:
* src/Makefile.am:
* src/memory-activity/memory.c: (get_random_token), (start_board),
(get_image), (create_item), (compare_card):
* src/memory-activity/resources/memory/math_0.svg:
* src/memory-activity/resources/memory/math_1.svg:
* src/memory-activity/resources/memory/math_2.svg:
* src/memory-activity/resources/memory/math_3.svg:
* src/memory-activity/resources/memory/math_4.svg:
* src/memory-activity/resources/memory/math_5.svg:
* src/memory-activity/resources/memory/math_6.svg:
* src/memory-activity/resources/memory/math_7.svg:
* src/memory-activity/resources/memory/math_8.svg:
* src/memory-activity/resources/memory/math_9.svg:
* src/memory_enumerate-activity/Makefile.am:
* src/memory_enumerate-activity/init_path.sh:
* src/memory_enumerate-activity/memo_enumerate.svg:
* src/memory_enumerate-activity/memory_enumerate.xml.in:
2008-12-01 Bruno Coudoin,,,, <set EMAIL_ADDRESS environment variable>
- Completed the canal lock rework based on the new graphism
......
......@@ -805,6 +805,7 @@ src/gnumch-primes-activity/Makefile
src/mosaic-activity/Makefile
src/mosaic-activity/resources/Makefile
src/mosaic-activity/resources/mosaic/Makefile
src/memory_enumerate-activity/Makefile
src/goocanvas/Makefile
src/goocanvas/src/Makefile
])
......
......@@ -481,6 +481,7 @@ src/memory_mult_tux-activity/memory_mult_tux.xml.in
src/memory_sound-activity/memory_sound.xml.in
src/memory_sound_tux-activity/memory_sound_tux.xml.in
src/memory_tux-activity/memory_tux.xml.in
src/memory_enumarate-activity/memory_enumerate.xml.in
src/missing_letter-activity/missing_letter.xml.in
src/missing_letter-activity/missingletter.c
src/missing_letter-activity/resources/missing_letter/board1.xml.in
......
......@@ -55,6 +55,7 @@ SUBDIRS = goocanvas gcompris boards \
memory_mult_div-activity \
memory_mult_div_tux-activity \
memory_mult_tux-activity \
memory_enumerate-activity \
memory_sound-activity \
memory_sound_tux-activity \
memory_tux-activity \
......
......@@ -75,6 +75,7 @@ typedef enum
BOARDMODE_ADD_MINUS = 6,
BOARDMODE_MULT_DIV = 7,
BOARDMODE_ADD_MINUS_MULT_DIV = 8,
BOARDMODE_ENUMERATE = 9,
} BoardMode;
static BoardMode currentBoardMode = BOARDMODE_NORMAL;
......@@ -254,6 +255,22 @@ static gchar *soundList[] =
#define NUMBER_OF_SOUNDS G_N_ELEMENTS(soundList)
/* List of images to use in the enumerate memory */
static gchar *enumerateList[] =
{
"memory/math_0.svg",
"memory/math_1.svg",
"memory/math_2.svg",
"memory/math_3.svg",
"memory/math_4.svg",
"memory/math_5.svg",
"memory/math_6.svg",
"memory/math_7.svg",
"memory/math_8.svg",
"memory/math_9.svg",
};
#define NUMBER_OF_ENUMERATES G_N_ELEMENTS(enumerateList)
static SoundPolicy sound_policy;
/* Description of this plugin */
......@@ -392,6 +409,8 @@ static guint div_levelDescription[10][2] =
#define TYPE_MINUS 64
#define TYPE_MULT 128
#define TYPE_DIV 256
#define TYPE_ENUMERATE 512
#define TYPE_ENUMERATE_IMAGE 1024
static GList *passed_token = NULL;
......@@ -496,6 +515,14 @@ void get_random_token(int token_type, gint *returned_type, gchar **string, gchar
data = g_list_append(data, dat);
}
if (token_type & TYPE_ENUMERATE){
max_token += NUMBER_OF_ENUMERATES;
DATUM *dat = g_malloc0(sizeof(DATUM));
dat->bound = max_token;
dat->type = TYPE_ENUMERATE;
data = g_list_append(data, dat);
}
g_assert(max_token >0);
......@@ -584,6 +611,11 @@ void get_random_token(int token_type, gint *returned_type, gchar **string, gchar
second = g_strdup_printf("%d",i2);
break;
}
case TYPE_ENUMERATE:
result = g_malloc0(2*sizeof(gunichar));
g_utf8_strncpy(result, g_utf8_offset_to_pointer (numbers,k),1);
second = g_strdup(enumerateList[k]);
break;
default:
/* should never append */
g_error("never !");
......@@ -764,10 +796,22 @@ static void start_board (GcomprisBoard *agcomprisBoard)
currentUiMode=UIMODE_NORMAL;
currentBoardMode=BOARDMODE_ADD_MINUS_MULT_DIV;
} else {
currentMode=MODE_NORMAL;
currentUiMode=UIMODE_NORMAL;
currentBoardMode=BOARDMODE_NORMAL;
g_warning("Fallback mode set to images");
if(g_strcasecmp(gcomprisBoard->mode, "enumerate")==0){
currentMode=MODE_NORMAL;
currentUiMode=UIMODE_NORMAL;
currentBoardMode=BOARDMODE_ENUMERATE;
} else {
if(g_strcasecmp(gcomprisBoard->mode, "enumerate_tux")==0){
currentMode=MODE_TUX;
currentUiMode=UIMODE_NORMAL;
currentBoardMode=BOARDMODE_ENUMERATE;
} else {
currentMode=MODE_NORMAL;
currentUiMode=UIMODE_NORMAL;
currentBoardMode=BOARDMODE_NORMAL;
g_warning("Fallback mode set to images");
}
}
}
}
}
......@@ -786,7 +830,7 @@ static void start_board (GcomprisBoard *agcomprisBoard)
}
}
}
if (currentUiMode == UIMODE_SOUND)
{
......@@ -815,6 +859,11 @@ static void start_board (GcomprisBoard *agcomprisBoard)
}
else
{
if (currentBoardMode==BOARDMODE_ENUMERATE)
{
gcomprisBoard->maxlevel = 6;
}
gc_set_background(goo_canvas_get_root_item(gcomprisBoard->canvas),
"memory/scenery_background.png");
base_x1 = BASE_CARD_X1;
......@@ -1059,9 +1108,13 @@ static void get_image(MemoryItem *memoryItem, guint x, guint y)
if(memoryArray[x][y])
{
// Get the pair's image
if (memoryArray[x][y]->type & (TYPE_ADD|TYPE_MINUS|TYPE_MULT|TYPE_DIV)){
if (memoryArray[x][y]->type & (TYPE_ADD|TYPE_MINUS|TYPE_MULT|TYPE_DIV|TYPE_ENUMERATE)){
memoryItem->data = memoryArray[x][y]->second_value;
memoryItem->type = memoryArray[x][y]->type;
if (memoryArray[x][y]->type == TYPE_ENUMERATE) {
memoryItem->type = TYPE_ENUMERATE_IMAGE;
} else {
memoryItem->type = memoryArray[x][y]->type;
}
memoryArray[x][y] = memoryItem;
// if created by g_malloc0, this is not usefull;
//memoryItem->second_value = NULL;
......@@ -1142,6 +1195,10 @@ static void get_image(MemoryItem *memoryItem, guint x, guint y)
get_random_token ( TYPE_ADD | TYPE_MINUS |TYPE_MULT | TYPE_DIV , &memoryItem->type, &memoryItem->data, &memoryItem->second_value);
g_assert (memoryItem->type & (TYPE_ADD | TYPE_MINUS |TYPE_MULT | TYPE_DIV));
break;
case BOARDMODE_ENUMERATE:
get_random_token ( TYPE_ENUMERATE , &memoryItem->type, &memoryItem->data, &memoryItem->second_value);
g_assert (memoryItem->type & TYPE_ENUMERATE);
break;
default:
g_error("Don't now in what mode run !");
......@@ -1318,17 +1375,30 @@ static void create_item(GooCanvasItem *parent)
gdk_pixbuf_unref(pixmap);
}
else {
if(memoryItem->type == TYPE_IMAGE) {
pixmap = gc_pixmap_load(memoryItem->data);
if(memoryItem->type & (TYPE_IMAGE|TYPE_ENUMERATE_IMAGE)) {
pixmap = gc_pixmap_load(memoryItem->data);
memoryItem->frontcardItem = \
goo_canvas_image_new (memoryItem->rootItem,
pixmap,
(width2-
gdk_pixbuf_get_width(pixmap))/2,
(height2-
gdk_pixbuf_get_height(pixmap))/2,
NULL);
0.0,
0.0,
NULL);
/* scale only in ENUMERATE (image size too big) */
if(memoryItem->type == TYPE_ENUMERATE_IMAGE) {
goo_canvas_item_scale(memoryItem->frontcardItem,
(0.9*width2 / gdk_pixbuf_get_width(pixmap)),
(0.9*height2 / gdk_pixbuf_get_height(pixmap)));
goo_canvas_item_translate(memoryItem->frontcardItem,
0.1 * width2,
0.1 * height2);
} else {
goo_canvas_item_translate(memoryItem->frontcardItem,
(width2 - gdk_pixbuf_get_width(pixmap))/2,
(height2 - gdk_pixbuf_get_height(pixmap))/2);
}
gdk_pixbuf_unref(pixmap);
} else {
......@@ -1632,7 +1702,7 @@ compare_card (gconstpointer a,
MemoryItem *card1 = (MemoryItem *)a;
MemoryItem *card2 = (MemoryItem *)b;
if (card1->type & (TYPE_ADD|TYPE_MINUS|TYPE_MULT|TYPE_DIV)){
if (card1->type & (TYPE_ADD|TYPE_MINUS|TYPE_MULT|TYPE_DIV|TYPE_ENUMERATE|TYPE_ENUMERATE_IMAGE)){
if ((!card1->second_value) && ( card2->second_value)){
return strcmp(card1->data,card2->second_value);
}
......
......@@ -74,6 +74,16 @@ img_DATA = \
tri.ogg \
Tux_mute.png \
Tux_play.png \
tux-teacher.png
tux-teacher.png \
math_0.svg \
math_1.svg \
math_2.svg \
math_3.svg \
math_4.svg \
math_5.svg \
math_6.svg \
math_7.svg \
math_8.svg \
math_9.svg
EXTRA_DIST = $(img_DATA)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="120"
height="200"
id="svg3055"
sodipodi:version="0.32"
inkscape:version="0.46"
sodipodi:docbase="/home/mat/Travaux/inkscape/Gcompris/memory"
sodipodi:docname="math_1.svg"
version="1.0"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/mat/Travaux/inkscape/Gcompris/memory/math_1.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs3057">
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 100 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="120 : 100 : 1"
inkscape:persp3d-origin="60 : 66.666667 : 1"
id="perspective2660" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="3.4025974"
inkscape:cx="61.5"
inkscape:cy="100.5"
inkscape:document-units="px"
inkscape:current-layer="layer1"
inkscape:window-width="1280"
inkscape:window-height="981"
inkscape:window-x="-4"
inkscape:window-y="-5"
height="200px"
width="120px"
showguides="true"
inkscape:guide-bbox="true"
showgrid="false">
<sodipodi:guide
orientation="0,1"
position="-509,209"
id="guide2682" />
</sodipodi:namedview>
<metadata
id="metadata3060">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="120"
height="200"
id="svg3055"
sodipodi:version="0.32"
inkscape:version="0.46"
sodipodi:docbase="/home/mat/Travaux/inkscape/Gcompris/memory"
sodipodi:docname="math_1.svg"
version="1.0"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/mat/Travaux/inkscape/Gcompris/memory/math_1.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs3057">
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 100 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="120 : 100 : 1"
inkscape:persp3d-origin="60 : 66.666667 : 1"
id="perspective2660" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="3.4025974"
inkscape:cx="61.5"
inkscape:cy="100.5"
inkscape:document-units="px"
inkscape:current-layer="layer1"
inkscape:window-width="1280"
inkscape:window-height="981"
inkscape:window-x="-4"
inkscape:window-y="-5"
height="200px"
width="120px"
showguides="true"
inkscape:guide-bbox="true"
showgrid="false">
<sodipodi:guide
orientation="0,1"
position="-509,209"
id="guide2682" />
</sodipodi:namedview>
<metadata
id="metadata3060">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1">
<g
id="g3688"
transform="matrix(0.7725897,0.6349057,-0.6349057,0.7725897,47.095804,78.236291)">
<path
id="path3690"
d="M 27.49405,2.8072892 C 26.85205,2.7747158 25.91384,2.905322 25.872778,3.7197924 C 25.514201,5.5988342 25.735303,7.5224394 25.743818,9.4208738 C 25.277335,9.424156 24.826191,9.5796619 24.388105,9.7006241 C 23.848338,7.6981423 23.35288,5.4673078 21.723303,4.055406 C 20.837653,3.4534406 19.710463,3.9245437 19.022637,4.6077336 C 18.484838,4.9563174 18.019305,5.9080076 18.7393,6.3256875 C 19.276649,6.6634957 19.952509,6.5887711 20.546917,6.4906685 C 21.249111,8.0691704 22.115453,9.6536904 22.716776,11.228491 C 22.558353,11.508078 22.449023,11.813756 22.372468,12.125127 C 19.678766,10.734674 16.493569,11.086359 13.569582,11.331024 C 11.794075,11.555247 9.6749474,12.191231 8.9659714,14.018821 C 8.2997811,15.969948 9.3685561,17.956711 10.37262,19.574316 C 12.142332,22.371598 14.506751,24.719896 16.752355,27.141981 C 15.87622,30.507583 14.645375,33.947335 15.085012,37.473528 C 15.610473,39.645882 14.854381,41.990117 15.701498,44.099154 C 16.030874,44.682042 16.918976,44.274492 16.899404,43.672356 C 17.243664,42.594578 16.92384,41.291721 17.634645,40.35839 C 19.790412,40.542965 21.783218,39.386526 23.634931,38.425244 C 25.311063,37.43899 26.755953,35.973888 27.436666,34.128566 C 27.740674,34.905897 28.435319,35.974233 29.412851,35.677952 C 30.310907,35.303876 30.427398,34.187991 30.582064,33.350286 C 32.571537,35.807847 35.907453,36.56908 38.9386,36.755314 C 39.782856,36.790819 40.647212,36.729691 41.442115,36.438299 C 42.500245,37.287443 42.32293,38.947332 43.339396,39.827582 C 43.821201,40.166295 44.33183,39.612567 44.27907,39.117446 C 44.324903,37.908477 43.888622,36.750955 43.626078,35.589405 C 43.256102,34.559859 43.115413,33.481211 43.005847,32.399852 C 42.343996,29.13608 40.434015,26.361834 38.788073,23.533919 C 38.680466,22.979221 39.297146,22.625625 39.411693,22.105287 C 41.201001,18.656496 43.219526,15.129436 43.467723,11.185487 C 43.517107,9.6613183 42.716441,7.9819229 41.165951,7.5486985 C 38.683655,6.7262632 36.045478,7.6224004 33.610212,8.2195848 C 31.827029,8.705226 30.039656,9.6295232 28.817485,10.934395 C 28.548807,10.546677 28.193723,10.221014 27.788147,9.9696148 C 28.026362,8.4038328 28.067294,6.6837088 28.422965,5.2174458 C 29.302944,5.1893283 30.365253,4.3101456 29.940072,3.381136 C 29.376276,2.6409078 28.307087,2.8327715 27.49405,2.8072892 z"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cccccccscccccccccccccccccccccccccccccssssccssssccsscccsscccssssccssssc"
id="path3692"
d="M 27.151656,4.1288724 C 26.877343,4.4477083 27.020615,5.0141083 27.015537,5.4965384 C 27.071213,5.0306691 27.144626,4.5376676 27.151656,4.1288724 z M 27.015537,5.4965384 C 27.00154,5.6136674 26.98674,5.7279558 26.976646,5.8400754 C 27.005638,5.7356349 27.014266,5.6171767 27.015537,5.4965384 z M 20.773534,5.088183 C 20.749358,5.0886708 20.727439,5.0900553 20.702235,5.094665 C 19.965992,5.231053 21.032201,5.2031531 20.980954,5.1400378 C 20.916835,5.1028177 20.846066,5.08672 20.773534,5.088183 z M 39.467131,8.523553 C 39.295991,8.5237229 39.129856,8.538003 38.961549,8.5624432 C 36.143127,8.7070624 33.253496,9.4295205 30.826853,10.902384 C 29.786043,11.644267 29.145401,12.734973 28.571176,13.851617 C 28.343235,12.409894 27.489012,10.545824 25.745098,10.746821 C 24.086577,10.663762 23.155081,12.499668 23.80055,13.935881 C 24.527906,15.703788 22.864179,14.666854 22.344934,13.724395 C 19.498403,11.655698 15.994224,12.394073 12.71662,12.795079 C 11.327884,13.013965 9.5812028,14.204112 10.123889,15.835056 C 11.051635,19.59876 14.168508,22.306043 16.631645,25.13 C 17.203562,25.946296 18.606153,26.570088 17.953939,27.709768 C 16.967347,31.234662 15.756715,34.868852 16.547382,38.547387 C 16.633912,38.902374 16.389556,39.945789 16.832583,39.247425 C 17.445398,38.782598 18.476803,39.340069 19.256787,38.968707 C 21.384379,38.292093 23.563275,37.290827 25.070988,35.643527 C 26.220391,34.355325 26.557351,32.612405 26.924791,31.00902 C 27.86214,30.389692 28.018991,32.054072 28.214676,32.616514 C 28.435725,33.167297 28.654288,33.922394 29.018423,34.30827 C 29.696312,32.581378 29.158771,30.644444 29.511042,28.837607 C 30.555472,31.622294 32.538871,34.465574 35.688225,34.949971 C 37.590633,35.416475 39.727545,35.903228 41.560762,34.982381 C 42.114281,35.32656 42.356379,35.49902 42.053382,34.703664 C 41.740905,32.833909 41.488219,30.91952 40.530152,29.23948 C 39.583845,27.244026 38.353236,25.397993 37.256827,23.483615 C 39.254857,19.292609 42.249654,15.218119 42.131163,10.396802 C 41.870266,9.1230454 40.665121,8.5223666 39.467131,8.523553 z M 37.418873,10.338465 C 37.645212,10.346324 37.884375,10.392083 38.131875,10.474584 C 41.471973,11.58795 41.062419,16.266035 37.76241,16.852704 C 34.4624,17.43937 33.949062,15.091043 34.022395,13.40437 C 34.022395,13.404371 35.149161,10.48531 37.198491,10.344947 C 37.271681,10.339934 37.343427,10.335846 37.418873,10.338465 z M 16.955737,13.637716 C 17.182077,13.645576 17.421238,13.691335 17.668738,13.773834 C 21.008837,14.887201 20.605764,19.565286 17.305756,20.151955 C 14.005748,20.738623 13.492408,18.390293 13.56574,16.703622 C 13.56574,16.703622 14.686025,13.784562 16.735355,13.644198 C 16.808546,13.639185 16.88029,13.635097 16.955737,13.637716 z M 34.352968,18.596316 C 34.518816,18.584958 34.691052,18.605301 34.877996,18.667616 C 36.770141,19.29833 36.540012,21.952132 34.670578,22.284476 C 32.801142,22.616822 32.509476,21.282453 32.551019,20.326964 C 32.551019,20.326964 33.192035,18.675829 34.352968,18.596316 z M 20.248507,20.826065 C 20.376893,20.830036 20.516655,20.857112 20.656862,20.903847 C 22.549008,21.534561 22.318878,24.181881 20.449444,24.514226 C 18.580008,24.846569 18.288342,23.518684 18.329886,22.563196 C 18.329886,22.563196 19.007434,20.787681 20.248507,20.826065 z M 37.146636,28.014415 C 37.213168,28.01047 37.279111,28.012296 37.347574,28.014415 C 37.574207,28.021423 37.806592,28.061551 38.054092,28.144052 C 41.394193,29.257418 40.991122,33.941985 37.691111,34.528653 C 34.391102,35.115319 33.877761,32.766991 33.951094,31.08032 C 33.951094,31.080322 35.084158,28.136617 37.146636,28.014415 z M 20.844836,29.349672 C 20.911366,29.345728 20.977309,29.347553 21.045772,29.349672 C 21.272406,29.356679 21.511273,29.40329 21.758773,29.48579 C 25.09887,30.599156 24.689318,35.277242 21.389308,35.863911 C 18.0893,36.450576 17.575961,34.102249 17.649292,32.415576 C 17.649292,32.415576 18.782356,29.471873 20.844836,29.349672 z"
style="fill:#cd87de;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="ccccccccc"
id="path3694"
d="M 26.056227,9.7939916 C 23.655844,9.7745654 22.277839,12.403264 22.633819,14.558135 C 22.740434,17.034546 23.49867,19.493825 24.86357,21.552031 C 23.658816,24.81366 24.980435,28.35314 26.249427,31.390593 C 27.212768,33.451546 28.491098,35.334252 29.886987,37.127867 C 30.530607,32.250176 32.020982,27.152941 30.535171,22.297441 C 30.305753,21.472239 29.237228,20.965191 29.835133,20.028801 C 30.329593,17.066839 30.363962,13.716126 28.733221,11.10332 C 28.105333,10.273485 27.11488,9.708674 26.056227,9.7939916 z"
style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cccccccccczccc"
id="path3696"
d="M 27.205811,4.1063683 C 26.862902,4.5049333 27.175732,5.2954759 27.030801,5.8175713 C 27.08104,5.2595078 27.197014,4.6179429 27.205811,4.1063683 z M 20.75639,5.0721609 C 20.020146,5.208549 21.086356,5.1806491 21.035108,5.1175337 C 20.949618,5.067907 20.857211,5.0537226 20.75639,5.0721609 z M 22.299065,7.0620825 C 22.166025,6.7469747 21.899541,6.2259591 22.222692,6.8995454 L 22.299065,7.0620825 z M 28.625331,21.162465 C 29.424058,20.160743 30.304117,9.7951223 25.652586,10.650983 C 20.988544,11.509145 24.897975,21.496537 25.983446,21.392748 C 24.254362,22.926186 25.370368,29.659115 29.365911,35.019101 C 30.57549,28.12515 30.914371,22.575753 28.625331,21.162465 z"
style="fill:#ffcc00;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
id="path3698"
d="M 37.142568,11.213512 C 35.267647,11.643756 33.897981,14.455195 35.612858,15.841538 C 37.334125,16.946431 40.044534,15.307424 39.540846,13.203433 C 39.372014,12.089637 38.28898,11.141401 37.142568,11.213512 z M 16.672952,14.519246 C 14.792906,14.943903 13.45298,17.765576 15.156204,19.14079 C 16.853867,20.25052 19.575671,18.609651 19.084193,16.522131 C 18.909292,15.398389 17.84416,14.435484 16.672952,14.519246 z M 34.329455,19.464881 C 33.290632,19.629467 32.870195,21.694658 34.264636,21.571476 C 35.643631,21.428637 35.680992,19.520617 34.329455,19.464881 z M 20.114804,21.694631 C 19.012578,21.86454 18.662524,24.041695 20.140731,23.781779 C 21.407636,23.573765 21.441394,21.772644 20.114804,21.694631 z M 37.123124,28.882979 C 35.232557,29.264481 33.839787,32.063286 35.496185,33.478597 C 37.153181,34.645428 39.886036,33.058201 39.488991,30.983092 C 39.348175,29.846922 38.299716,28.840645 37.123124,28.882979 z M 20.821323,30.218237 C 18.930756,30.599737 17.537988,33.398544 19.194384,34.813854 C 20.86223,35.994346 23.663004,34.347136 23.174227,32.253532 C 23.022477,31.130478 21.959016,30.191007 20.821323,30.218237 z"
style="fill:#ff2a7f;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
id="path3700"
d="M 26.293975,10.620357 C 26.099665,10.613281 25.88976,10.632093 25.671721,10.672211 C 24.182489,10.946223 23.567015,12.150516 23.454934,13.660335 C 25.15097,13.421373 27.03716,13.210175 28.776517,13.051043 C 28.333805,11.674594 27.562028,10.666525 26.293975,10.620357 z M 29.10709,14.483526 C 27.280001,14.732578 25.274824,14.95633 23.487344,15.105782 C 23.524747,15.489594 23.580367,15.877665 23.65587,16.266032 C 25.397577,16.009891 27.390259,15.772504 29.236727,15.598402 C 29.208109,15.221209 29.164546,14.848489 29.10709,14.483526 z M 29.282099,17.089223 C 27.531974,17.319464 25.658838,17.516872 23.992926,17.653142 C 24.141099,18.160216 24.309066,18.648007 24.485545,19.092108 C 26.004284,18.882637 27.661913,18.688501 29.21728,18.541153 C 29.25593,18.084044 29.27786,17.59485 29.282099,17.089223 z M 29.009862,20.064384 C 27.736368,20.227138 26.403316,20.375123 25.146691,20.492184 C 25.482145,21.078856 25.794151,21.432506 26.002293,21.412603 C 25.592871,21.7757 25.346813,22.433449 25.256882,23.292335 C 26.733897,23.091648 28.327355,22.915243 29.826572,22.773788 C 29.556895,22.049669 29.171164,21.509441 28.64688,21.18574 C 28.774547,21.025625 28.90096,20.6189 29.009862,20.064384 z M 30.176591,24.219237 C 28.564613,24.435311 26.834663,24.629149 25.243919,24.770192 C 25.269984,25.13309 25.315409,25.513414 25.380038,25.910993 C 26.937074,25.68968 28.662508,25.48521 30.293265,25.327629 C 30.268748,24.936252 30.229312,24.566374 30.176591,24.219237 z M 30.325673,26.824932 C 28.782487,27.022912 27.16045,27.197497 25.678202,27.324032 C 25.795768,27.787612 25.936659,28.264414 26.09952,28.750035 C 27.447977,28.5677 28.889936,28.404759 30.267337,28.270379 C 30.299637,27.768254 30.31907,27.286863 30.325673,26.824932 z M 30.137701,29.787128 C 28.974726,29.933473 27.778217,30.067627 26.63103,30.176037 C 27.306813,31.805672 28.223624,33.47835 29.385808,35.037409 C 29.713828,33.167877 29.97279,31.403227 30.137701,29.787128 z"
style="fill:#ff6600;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
</g>
</svg>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
SUBDIRS =
xmldir = $(pkgdatadir)/@PACKAGE_DATA_DIR@
xml_in_files = \
memory_enumerate.xml.in
xml_DATA = $(xml_in_files:.xml.in=.xml)
# Do not use the INTLTOOL_XML_RULE, we don't need to embed the translations
# in the file themselves. GCompris pick the translations from the po file at
# runtime.
#
$(xml_DATA): %.xml: %.xml.in
sed -e "s/\(<\{1\}\/*\)_/\1/g" $< > $@
# Use this directive and instead of the one above to embed the translations
# in the xml files directly, this is needed for the tool gcompris2spip
#@INTLTOOL_XML_RULE@
icondir = $(pkgdatadir)/@PACKAGE_DATA_DIR@
icon_DATA = memo_enumerate.svg
EXTRA_DIST = $(icon_DATA) ${xml_in_files} init_path.sh
CLEANFILES = $(xml_DATA)
# Set the different path for this activity
# This is sourced by runit.sh
path=$1
activity=memory_enumerate
plugindir=$path/../memory-activity/.libs
pythonplugindir=$path
resourcedir=$path/../memory-activity/resources
section="/math/numeration"
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<GCompris>
<Board
name="memory_enumarate"
type="memory"
section="/math/numeration"
mode="enumerate"
difficulty="1"
icon="memo_enumerate.svg"
author="Yves Combe (yves@ycombe.net)"
boarddir="">
<_title>Enumeration memory game</_title>
<_description>Turn the cards over to match the number with the drawn picture.</_description>
<_prerequisite>Addition</_prerequisite>
<_goal>Numeration training, memory.</_goal>
<_manual xml:space="preserve">You can see some cards, but you can't see what's on the other side of them. Each card is hiding a number of pictures, or the written number.</_manual>
</Board>
<Data directory=""/>
</GCompris>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment