srt-validation aims to be a small and simple command-line utility that scans subtitles in SRT format and checks for various errors. This is accomplished by reading a file and checking for the following:
- Number of characters per line;
- Number of lines for each subtitle;
- Checking for overlapping subtitles;
- Checking for mismatched tags;
- Checking for missing empty lines after a subtitle.
srt-validation is still a work-in-progress. This section will be updated once the code is in a usable form.
After completion, srt-validate will support the following command-line options:
- -h
Prints an usage message and exits; - -p
Performance mode. Each subtitle is checked only against the subtitle that immediately follows it. - -a
Accurate mode. Each subtitle is checked against all the subtitles that follow it. - -l number of lines per subtitle
Sets the maximum numbers of lines per subtitle. There are more lines per subtitle than this number, an error message is printed to the console. - -c number of characters per line
Sets the maximum number of characters per line. If a line length exceeds this threshold, an error message is printed to the console.
Note that at the time of this writing not all command-line options are supported.