├── .gitignore ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── README.md ├── bin └── webvtt-segmenter ├── lib ├── webvtt.rb └── webvtt │ ├── parser.rb │ └── segmenter.rb ├── tests ├── parser.rb ├── segmenter.rb └── subtitles │ ├── big_srt.srt │ ├── big_srt.vtt │ ├── invalid_cue.srt │ ├── invalid_cue.vtt │ ├── no_text.vtt │ ├── notvalid.vtt │ ├── test.vtt │ ├── test_carriage_returns.vtt │ ├── test_from_srt.srt │ ├── test_from_srt.vtt │ ├── test_mmss_format.vtt │ ├── test_multiple_line_separators.vtt │ ├── test_multiple_spaces_in_cue.vtt │ ├── weird_format.srt │ ├── weird_format.vtt │ ├── weird_format_corrected.vtt │ ├── withnote.vtt │ └── withstyle.vtt └── webvtt-ruby.gemspec /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.m3u8 3 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/README.md -------------------------------------------------------------------------------- /bin/webvtt-segmenter: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/bin/webvtt-segmenter -------------------------------------------------------------------------------- /lib/webvtt.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/lib/webvtt.rb -------------------------------------------------------------------------------- /lib/webvtt/parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/lib/webvtt/parser.rb -------------------------------------------------------------------------------- /lib/webvtt/segmenter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/lib/webvtt/segmenter.rb -------------------------------------------------------------------------------- /tests/parser.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/parser.rb -------------------------------------------------------------------------------- /tests/segmenter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/segmenter.rb -------------------------------------------------------------------------------- /tests/subtitles/big_srt.srt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/big_srt.srt -------------------------------------------------------------------------------- /tests/subtitles/big_srt.vtt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/big_srt.vtt -------------------------------------------------------------------------------- /tests/subtitles/invalid_cue.srt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/invalid_cue.srt -------------------------------------------------------------------------------- /tests/subtitles/invalid_cue.vtt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/invalid_cue.vtt -------------------------------------------------------------------------------- /tests/subtitles/no_text.vtt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/no_text.vtt -------------------------------------------------------------------------------- /tests/subtitles/notvalid.vtt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/notvalid.vtt -------------------------------------------------------------------------------- /tests/subtitles/test.vtt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/test.vtt -------------------------------------------------------------------------------- /tests/subtitles/test_carriage_returns.vtt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/test_carriage_returns.vtt -------------------------------------------------------------------------------- /tests/subtitles/test_from_srt.srt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/test_from_srt.srt -------------------------------------------------------------------------------- /tests/subtitles/test_from_srt.vtt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/test_from_srt.vtt -------------------------------------------------------------------------------- /tests/subtitles/test_mmss_format.vtt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/test_mmss_format.vtt -------------------------------------------------------------------------------- /tests/subtitles/test_multiple_line_separators.vtt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/test_multiple_line_separators.vtt -------------------------------------------------------------------------------- /tests/subtitles/test_multiple_spaces_in_cue.vtt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/test_multiple_spaces_in_cue.vtt -------------------------------------------------------------------------------- /tests/subtitles/weird_format.srt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/weird_format.srt -------------------------------------------------------------------------------- /tests/subtitles/weird_format.vtt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/weird_format.vtt -------------------------------------------------------------------------------- /tests/subtitles/weird_format_corrected.vtt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/weird_format_corrected.vtt -------------------------------------------------------------------------------- /tests/subtitles/withnote.vtt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/withnote.vtt -------------------------------------------------------------------------------- /tests/subtitles/withstyle.vtt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/tests/subtitles/withstyle.vtt -------------------------------------------------------------------------------- /webvtt-ruby.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opencoconut/webvtt-ruby/HEAD/webvtt-ruby.gemspec --------------------------------------------------------------------------------