Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[open] Displaying big chunks of text

edited December 2014 in OpenSesame

Hi,

I'm doing a research and I need to show with pseudorandomization a set of images and texts. Images are of three types (21 each) and the text also are three types (21 each too). The design is making each type of image the same proportion of type of texts (so, 7 images type 1 has to be type 1 text, and 7 type 2 text, and 7 type 3...etc). I understand that I have to do so inline scripts in order to make the pseurandomization reading list's of different image and assigning to each a text. My doubt is how can I put the chunks of text in the sketchpad? The texts are 150 words in three paragraphs.

Maybe storing the texts in .txt files with html code and making the inline script read them and put in a variable?
There's any other solution?

What do you think about?

Comments

  • edited 12:57AM

    Hi Guido,

    Your idea sounds reasonable. I don't really know whether you need html editing, though. Python's text manipulation functionalities are quite flexible and should be able to do what you need.
    After you have all your test saved in respective variables (you could also use a dictionary, to keep them grouped), you can use the text function (including adjustments of font, color, size, etc.) of a sketchpad and write [your_variable]. This will display the text, which is currently saved in "your_variable". Now you only have to make sure that the way this variable is manipulated over trials is how you want it to be, and you're pretty much done.

    Good luck with it. If you need more help, just ask again.

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.