abstract class Subtitles::Format
- Subtitles::Format
- Reference
- Object
Overview
Each subtitle format (like ASS, SRT, JSON, etc.) should be compatible with this interface.
Direct Known Subclasses
- Subtitles::JSON
- Subtitles::LRC
- Subtitles::SBV
- Subtitles::SMI
- Subtitles::SRT
- Subtitles::SUB
- Subtitles::Substation
- Subtitles::VTT
Defined in:
format.crClass Method Summary
-
.detect
detect this filetype
-
.from_extension(extension string : String) : self.class?
return the appropriate filetype for the given extension string.
Instance Method Summary
-
#content : IO
The textual representation of the subtitles.
-
#to_captions
Convert this Substation subtitles file to an intermediary format for conversion to another format.
Class Method Detail
return the appropriate filetype for the given extension string.
Instance Method Detail
abstract
def to_captions
#
Convert this Substation subtitles file to an intermediary format for conversion to another format. This process can be lossy, depending on the format.