<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">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>
<div> </div><div>Gonzalo</div><div><br></div></div>