package
Version:
v0.0.0-...-f890984
Opens a new window with list of versions in this module.
Published: Dec 4, 2018
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
Documentation
¶
LoadSrt loads the provided file into the given object.
It fixes the \ufeff problem that some parsers have.
WriteSrt takes a SubRip object and the path to which to write the file as a string
type SubRip struct {
Subtitle struct {
Content []Subtitle
}
}
SubRip is the overall file descriptor.
It provides a container for us to dump subtitles into.
ParseSrt is the loader for srt files. Takes the path of the file being opened as the argument.
Subtitle struct provides all of the elements of an .srt subtitle
with lines of subtitles being broken up into []strings
CreateSubtitle creates a subtitle object.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.