Hi,
This for example is the word gav
גַּב
and sid
סִיד
The output file with the error was:
Traceback (most recent call last):
File “E:\Documents\טל MA\Exp_try\NVS_PunTextFback_lastrun.py”, line 513, in
HebFback.setText(Heb_FB)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\text.py”, line 354, in setText
setAttribute(self, ‘text’, text, log)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\tools\attributetools.py”, line 141, in setAttribute
setattr(self, attrib, value)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\tools\attributetools.py”, line 32, in set
newValue = self.func(obj, value)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\text.py”, line 345, in text
self._setTextShaders(text)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\text.py”, line 365, in _setTextShaders
width=self._wrapWidthPix) # width of the frame
File “C:\Program Files\PsychoPy3\lib\site-packages\pyglet\font\text.py”, line 338, in init
group=self._group)
File “C:\Program Files\PsychoPy3\lib\site-packages\pyglet\text\layout.py”, line 810, in init
self.document = document
File “C:\Program Files\PsychoPy3\lib\site-packages\pyglet\text\layout.py”, line 919, in _set_document
self._init_document()
File “C:\Program Files\PsychoPy3\lib\site-packages\pyglet\text\layout.py”, line 1020, in _init_document
self._update()
File “C:\Program Files\PsychoPy3\lib\site-packages\pyglet\text\layout.py”, line 956, in _update
lines = self._get_lines()
File “C:\Program Files\PsychoPy3\lib\site-packages\pyglet\text\layout.py”, line 932, in _get_lines
glyphs = self._get_glyphs()
File “C:\Program Files\PsychoPy3\lib\site-packages\pyglet\text\layout.py”, line 1059, in _get_glyphs
glyphs.extend(font.get_glyphs(text[start:end]))
File “C:\Program Files\PsychoPy3\lib\site-packages\pyglet\font\base.py”, line 385, in get_glyphs
self.glyphs[c] = glyph_renderer.render(c)
File “C:\Program Files\PsychoPy3\lib\site-packages\pyglet\font\win32.py”, line 431, in render
ord(text), ord(text), byref(abc)):
TypeError: ord() expected a character, but string of length 3 found
I made a shorter version of the experiment for this correspondence.
Attached are the code and the condition files
list1Cond.xlsx (9.7 KB) NVS_PunTextFback.py (32.6 KB)
When the HebFback text is defined as $NoP_Heb (words without punctuation) the experiment works fine
Please let me know if you need some more info or files
Thanks a lot!
Nitza