Forum Replies Created
-
AuthorPosts
-
Jingqi
ParticipantHello Jeremy,
I was trying to have a chunk-by-chunk SPR experiment in Chinese. I set manual line breaks <br> for each item and have dashes for replacement for each chunk. It works fine on most browsers but on some browsers I ran into the display issue. Since the Chinese character takes up two bytes so I used two underscores __ in my code for replacement. On my own browser, the two underscores __ will be displayed as one gray lines, which is good. Yet on some browsers the lines will be displayed as separate underscores. Can you possibly tell me what I could do to improve this?
I used the function as this:
// Dashed function to allow for manual line breaks
dashed = (name,sentence) => [
newText(name,””).css({display:’flex’,’flex-direction’:’row’,’flex-wrap’:’wrap’,’line-height’:’4em’,’max-width’:’70em’,’min-width’:’70em’}).print()
,
…sentence.split(/[*<>]+/).map( (w,i) => (w==”br”?
newText(“”).css(“width”,”100vw”).print(getText(name))
:
newText(name+’-‘+i, w.replace(/./g,’__’))
.css({margin:”0em 0.2em”,’font-family’:’monospace’,”font-size”:”20pt”,”color”:”gray”})
.print(getText(name))
// newText(name+’-‘+i, w.replace(/([^.,?:;!\s])/g,’-‘))
// .css({margin:”0em 0.2em”,’font-family’:’monospace’,”font-size”:”large”})
// .print(getText(name))
))
,
newKey(name+’-start’, ” “).log().wait()
,
…sentence.split(/[*<>]+/).map((w,i)=>(w!=”br”?[
getText(name+’-‘+i).text(w).css({“color”:”black”})
,
newKey(i+”-“+w,” “).log().wait()
,
getText(name+’-‘+i).text(w.replace(/./g,’__’)).css({“color”:”gray”})
]:null))
]In my other experiment, I used : newController(“DashedSentence”, {s: row.Sentence, mode:”self-paced reading”, display: “dashed”, blankText: “#”,showAhead: true, showBehind: true}) . This function seems to align best with the lines and words. But that experiment doesn’t require line breaking and the item is not very long.
Jingqi
ParticipantHi Jeremy,
I am working on the SPR experiment, and when I preview the page, it sometimes reports after a few minutes:
Alert from preview: [object Object].
But I didn’t see any problem running the experiment.
Can you help me identify the problem? Thanks!https://farm.pcibex.net/r/bBLhQc/
Jingqi
Jingqi
ParticipantHi Jeremy,
I collected the data just now and when I checked the result files, it seems that some datapoints are missing for some participants. I check it in R, and it reports as this. For each participant, he/she is supposed to have 1212 datapoints. Could it be because they ran the experiment at around the same time? How can I minimize the possible data loss when participants do the same link at around the same time?
Below is my link and the datapoints collected
https://farm.pcibex.net/p/VKvjFg/
List
IP 1 2 3 4
1e07cab9da3e98e661b2d0e80f5b99e7 0 1212 0 0
23cb2c1b15ec3675dcfb69574b2fbfd6 1212 0 0 0
733c9df3b988e58faae28c0e00bb4f35 843 0 0 0
e8bc449ea6c87f719356447d4f2da4f5 0 0 837 0
eeeb66b06c9a1bdfd1764cd830a43bd8 0 0 0 833 -
AuthorPosts