Re: [Rur-ple-devel] Re: Pylogo in French (or any other language)
Brought to you by:
aroberge
From: Nicolas P. <nic...@ae...> - 2006-04-04 19:02:12
|
2006/4/4, Andre Roberge <and...@gm...>: > Thanks Ian for redirecting this question to the rur-ple list. > > On 4/4/06, Ian Bicking <ia...@co...> wrote: > > (Since Rur-ple came to mind as I was responding to this PyLogo query, I > > thought I'd CC that list) Thanks also Andr=E9 for the very fast answer. > And, while the GUI is translated, unfortunately the lessons aren't > (yet.) However, please read below on a quick how-to use French > instructions with rur-ple. I propose to set up an environnement in http://launchpad.net to help with the translation of the lessons. I would be ready to help with the translation to French, a piece at a time. > I'm not familiar with PyLogo, but here's a quick comparison of some > PyLogo code (from the website) and a similar example with rur-ple. > > =3D=3D=3D=3D PyLogo > ??? to square :size > to? repeat 4 [ > to? fd :size > to? rt 90 > to? ] > to? end this is indeed standard logo > Function: square > ??? square 100 > =3D=3D=3D end of > I guess that the above is an instruction to draw a simple square, with > "size" being used as a variable. Here are a few (untested) ways to > define a square in rur-ple, using Python syntax. indeed > # French translations and abbreviations to be used below > avance =3D av =3D move > gauche =3D g =3D turn_left > repete =3D repeat > > # first example, no function defined > avance() > gauche() > av() > g() > av() > g() > av() > g() > > # second example > def avance_et_tourne(): > av() > g() > def carre(): # French for square > repete(avance_et_tourne, 4) > # Now use the definition: > carre() > > #Third example using explicit for loops > def carre(): > for i in range(4): > av() > g() could a keyword like "pour" replace "for" and "intervalle" replace "range" as this would help a lot my little students (9 to 11 year old only) > #Fourth example, using a "size" parameter as per PyLogo example > def carre(size): > for i in range(4): > for j in range(size) > av() > g() > > I don't know if Rur-ple has turtle graphics? I think I saw that > > somewhere, but maybe only as a to-do. I'll look asap at how rur-ple works. > It is, unfortunately, still on my to-do list. I hope you can add this soon :-) > Further questions can be sent to the rur-ple list or directly to me at > and...@gm.... Je peux r=E9pondre en fran=E7ais aux > questions qui me sont adress=E9es personnellement. thanks, Nicolas -- Nicolas Pettiaux - email: nic...@ae... |