This project is part of the Microverse Ruby Module
Report Bug
·
Request Feature
A basic linter for SubRip (.srt) files
The SubRip Text file format (.srt
) is a very popular video subtitle format that is widely used all over the web today. This linter checks that the SRT file conforms to the SubRip format.
- Ruby (~v2.6.3 or more recent) installed in your machine.
- To clone this repository, open your Terminal and execute the following command:
git clone https://github.com/crgc/srt-linter.git
- Change into the folder
cd srt-linter
- Install gems
bundle install
- Locate the
.srt
file you wish to validate and run it against the SRT Linter
./bin/main.rb <path_to_srt_file>
-
The second line of the subtitle is composed by the time that the subtitle should appear on the screen, followed by
-->
and then the time it should disappear
-
Then comes the subtitle text itself, on one or more lines (this linter imposes a hard limit at 2 lines). Finally, there must be a blank line containing no text, indicating the end of this subtitle
- Ruby
👤 Carlos González
- GitHub: @crgc
- Twitter: @aclerkofpomier
- LinkedIn: Carlos González
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed.