This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Suggestions
  •  » Comments are not included in "write project summary"

#1 2012-10-12 12:12:38

pfaffman
New Scratcher
Registered: 2012-10-12
Posts: 1

Comments are not included in "write project summary"

I am a research interested in studying how students learn Scratch and how that affects their learning computer science and computational thinking.

One tool we are creating would parse text from "write project summary," but I noticed (and have confirmed multiple times) that comments are not included. It's easy to see how this would happen, as comments are a different kind of object than are the other primitives.

This should be an easy fix for someone familiar with the source

I have started poking in the source code, but it's not yet making any sense to me.

Offline

 

#2 2012-10-12 12:23:21

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Comments are not included in "write project summary"

What do you mean? That you can't find the "Project Comments" code?


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#3 2012-10-12 14:49:27

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: Comments are not included in "write project summary"

I wrote kurt, a Python module that can parse Scratch project (.sb) files directly. You'll find comments as an attribute of a Block object. (:

It's on PyPI and Github.

A little background: the comments are stored separately in the file, with a "block ID" that represents the index in the sprite's scripts where the block is located. (It's something like an amalgamation of all the blocks in each script on the sprite, in reverse order). See my discoveries here if you're interested. I think comments have an "anchor" property in the Squeak source that points to the block. That might help you fix the Squeak code; if you use kurt, it does it all for you.

Hope that helps!  smile

Last edited by blob8108 (2012-10-21 07:17:49)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 
  • Index
  •  » Suggestions
  •  » Comments are not included in "write project summary"

Board footer