From 8e3d9e21e047c32aa0169d30ff1ae1e86e51b2cc Mon Sep 17 00:00:00 2001 From: sudacode Date: Wed, 25 Nov 2026 19:57:44 -0800 Subject: [PATCH] style(subsync): remove em and en dashes from UI strings and comments --- src/core/services/subsync.ts | 8 ++++---- src/renderer/modals/subsync.ts | 2 +- src/subsync/alass-align.ts | 2 +- src/subsync/audio-speech.ts | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/core/services/subsync.ts b/src/core/services/subsync.ts index 840e1a99..ea7685f7 100644 --- a/src/core/services/subsync.ts +++ b/src/core/services/subsync.ts @@ -1553,9 +1553,9 @@ async function runAutoSubsync(deps: TriggerSubsyncFromConfigDeps): Promise } } - // Sampled verification didn't yield a confident aligned subtitle sync (e.g. all - // references were misaligned or sampled windows were inconclusive) — escalate - // to full-episode audio extraction for complete verification + audio VAD sync! + // Sampled verification did not yield a confident aligned subtitle sync (e.g. all + // references were misaligned or sampled windows were inconclusive). Escalate + // to full-episode audio extraction for complete verification and audio VAD sync. audioSpeech = await resolveAudioSpeechForContext(context, resolved, deps); if (audioSpeech) { lengthSec = context.durationSec ?? audioSpeech.durationSec; @@ -1704,7 +1704,7 @@ async function runAutoSubsync(deps: TriggerSubsyncFromConfigDeps): Promise defaultReferenceKey: bestAttempt?.referenceKey ?? null, }); deps.openManualPicker(payload); - deps.showMpvOsd('Subsync needs guidance — opened options'); + deps.showMpvOsd('Subsync needs guidance: opened options'); } finally { if (!keepTempTarget) { cleanupTemporaryFile(targetExtraction); diff --git a/src/renderer/modals/subsync.ts b/src/renderer/modals/subsync.ts index a579af93..86307a90 100644 --- a/src/renderer/modals/subsync.ts +++ b/src/renderer/modals/subsync.ts @@ -137,7 +137,7 @@ export function createSubsyncModal( function formatCandidateOptionLabel(candidate: SubsyncReferenceCandidate): string { const prefix = candidate.recommended ? '★ ' : ''; - const detail = candidate.detail ? ` — ${candidate.detail}` : ''; + const detail = candidate.detail ? ` · ${candidate.detail}` : ''; return `${prefix}${candidate.label}${detail}`; } diff --git a/src/subsync/alass-align.ts b/src/subsync/alass-align.ts index 2ed1da5c..f8ca44ac 100644 --- a/src/subsync/alass-align.ts +++ b/src/subsync/alass-align.ts @@ -636,7 +636,7 @@ interface BroadcastPiece { } /** - * Handle TV broadcast subtitles with large commercial/ad-break gaps (30s–180s) + * Handle TV broadcast subtitles with large commercial/ad-break gaps (30s to 180s) * where a single shift cannot fit the whole episode. Splits along long pauses * (>= 15s), aligns each act independently via exact `alignNoSplit`, merges weak * or redundant pieces, and verifies the whole result with line-start agreement z-scores. diff --git a/src/subsync/audio-speech.ts b/src/subsync/audio-speech.ts index 32ced20c..c4ec56b6 100644 --- a/src/subsync/audio-speech.ts +++ b/src/subsync/audio-speech.ts @@ -106,7 +106,7 @@ function rememberAudioSpeech(key: string | null, result: AudioSpeechResult): voi /** * Pure-TypeScript voice-band speech activity detector operating on 16-bit mono - * PCM (expected 8 kHz, voice band-passed 200–3400 Hz). Uses a global dynamic-range + * PCM (expected 8 kHz, voice band-passed 200 to 3400 Hz). Uses a global dynamic-range * histogram with hysteresis, zero-crossing gating, hangover, and short-gap bridging. */ export function detectSpeechSpansFromPcm(