Fixes #77, fixes #83. Relates to #78.
#83 — redundant translations: createLyricLine now drops a translation sub-line when it only echoes the line, via a new isRedundantTranslation helper in src/lyrics.ts. Two cases: the translation matches the displayed (possibly romanized) line case/whitespace-insensitively, or the original line is Latin-only and lrc.red's English translation track merely echoes it (just u… → Just you…, verified against GO GHOST / King Gnu JPU902602513). Genuine translations are kept — locked by tests for ja→en (GO GHOST L3) and fr→en (La Vie En Rose, whose French original would otherwise be a false positive).
#77 — display policy + spacing: settled in code comments (selectLyricsDisplay, createLyricLine, README): one main line — romanized when Romanized mode is on and the line has one, else the original, never kanji beside romanization; translation stays an optional secondary line, including in Romanized mode. Spacing audit against real lrc.red TTML (GO GHOST, 白日): adjacent spans are syllables of one word, spaced spans are word breaks, and the parser/retimeRomanization already honor that — added regression tests on both sides (TS display + Rust parser) locking kowarekake no hibi sae mo-style output.
#78 — SPIN / Kroi: provider gap, not a code bug — commented on the issue with findings (search.json → JPPC02612107, TTML has empty <translations/> and no <transliterations> at all). No client-side romanization by design; Romanized toggle stays correctly disabled.
Validation: vp test run 95 passed, vp check clean, cargo test 69 passed, cargo fmt --check + clippy clean.
Activity
9Review · f744f3d
✅ No blocking issues
Drops echo translations and locks romanized spacing with regression tests on both sides; the short-line gate in this push resolves the last open edge case.
Confidence: 5/5 — No open findings remain and the fix is locked by a targeted regression test.
| Finding | Location | |
|---|---|---|
| ✅ Fixed | Fuzzy echo hides genuine short translations | src/lyrics.ts:350 |
Review · b699ac4
⚠️ 1 open findings
Drops echo translations and locks romanized spacing with regression tests on both sides; the biggest risk is the 0.6 fuzzy echo threshold hiding genuine short Latin-to-Latin translations.
Confidence: 4/5 — Diff is well tested for the reported songs, leaving only a short-line edge case before merge.
src/lyrics.ts:350Prompt for all open findings
src/lyrics.tsaround lines 341-351, the fuzzy echo branch inisRedundantTranslationtreats any Latin-only pair with edit similarity ≥ 0.6 as redundant, which misfires on very short lines (e.g. "Non" vs "No", similarity 0.667): gate the similarity check so it only applies above a minimum folded length or require higher similarity for short strings, keeping the exact-fold match as the short-line rule.