Skip to content

Web app: caption file cleanup and translation (.srt/.vtt) #27

Open

Description

@fahdi

Parity with the Mac feature (PR #26). Port the caption parser, rolling-caption reflow, and chunking/redistribution to JS in docs/app/ following the frozen spec's normative rules (docs/superpowers/specs/2026-07-17-mac-caption-translation-design.md): structural run detector, epsilon=1000ms, byte-for-byte tag stripping, pass-through guarantees (tag-free, karaoke, chant files byte-identical), encoding ladder, always emit the cleaned source track. Translation engine: the browser's built-in Translator API where available (feature-detect; Chrome 138+, on-device), with graceful degradation to cleaned-track-only elsewhere, clearly noted in the UI. Outputs as file downloads (per-file and in the existing zip flow). Add a test harness for the pure caption logic (node:test or vitest) since docs/app currently has none; reuse the real fixtures from mac/Tests/StenoDropTests/Fixtures/.

Activity

  1. added
    enhancement
    on Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions