<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. <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 <span dir="ltr"><<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>></span> 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>><br>> Adding sugar-devel to CC in case Bert wants to say anything<br>><br>> On Sat, Jan 9, 2010 at 16:36, Peter Gijsels <<a href="mailto:peter.gijsels@gmail.com">peter.gijsels@gmail.com</a>> wrote:<br>>> Vaibhaw,<br>>><br>>> You seem to imply that there is a (difficult) way to extract them,<br>>> could you elaborate?<br>>><br>>> Do you think it would be useful to have a simple way to extract these<br>>> assets from a .pr file?<br>>><br>>> I can try to see if I can come up with something. I'm not guaranteeing<br>>> anything, but I think it might be worth a shot. I think it would be<br>>> more fun than cropping screenshots. ;-)<br>>><br>>> I have two possible approaches in mind:<br>>> 1) There is probably a central place where the .pr is being read in<br>>> and Morph objects are being constructed. If we intercept objects of<br>>> the correct type we can dump their image data to a file. The trick is<br>>> to find the code that does the deserializing which can be rather<br>>> frustrating in Smalltalk if you are not familiar with the code.<br>>><br>>> 2) The second approach would be to just walk over all objects, see if<br>>> they are an image, and dump them to files.<br>>><br>>> Do you have a Squeak development image (with development tools like<br>>> the browser and inspector) from which I can read in these .pr files so<br>>> that I can poke around a bit?<br>>><br>>> Regards,<br>>> Peter<br>>><br>>> On Sat, Jan 9, 2010 at 3:04 PM, Vaibhaw (Bob) Poddar<br>>> <<a href="mailto:vaibhawp@yahoo.co.uk">vaibhawp@yahoo.co.uk</a>> wrote:<br>>>> Afraid not. There is no (easy) way to extract the info from the .pr files. I<br>>>> have been just cropping the images out from the screen shots so far.<br>>>><br>>>> Vaibhaw (Bob) Poddar<br>>>><br>>>> Nepal Cell. +977.98510.61345<br>>>> India Cell. +91.99999.15661<br>>>> US of A Cell. +1.415.508.4503<br>>>><br>>>> <a href="http://HimalayanTechies.com/" target="_blank">http://HimalayanTechies.com</a><br>>>><br>>>> On 1/9/2010 7:43 PM, Peter Gijsels wrote:<br>>>><br>>>> Bryan, Vaibhaw,<br>>>><br>>>> I've got epaath working on my windows machine.<br>>>><br>>>> Do I understand correctly that all of the materials of a lesson are<br>>>> contained in one .pr file, e.g. <a href="http://6_English_actionVerb_3.018.pr/" target="_blank">6_English_actionVerb_3.018.pr</a>? The<br>>>> epaath.image running on the squeak vm loads in that file.<br>>>><br>>>> Is there an easy way to extract the pictures and sounds from the .pr<br>>>> file of the lesson?<br>>>><br>>>> Regards,<br>>>> Peter<br>>>><br>>>> On Thu, Jan 7, 2010 at 5:45 AM, Vaibhaw (Bob) Poddar<br>>>> <<a href="mailto:vaibhawp@yahoo.co.uk">vaibhawp@yahoo.co.uk</a>> wrote:<br>>>><br>>>><br>>>> Step to get Squeak working on a Windows machine (not sure how on a Linux<br>>>> distribution).<br>>>><br>>>> Download and install squeak<br>>>> <a href="http://www.squeakland.org/download/" target="_blank">http://www.squeakland.org/download/</a><br>>>><br>>>> Replace the etoys.image inside the Etoys/Etyos.app/Contents/Resources with<br>>>> the image file from the E-Paath.<br>>>><br>>>> That should be it. If you run into any issues I would be happy to look at<br>>>> that.<br>>>><br>>>> Thanks<br>>>><br>>>> Vaibhaw (Bob) Poddar<br>>>><br>>>> Nepal Cell. +977.98510.61345<br>>>> India Cell. +91.99999.15661<br>>>> US of A Cell. +1.415.508.4503<br>>>><br>>>> <a href="http://HimalayanTechies.com/" target="_blank">http://HimalayanTechies.com</a><br>>>><br>>>> On 1/7/2010 7:44 AM, Bryan Berry wrote:<br>>>><br>>>> here is the file <a href="http://karma.sugarlabs.org/Squeak.tar.bz2" target="_blank">http://karma.sugarlabs.org/Squeak.tar.bz2</a><br>>>><br>>>> These are all the Squeak files in the current EPaath. I am not sure how to<br>>>> actually view the individual projects.<br>>>> Vaibhaw: how do we do that? My Squeak skills are rusty<br>>>><br>>>> On Thu, Jan 7, 2010 at 7:06 AM, Bryan Berry <<a href="mailto:bryan@olenepal.org">bryan@olenepal.org</a>> wrote:<br>>>><br>>>><br>>>> hey Peter,<br>>>> first could u use <a href="http://pastie.org/" target="_blank">pastie.org</a> or <a href="http://jsbin.com/" target="_blank">jsbin.com</a> for small code samples? makes it<br>>>> easier for everyone to view and comment on your code<br>>>><br>>>> On Thu, Jan 7, 2010 at 3:47 AM, Peter Gijsels <<a href="mailto:peter.gijsels@gmail.com">peter.gijsels@gmail.com</a>><br>>>> wrote:<br>>>><br>>>> On an unrelated note, did you have time to prepare a download link<br>>>> with the Squeak stuff? Tomorrow evening I have some time to have a<br>>>> look at it.<br>>>><br>>>> Regards,<br>>>> Peter<br>>>><br>>>><br>>>> Sorry I uploaded most of the files but forget to upload one important<br>>>> file, the squeak image ;). I will upload that now and send you the link<br>>>> shortly<br>>>><br></div></div></blockquote></div></div></blockquote></div><div> </div></div><div><br class="webkit-block-placeholder"></div><div><br></div></div></body></html>