how to increase line space in TextDisplay automatically

115 views
Skip to first unread message

Michael Jin

unread,
Apr 8, 2015, 6:45:21 AM4/8/15
to e-p...@googlegroups.com
Greetings!

Does anybody know how to double-space long sentences if I use TextDisplay object to present my stimuli?

By default, there doesn't seem to be space between lines when wrapping forces a second line.

Any experience with this?

Many thanks!

David Vinson

unread,
Apr 8, 2015, 6:53:06 AM4/8/15
to e-p...@googlegroups.com
Hi Michael,
I worked for a while (some versions ago) to try and accomplish this but was unable to get a TextDisplay object to do this.
Instead I used a workaround, using different Procedures (same except for TextDisplay object contained within) for "short", one-line sentences and "long", two-liners.

List contained two relevent attributes: Sentence1 and Sentence2.  Short sentences were entirely contained within Sentence1 and the TextDisplay object showed them normally: [Sentence1].   Long sentences were broken by hand: first line in Sentence1 and second line in Sentence2. 

Then for the long sentences it is a simple matter of using a TextDisplay object that shows

[Sentence1]
                                           < line break
[Sentence2]

All "short" sentences would use a procedure including the short sentence TextDisplay, and all "long" ones a different procedure, identical to the former but for the TextDisplay.   

I also collected responses using a Wait object immediately following the TextDisplay(s), so that all response data would be associated with the same object rather than having to deal with NULL responses for one TextDisplay or the other in the resulting data files.

best,
DavidV
--
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To unsubscribe from this group and stop receiving emails from it, send an email to e-prime+u...@googlegroups.com.
To post to this group, send email to e-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/e-prime/519a0474-8c21-455b-a9ae-28af07e49d68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
David Vinson, Ph.D.
Institute for Multimodal Communication
http://institute-for-multimodal-communication.org
Department of Experimental Psychology
University College London
26 Bedford Way, London WC1H 0AP
Tel +44 (0)20 7679 5311  (UCL internal ext. 25311)

Michael Jin

unread,
Apr 10, 2015, 8:51:28 AM4/10/15
to e-p...@googlegroups.com
Hi David,

What a neat and clever idea! Thanks very much!

A few questions to help me clarify:

1. Did you use one TextPlay sub-object in the Slide? If there is only one TextPlay sub-object, are you able to set AOI for each line of your long sentences? In my original script, I had only one TextDisplay sub-object and one AOI (the same size of the TextDisplay). This way, gazedata doesn't distinguish which line the fixations land on. Or am I missing something?

2. I noticed that you used 2 procedures, one for short, one for long sentences. There must be a good reason for this. When I use the same procedure for short sentence presentation (meaning the 'sentence 2' in the attribute is blank), I was able to see the short sentence fine. Am I making mistakes already?

3. How do you specify the Wait object? I'll look it up in the mean time. 

Can you have a look at my dummy script and throw some more light please? 

Many thanks in advance of your help!!

Michael
Bblock 2 lines.es2

David Vinson

unread,
Apr 10, 2015, 9:12:02 AM4/10/15
to e-p...@googlegroups.com
Hi Michael,

#2 first: you're right.... there's no need for two different procedures in this case (just leave Text2 blank for the short ones).  I think I had a reason for running two different procedures in my study but I might have just overlooked this obvious solution.

#1:  I wasn't using a slide, just an ordinary TextDisplay.  AOI:  I was only running a behavioural study so I don't have an answer there.  Sounds like it's probably most effective for you to put two Text subjobjects on your slide so you can be certain about their locations.

#3:  Wait objects can be found in the Toolbox window (near bottom of the list). They can be handy for response collection when display types are variable.... you may not need one here.

As I don't have the tobii stuff installed I'm afraid I can't help with your script.

all the best,
DavidV

For more options, visit https://groups.google.com/d/optout.

Michael Jin

unread,
Apr 10, 2015, 9:29:58 AM4/10/15
to e-p...@googlegroups.com
Hi David,

Many thanks again for your fast reply and timely help!

I will try the Wait object in my eprime script.

All the best,
Michael
Reply all
Reply to author
Forward
0 new messages