class Subtitles::SRT
- Subtitles::SRT
- Subtitles::Format
- Reference
- Object
Defined in:
format/srt.crConstant Summary
-
SRT_PART_REGEX =
/^(\d+)\r?\n(\d{1,2}:\d{1,2}:\d{1,2}([.,]\d{1,3})?)\s*\-\-\>\s*(\d{1,2}:\d{1,2}:\d{1,2}([.,]\d{1,3})?)\r?\n([\s\S]*)(\r?\n)*$/i
-
SRT_REGEX =
/^\d+\r?\n\d{1,2}:\d{1,2}:\d{1,2}([.,]\d{1,3})?\s*\-\-\>\s*\d{1,2}:\d{1,2}:\d{1,2}([.,]\d{1,3})?/i
-
SRT_TIME_FORMAT =
"%H:%M:%S,%L"
Constructors
-
.new(content : IO)
initialize with the content
-
.new(content string : String)
initialize with the content
- .new(captions : Captions, eol = "\r\n")
-
.new(*, filepath : String)
Read in an SSA compatible subtitle from the given filepath.