From 1d2daef9a1eae9d0e5755fbd3e7323a204550f0e Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Tue, 9 Dec 2025 02:19:01 +0900 Subject: [PATCH] =?UTF-8?q?[F]=20Fix=20katakana=20=E6=B5=8A=E9=9F=B3=20mar?= =?UTF-8?q?ked=20incorrectly=20when=20using=2012-key=20input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/song/[id]/play/+page.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/song/[id]/play/+page.svelte b/src/routes/song/[id]/play/+page.svelte index f08609a..3ff8785 100644 --- a/src/routes/song/[id]/play/+page.svelte +++ b/src/routes/song/[id]/play/+page.svelte @@ -113,9 +113,10 @@ // Check if it matches current character let { cLine, cSeg, exp } = findLoc() + let exph = toHiragana(exp) let res = fuzzyEquals(char, exp) // Need to compose, stop here - if (res !== 'right' && !imeUsed && !isComposed && composeList.includes(exp) && composeMap.get(exp) === char) return + if (res !== 'right' && !imeUsed && !isComposed && composeList.includes(exph) && composeMap.get(exph) === char) return states[li][wi] = res // Record stats