<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Dec 9, 2013 at 2:40 PM, Lionel Laské <span dir="ltr"><<a href="mailto:lionel@olpc-france.org" target="_blank">lionel@olpc-france.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hi Gonzalo,<br><br></div>Nice idea. I even didn't know it was possible :-)<br>
</div><div>Guess that it means that it could be integrate directly into Sugar ?<br></div></div></div></div></div></div></div></blockquote><div><br></div><div>May be we can propose it as a blessed dependency, if more activities use it.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div></div><div>
<br></div>Few remarks however:<br></div>- May be it could be interesting to integrate sounds too.<br></div></div></div></div></div></blockquote><div><br></div><div>Yes, but probably will package the sounds by language, because of the size involved.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div></div><div>- Repeating the complete path prefix of images in words.json should be avoided (generate a bigger JSON file).<br>
</div></div></div></div></div></blockquote><div><br></div><div>True. I will change that.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div>
</div>- Grouping words by categories is not necessarily a good idea. In Abecedarium for example, I need handling words both by categories and by starting letter so I had to use an indirection. <br><br></div></div></div></div>
</blockquote><div><br></div><div>Hmm, starting letter can be done easily by code. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<div><div><div></div>Regarding use in Abecedarium, it depends. My objective is to adapt Abecedarium to transform it as a SugarWeb Activities so any system related link is potentially a constraint...<br>
<br></div></div></div></blockquote><div><br></div><div>I suspected that... maybe we can find a way to solve it.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div></div>Best regards from France.<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888">        Lionel.<br><div><div><div><div><div><div><div>
<div><br></div></div></div></div></div></div></div></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br></div></div></div></blockquote><div><br></div><div>Do you have a csv file like the Spanish one for the French words?</div>
<div><br></div><div>Regards,</div><div><br></div><div>Gonzalo </div><div><br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">
2013/12/9 Gonzalo Odiard <span dir="ltr"><<a href="mailto:gonzalo@laptop.org" target="_blank">gonzalo@laptop.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">I was playing a little with the Art4Apps images and data,<div>and created json files and a python module to mange that,</div><div>in a way to make easier to activities to use it.</div><div><br></div><div>Have a very basic api to get the information, like:</div>


<div><br></div><div><div><font face="courier new, monospace">>>> from art4apps import Art4Apps</font></div><div><font face="courier new, monospace">>>> aa = Art4Apps()</font></div><div><font face="courier new, monospace">>>> aa.get_categories()</font></div>


<div><font face="courier new, monospace">[u'houseware', u'letters', u'people', u'actions', u'colors', u'numbers', u'tools', u'constructions', u'vegetables', u'emotions', u'sports', u'other', u'bodyparts', u'jobs', u'nature', u'food', u'objects', u'plants', u'animals', u'adjectives', u'fruits', u'furnitures', u'transports', u'clothes']</font></div>


<div><font face="courier new, monospace">>>> aa.get_words_by_category('colors')</font></div><div><font face="courier new, monospace">[u'black', u'blue', u'brown', u'color', u'gray', u'green', u'mauve', u'orange-color', u'pink', u'red', u'white', u'yellow']</font></div>


<div><font face="courier new, monospace">>>> aa.get_languages()</font></div><div><font face="courier new, monospace">['es']</font></div><div><font face="courier new, monospace">>>> aa.get_translation('es', 'white')<br>


</font></div><div><font face="courier new, monospace">u'blanco'</font></div><div><font face="courier new, monospace">>>> aa.get_image_filename_by_word('penguin')</font></div><div><font face="courier new, monospace">u'/usr/share/art4apps/images/penguin.png'</font></div>


</div><div><br></div><div>The data is in json format, to make easier use it in web activities too.</div><div><br></div><div>I have utilities to create the json files based in csv files,</div><div>and I plan create a utility to help in the translation to new languages,</div>


<div>displaying the images.</div><div><br></div><div>As a simple example, I have modified the Story, to use the Art4Apps images if available (patch attached). Iwant modify Memorize activity too.</div><div><br></div><div>

The art4apps rpm can be downloaded from:</div>
<div><br></div><div><a href="http://dev.laptop.org/~gonzalo/art4apps-0.1-0.noarch.rpm" target="_blank">http://dev.laptop.org/~gonzalo/art4apps-0.1-0.noarch.rpm</a><br></div><div><br></div><div>This is just a experiment, looking for feedback. I would like to know if something like this can be used in Abecedarium, by example.</div>

<span><font color="#888888">
<div> </div><div>Gonzalo</div><div><br></div></font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>