[solved] Greek in Text input item
Dear Sebastiaan,
I am Paul. We spoke a while back. I finally found time to program my experiment. My experiment is simple. Students will see a a number of Greek words and will be asked to make a verbal response to them (the first word that comes to their mind) and then to write that response in Greek. My primary question is the following: Can languages other than English be input? Can I use Greek? The text input item does not seem to allow this. I hope their is a solution to this because I am starting to like the program!
One other question I have is what is the best way to collect verbal response time? Should I use a voice key box or will a microphone be enough? Does opensesame accept voice key devices?
Many thanks!
Paul
Comments
Hi Paul,
I'm a bit embarrassed, but it doesn't immediately come to mind where we met. Was it at a conference?
With respect to your question. The text_input item does indeed not support non-latin alphabets (unfortunately), but the questionnaire plug-ins should, although this hasn't been extensively tested yet. Maybe the open_question plug-in does what you need? See here: http://osdoc.cogsci.nl/plug-ins/questionnaire-plug-ins
With regard to the collection of a voicekey. One way is to use a microphone and detect the onset of a sound as described in this topic: http://forum.cogsci.nl/index.php?p=/discussion/6. A voicekey box should work as well, in which case you will have to listen to the parallel/ serial port (if you're on windows the port_reader plug-in will take care of that). A voicekey box will give you much better temporal precision, but on the other hand recording from the microphone will give you more options. Both methods should work though.
Good luck!
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Dear Sebastiaan,
Thanks for your prompt reply to my questions. When I said "spoke", I meant through this forum.
I tried your suggestions with the questionaire plug ins, but to no avail. They refuse to accept Greek. If you ever rework non Latin alphabets into open sesame code, please post it on your site.
Once again, thanks for your effort.
Best,
Paul
Hi Paul,
You're right, I tested it with some mathematical operators and such. This worked, but real Greek is not accepted. If you're still interested you could try the following script, which should accept non-western alphabets. It works pretty much like a normal text_input plug-in, but see the code comments for more info.
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
I'm sad to discover that this issue doesn't seem to have been (really) solved after these years.
To explain myself, I mean that although Sebastiaan has given a type of solution to the problem -using the canvas of a Sketchpad item through an inline script- there is still no way to support unicode in a Form Text Input item. For instance in an experiment that we're building for a class, we use such an item in a loop to present all the questions of a certain type -selected using a [qtype]=oc variable value in the "Run if" condition of the form- and we're trying to use the functionality of the Form Text Input to collect user input for these open questions. Sadly Greek (as other non-latin languages) are not supported in the text input.
I couldn't find a way to make the sketchpad item to work in a similar way in the scenario described above (or similar ones), no matter how hard I searched through the code (I'm not an expert on the subject though).
Isn't there anything we can do for the situation?
(I modified a little the above code in order to accept backspace deletion. I'm only presenting the relevant part:
)
As it happens, the issue should be resolved as of 2.9.0~pre28.
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Just perfect!! Dear Seabastiaan, I just tried the current prerelease! Indeed, the problem seems to have been solved!!
Thank you very much!
(there remains only a minor consideration with accent diacritical mark but this is not really an issue)