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

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.