|
Post by olhadrobina on Jul 2, 2020 13:23:47 GMT
Hi all, my stimuli are pretty lengthy sentences which are coded as strings in a table. During experiment, when these strings are loaded, they are truncated. I can't find any solutions to this, such as displaying them in 2 rows or changing width of loading/display area. Is there a way to fix this? I really want to avoid creating 70 bitmaps for stimulus sentences.
|
|
|
Post by PsyToolkit on Jul 3, 2020 8:32:41 GMT
Currently, the strings cannot be presented over more than one line.
I can see two solutions:
1) If many of them have two lines of text on screen, you could maybe split up all your sentence stimuli into two different strings.
2) Write a little script on your computer to make bitmaps from your sentences automatically. That takes a bit of figuring out how to do, but I assume in the end that goes quicker than doing it manually (I agree, 70 is a lot). You need to have a little bit of expertise, but here is how I would write such a script:
- I would create one Inkscape SVG file with a text place holder (note that SVG files are text files) - I would create a script that replaces the place holder text in the SVG file with a utilty such as "sed" and then render the new Inkscape file each time to a bitmap
It is not massively complicated, maybe if you cannot do it you can ask around in your university, I am sure you can find someone to do it, or even learn it yourself (how easy it is depends a bit on how much experience you have with these sort of things and what sort of computer you have)
|
|
|
Post by olhadrobina on Jul 3, 2020 15:58:03 GMT
Thanks a lot for you reply! This sounds a little complicated, but I will give it a go
|
|
mab
New Member
Posts: 6
|
Post by mab on Oct 15, 2020 15:28:27 GMT
Hello-
I am having this same problem, and have created a set of bitmap images to get around it. However, the load time for a whole set of bitmaps is very long- in fact, I have never been able to successfully get the experiment to load when using the full set of bitmap images I would need. Any suggestions would be appreciated!
|
|
|
Post by alexandra (AEC) on Oct 15, 2020 17:36:48 GMT
Have you tried any of the other two suggestions, strings of the right length separately in a row of the table or SVG file with a place holder? The first one would be my go-to, if that is possible.
|
|