<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">On 10.01.2010, at 02:51, Bryan Berry wrote:<br><blockquote type="cite">Bert, we did have Squeak programmers but they all emigrated and are difficult to get in touch with.<br></blockquote><br>Oh, didn't know they were all gone.&nbsp;<br><br>I sat down and wrote a script myself. It's somewhat specific to your Squeak image/projects but I'll cc etoys-dev anyway, maybe it's useful to someone. I used the image and projects from<br><br><span class="Apple-tab-span" style="white-space:pre">        </span><a href="http://karma.sugarlabs.org/Squeak.tar.bz2">http://karma.sugarlabs.org/Squeak.tar.bz2</a><br><br><div>The attached script needs a bit of hand-holding when running inside Squeak. Or just download the assets I exported:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>http://dev.laptop.org/~bert/OLENepalSqueakAssets.zip<br><br></div><div>Beware, it's 125 MB of PNGs and WAVs. The sounds have their names preserved, but the images are just enumerated largest-to-smallest. I didn't bother to check for duplicates.</div><div><br><div>- Bert -<br><br><div><div>On 10.01.2010, at 02:51, Bryan Berry wrote:</div><blockquote type="cite">Bert, we did have Squeak programmers but they all emigrated and are difficult to get in touch with.<div><br></div><div>I will bother Surendra, who you met, to see if he can help<br><br><div class="gmail_quote">On Sat, Jan 9, 2010 at 9:57 PM, Bert Freudenberg&nbsp;<span dir="ltr">&lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt;</span>&nbsp;wrote:<br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; ">Well, OLE Nepal does have Squeak programmers, and it should be rather simple for them to write a snippet that exports images and sounds from a loaded project.<br><br>It's just a bit harder (but I guess not too much) to load each project in a folder and export assets found there (the trick would be to just load the project but not enter it).<br><br>Extracting them without Squeak is rather infeasible.<br><font color="#888888"><br>- Bert -<br></font><div><div></div><div class="h5"><br>On 09.01.2010, at 16:39, Tomeu Vizoso wrote:<br>&gt;<br>&gt; Adding sugar-devel to CC in case Bert wants to say anything<br>&gt;<br>&gt; On Sat, Jan 9, 2010 at 16:36, Peter Gijsels &lt;<a href="mailto:peter.gijsels@gmail.com">peter.gijsels@gmail.com</a>&gt; wrote:<br>&gt;&gt; Vaibhaw,<br>&gt;&gt;<br>&gt;&gt; You seem to imply that there is a (difficult) way to extract them,<br>&gt;&gt; could you elaborate?<br>&gt;&gt;<br>&gt;&gt; Do you think it would be useful to have a simple way to extract these<br>&gt;&gt; assets from a .pr file?<br>&gt;&gt;<br>&gt;&gt; I can try to see if I can come up with something. I'm not guaranteeing<br>&gt;&gt; anything, but I think it might be worth a shot. I think it would be<br>&gt;&gt; more fun than cropping screenshots. ;-)<br>&gt;&gt;<br>&gt;&gt; I have two possible approaches in mind:<br>&gt;&gt; 1) There is probably a central place where the .pr is being read in<br>&gt;&gt; and Morph objects are being constructed. If we intercept objects of<br>&gt;&gt; the correct type we can dump their image data to a file. The trick is<br>&gt;&gt; to find the code that does the deserializing which can be rather<br>&gt;&gt; frustrating in Smalltalk if you are not familiar with the code.<br>&gt;&gt;<br>&gt;&gt; 2) The second approach would be to just walk over all objects, see if<br>&gt;&gt; they are an image, and dump them to files.<br>&gt;&gt;<br>&gt;&gt; Do you have a Squeak development image (with development tools like<br>&gt;&gt; the browser and inspector) from which I can read in these .pr files so<br>&gt;&gt; that I can poke around a bit?<br>&gt;&gt;<br>&gt;&gt; Regards,<br>&gt;&gt; Peter<br>&gt;&gt;<br>&gt;&gt; On Sat, Jan 9, 2010 at 3:04 PM, Vaibhaw (Bob) Poddar<br>&gt;&gt; &lt;<a href="mailto:vaibhawp@yahoo.co.uk">vaibhawp@yahoo.co.uk</a>&gt; wrote:<br>&gt;&gt;&gt; Afraid not. There is no (easy) way to extract the info from the .pr files. I<br>&gt;&gt;&gt; have been just cropping the images out from the screen shots so far.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Vaibhaw (Bob) Poddar<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Nepal Cell. +977.98510.61345<br>&gt;&gt;&gt; India Cell. +91.99999.15661<br>&gt;&gt;&gt; US of A Cell. +1.415.508.4503<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;<a href="http://HimalayanTechies.com/" target="_blank">http://HimalayanTechies.com</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On 1/9/2010 7:43 PM, Peter Gijsels wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Bryan, Vaibhaw,<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; I've got epaath working on my windows machine.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Do I understand correctly that all of the materials of a lesson are<br>&gt;&gt;&gt; contained in one .pr file, e.g.&nbsp;<a href="http://6_English_actionVerb_3.018.pr/" target="_blank">6_English_actionVerb_3.018.pr</a>? The<br>&gt;&gt;&gt; epaath.image running on the squeak vm loads in that file.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Is there an easy way to extract the pictures and sounds from the .pr<br>&gt;&gt;&gt; file of the lesson?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Regards,<br>&gt;&gt;&gt; Peter<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On Thu, Jan 7, 2010 at 5:45 AM, Vaibhaw (Bob) Poddar<br>&gt;&gt;&gt; &lt;<a href="mailto:vaibhawp@yahoo.co.uk">vaibhawp@yahoo.co.uk</a>&gt; wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Step to get Squeak working on a Windows machine (not sure how on a Linux<br>&gt;&gt;&gt; distribution).<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Download and install squeak<br>&gt;&gt;&gt;&nbsp;<a href="http://www.squeakland.org/download/" target="_blank">http://www.squeakland.org/download/</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Replace the etoys.image inside the Etoys/Etyos.app/Contents/Resources with<br>&gt;&gt;&gt; the image file from the E-Paath.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; That should be it. If you run into any issues I would be happy to look at<br>&gt;&gt;&gt; that.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Thanks<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Vaibhaw (Bob) Poddar<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Nepal Cell. +977.98510.61345<br>&gt;&gt;&gt; India Cell. +91.99999.15661<br>&gt;&gt;&gt; US of A Cell. +1.415.508.4503<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;&nbsp;<a href="http://HimalayanTechies.com/" target="_blank">http://HimalayanTechies.com</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On 1/7/2010 7:44 AM, Bryan Berry wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; here is the file&nbsp;<a href="http://karma.sugarlabs.org/Squeak.tar.bz2" target="_blank">http://karma.sugarlabs.org/Squeak.tar.bz2</a><br>&gt;&gt;&gt;<br>&gt;&gt;&gt; These are all the Squeak files in the current EPaath. I am not sure how to<br>&gt;&gt;&gt; actually view the individual projects.<br>&gt;&gt;&gt; Vaibhaw: how do we do that? My Squeak skills are rusty<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On Thu, Jan 7, 2010 at 7:06 AM, Bryan Berry &lt;<a href="mailto:bryan@olenepal.org">bryan@olenepal.org</a>&gt; wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; hey Peter,<br>&gt;&gt;&gt; first could u use&nbsp;<a href="http://pastie.org/" target="_blank">pastie.org</a>&nbsp;or&nbsp;<a href="http://jsbin.com/" target="_blank">jsbin.com</a>&nbsp;for small code samples? makes it<br>&gt;&gt;&gt; easier for everyone to view and comment on your code<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On Thu, Jan 7, 2010 at 3:47 AM, Peter Gijsels &lt;<a href="mailto:peter.gijsels@gmail.com">peter.gijsels@gmail.com</a>&gt;<br>&gt;&gt;&gt; wrote:<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; On an unrelated note, did you have time to prepare a download link<br>&gt;&gt;&gt; with the Squeak stuff? Tomorrow evening I have some time to have a<br>&gt;&gt;&gt; look at it.<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Regards,<br>&gt;&gt;&gt; Peter<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt;&gt; Sorry I uploaded most of the files but forget to upload one important<br>&gt;&gt;&gt; file, the squeak image ;). I will upload that now and send you the link<br>&gt;&gt;&gt; shortly<br>&gt;&gt;&gt;<br></div></div></blockquote></div></div></blockquote></div><div>&nbsp;</div></div><div><br class="webkit-block-placeholder"></div><div><br></div></div></body></html>