Changeset 35448 for main


Ignore:
Timestamp:
2021-09-21T16:35:54+12:00 (3 years ago)
Author:
cstephen
Message:

Highlight words when editing

Location:
main/trunk/model-interfaces-dev/atea
Files:
4 edited

Legend:

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

    r35446 r35448  
    1818            and they can be downloaded in multiple formats.
    1919            <br />
    20             The actual transcriptions are produced with gratitude by using <a href="https://koreromaori.io">koreromaori.io's</a> service.
     20            The actual transcriptions are produced with gratitude by using <a href="https://koreromaori.io">koreromaori.io</a>'s service.
    2121        </div>
    2222    </div>
  • main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItemEditor.vue

    r35446 r35448  
    1313            <li v-for="(word, index) in words" :key="word.id" class="word-container">
    1414                <input :size="word.word.length <= 1 ? 1 : word.word.length - 1" :ref="word.id"
    15                     class="editor-word" v-model="word.word" type="text" onpaste="return false;"
    16                     @input="onEditorInput($event, index)" @focusout="onEditorFocusOut(index)" @keyup="onEditorKeyUp($event, index)" />
     15                    class="editor-word" v-model="word.word" type="text" onpaste="return false;" :class="{ 'word-highlight-applied': word.shouldHighlight }"
     16                    @input="onEditorInput($event, index)" @focusout="onEditorFocusOut(index)" @keyup="onEditorKeyUp($event, index)" @focus="onEditorFocus(index)" />
    1717                <span>&nbsp;</span>
    1818            </li>
     
    167167            }
    168168        },
     169        onEditorFocus(index) {
     170            const wordStartTime = this.words[index].startTime + 0.01;
     171            this.$store.commit("playbackStateSetCurrentTime", wordStartTime);
     172        },
    169173        onEditorFocusOut(index) {
    170174            // Remove empty words when they lose focus
  • main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/styles/theme.scss

    r35445 r35448  
    11////
    2 /// Applies default themes.
     2/// Applies default themes and styles.
    33////
    44
  • main/trunk/model-interfaces-dev/atea/transform/pages/korero-maori-asr.xsl

    r35447 r35448  
    1616    <xsl:variable name="groupPath"><xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/></xsl:variable>
    1717    <!-- set page title -->
    18     <xsl:template name="pageTitle"><gslib:collectionName/></xsl:template>
     18    <xsl:template name="pageTitle">Korero Maori Transcription Interface</xsl:template>
    1919
    2020    <!-- set page breadcrumbs -->
     
    3838    </xsl:template>
    3939   
    40     <!-- Template for processing audio file uploads -->
    4140    <xsl:template name="audio-transcription">
    4241        <link rel="icon" href="interfaces/{$interface_name}/korero-maori-asr/dist/favicon.ico" />
Note: See TracChangeset for help on using the changeset viewer.