Changeset 35486


Ignore:
Timestamp:
2021-09-27T10:16:14+13:00 (16 months ago)
Author:
cstephen
Message:

Fix word selection in time editor
Improve initial timing metadata for new words

Location:
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItemEditor.vue

    r35456 r35486  
    189189                // Insert a new word if whitespace is entered on an existing word
    190190                if (event.data === " " && word.word !== " ") {
    191                     // TODO: Proper timing metadata
    192                     const newWord = new Word("", word.startTime, word.endTime);
     191                    const newStartTime = word.startTime + ((word.endTime - word.startTime) / 2);
     192                    const newWord = new Word("", newStartTime, word.endTime);
    193193                    this.words.splice(index + 1, 0, newWord);
    194194
  • main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/WordTimingSelector.vue

    r35456 r35486  
    131131        },
    132132        shouldHoist(word) {
    133             return word.startTime === this.word.startTime;
     133            return word.startTime === this.word.startTime && word.word === this.word.word;
    134134        }
    135135    },
Note: See TracChangeset for help on using the changeset viewer.