Skip to content

Commit 51704f2

Browse files
fixing aois
1 parent bf5bd5e commit 51704f2

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

webcamstudy/src/components/Text/TextTask.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,7 @@ const formatText = (text, ref) => {
5555
word.split('').forEach(char => {
5656
let charSpan = document.createElement("span");
5757
charSpan.textContent = isSpace ? '' : char;
58-
// Create descriptive AOI names for characters
59-
let charType = isSpace ? 'space' : (isWord ? 'letter' : 'punct');
60-
const charId = character_id || 0;
61-
charSpan.setAttribute("data-re-aoi-name", `s${sCount}-${charType}-c${charId}`);
58+
// Letter-level AOIs removed - only word-level AOIs are kept
6259
character_id++;
6360
charSpan.classList.add(isSpace ? "space" : "letter");
6461
wordBlock.appendChild(charSpan);

0 commit comments

Comments
 (0)