Trying to use a non-alphabetic script for a Stroop task, but the experiment keeps crashing. The one time it did work, it only recorded one response.I have followed the online tutorial for making a simple Stroop task step-by-step, only changing the input details from English to Hindi script. Can someone help me figure out what the problem is?
Hi! Thank you for reaching out. This is the error:
TypeError: ord() expected a character, but string of length 2 found
Hello Jens!
Thank you for the suggestions and your response. It took me some time, but I implemented the advice given. The programs runs now, however it does not process the script and only shows empty blocks in place of the characters. I am wondering if there is something missing in my code?
text = visual.TextBox2(win, name='text',
text='',
font='Arial',
pos=(0, 0), draggable=False, letterHeight=0.1,
anchor='center', alignment='center',
color='white', colorSpace='rgb', opacity=None,
languageStyle='Arabic',
depth=0.0);
Note: I am not using Arabic necessarily, I just hoped that using the setting for Arabic would help render the diacritics.
Hello @srhsrh
Are you using the Builder to program the experiment? If so, could you please show me the relevant routine with its components?
The definition you showed above looks like the initialisation of the text component.
The font you use is more important for the diacritics. I do not know if Arial has Arabic diacritics.
Best wishes Jens
Hi Jens!
I’m using Arial for Devanagri, and on other platforms it is usually supported. I am attaching the Builder routine as well as the conditions file.
Hello @srhsrh
That looks good. What happens when you use constants instead of variables? What happens when you use Latin script? Change one thing after another to determine the cause.
Best wishes Jens