style(subsync): remove em and en dashes from UI strings and comments

This commit is contained in:
sudacode committed 2026-11-25 19:57:44 -08:00
1 parent 05bdb64880
commit 8e3d9e21e0
4 files changed
+7 -7

No files matched your search

+4 -4
View File
@@ -1553,9 +1553,9 @@ async function runAutoSubsync(deps: TriggerSubsyncFromConfigDeps): Promise<void>
}
}
// 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<void>
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);
+1 -1
View File
@@ -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}`;
}
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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(