From 4409d2bfea3b2028bd4c51136bb60ef5ba1c8bde Mon Sep 17 00:00:00 2001 From: zyronon Date: Tue, 16 Sep 2025 01:50:12 +0800 Subject: [PATCH] save --- Note.md | 6 +++ public/dicts/en/article/NCE_2.json | 4 +- .../pc/article/components/TypingArticle.vue | 54 +++++++++---------- 3 files changed, 35 insertions(+), 29 deletions(-) diff --git a/Note.md b/Note.md index 170f2d41..80cb03f3 100644 --- a/Note.md +++ b/Note.md @@ -60,3 +60,9 @@ nce1-16.A polite request.解析出来有问题 I found this note on my car: 'Sir, we welcome you to our city. This is a 'No Parking' area. You will enjoy your stay here if you pay attention to our street signs. This note is only a reminder.' If you receive a request like this, you cannot fail to obey it! 'No Parking' 会被截断 + + +Food and talk + A new play is coming to "The Globe"soon, I said. Will you be seeing it? + +26的 of curse \ No newline at end of file diff --git a/public/dicts/en/article/NCE_2.json b/public/dicts/en/article/NCE_2.json index f042a860..4f6983ce 100644 --- a/public/dicts/en/article/NCE_2.json +++ b/public/dicts/en/article/NCE_2.json @@ -817,7 +817,7 @@ "newWords": [], "textAllWords": [], "audioSrc": "/sound/article/nce2-1/Am I all right.mp3", - "lrcPosition": [[15.89,26.07],[26.16,30.06],[31.89,35.85],[35.85,43.93],[43.93,55.13],[55.13,64.32],[64.32,76.56],[76.56,83.4],[83.4,90.01]] + "lrcPosition": [[15.89,26.07],[26.16,30.06],[30.06,35.85],[35.85,43.93],[43.93,55.13],[55.13,64.32],[64.32,76.56],[76.56,83.4],[83.4,90.01]] }, { "id": "jX93q7", @@ -828,7 +828,7 @@ "newWords": [], "textAllWords": [], "audioSrc": "/sound/article/nce2-1/Food and talk.mp3", - "lrcPosition": [[15.64,22.24],[22.24,29.24],[29.34,34.73],[34.73,39.22],[42.09,44.95],[44.95,53.05],[53.12,55.65],[55.65,62.56],[53.12,55.95],[65.81,69.92],[53.12,55.95],[72.94,78.46],[78.46,89.47]] + "lrcPosition": [[14.84,22.24],[22.74,29.24],[29.34,34.73],[34.73,39.22],[42.09,44.95],[44.95,53.05],[53.12,55.65],[55.65,62.56],[53.12,55.95],[65.81,69.92],[53.12,55.95],[72.94,78.46],[78.46,89.47]] }, { "id": "dWA516", diff --git a/src/pages/pc/article/components/TypingArticle.vue b/src/pages/pc/article/components/TypingArticle.vue index c1a3179d..b7beabc6 100644 --- a/src/pages/pc/article/components/TypingArticle.vue +++ b/src/pages/pc/article/components/TypingArticle.vue @@ -437,33 +437,7 @@ function onContextMenu(e: MouseEvent, sentence: Sentence, i, j, w) { y: e.y, items: [ { - label: "从这开始", - onClick: () => { - sectionIndex = i - sentenceIndex = j - //todo 这里有可能是符号,要处理下 - wordIndex = w + 1 - stringIndex = 0 - input = wrong = '' - isEnd = isSpace = false - let currentSection = props.article.sections[sectionIndex] - currentSection.slice(sentenceIndex).map(w => { - w.words.map(v => { - v.input = '' - }) - }) - props.article.sections.slice(sectionIndex + 1).map((v, i) => { - v.map((w) => { - w.words.map(v => { - v.input = '' - }) - }) - }) - emit('play', {sentence: sentence, handle: false}) - } - }, - { - label: "添加到收藏", + label: "收藏单词", onClick: () => { let word = props.article.sections[i][j].words[w] let doc = nlp(word.word) @@ -499,6 +473,32 @@ function onContextMenu(e: MouseEvent, sentence: Sentence, i, j, w) { }) } }, + { + label: "从这开始", + onClick: () => { + sectionIndex = i + sentenceIndex = j + //todo 这里有可能是符号,要处理下 + wordIndex = w + 1 + stringIndex = 0 + input = wrong = '' + isEnd = isSpace = false + let currentSection = props.article.sections[sectionIndex] + currentSection.slice(sentenceIndex).map(w => { + w.words.map(v => { + v.input = '' + }) + }) + props.article.sections.slice(sectionIndex + 1).map((v, i) => { + v.map((w) => { + w.words.map(v => { + v.input = '' + }) + }) + }) + emit('play', {sentence: sentence, handle: false}) + } + }, { label: "播放句子", onClick: () => {