# subtitle-srt-check

Check an SRT subtitle file for overlaps, too-fast reading speed, long lines and too-short cues

- **Space:** accessibility-public (https://github.com/Tech-Realm/space-accessibility-public/tree/main/subtitle-srt-check)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** local-python; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use accessibility-public/subtitle-srt-check` or MCP `get_pack accessibility-public/subtitle-srt-check`
- **Files:** CHANGELOG.md, code/srt_check.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/captions.srt, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

A per-cue list of subtitle problems (overlapping times, duration < 1 s or > 7 s, > 2 lines, line > 42 chars, reading speed > 17 chars/s) with a summary, so captions meet common accessibility guidelines.

Verified by: Fixture with 4 cues: overlap, fast cue and long line are each reported; the clean cue is not.

## Steps

1. Run `python3 code/srt_check.py captions.srt`.
2. Fix in the subtitle editor (split long cues, extend durations into gaps).
3. Re-run until clean; watch once with sound off.

## Edge cases

- Speaker labels and tags (<i>) are stripped before counting characters.
- Limits are flags (--cps, --line) because platforms differ (e.g. some use 20 cps).

## Don'ts

- Don't claim WCAG conformance from automated checks alone; automated tools catch roughly a third of issues, so do a manual keyboard and screen-reader pass too.
- Don't paraphrase dialogue just to hit a number without checking meaning.



---

Canonical URL: https://logicpacks.io/packs/accessibility-public/subtitle-srt-check

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
