subx

package module
v0.0.0-...-be1ba74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2017 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteToFile

func WriteToFile(filename string, subtitles []*Subtitle) error

Types

type Subtitle

type Subtitle struct {
	Index int
	Start time.Time
	End   time.Time
	Text  string
}

func BuildPhrases

func BuildPhrases(subtitles []*Subtitle) []*Subtitle

func Parse

func Parse(content string) ([]*Subtitle, error)

func ParseFromFile

func ParseFromFile(path string) ([]*Subtitle, error)

func RemoveHTML

func RemoveHTML(subtitles []*Subtitle) []*Subtitle

func RemoveNewLines

func RemoveNewLines(subtitles []*Subtitle) []*Subtitle

func RemoveNonDialog

func RemoveNonDialog(subtitles []*Subtitle) []*Subtitle

func RoundTime

func RoundTime(subtitles []*Subtitle) []*Subtitle

func SyncTranslation

func SyncTranslation(subtitles []*Subtitle, translations []*Subtitle) []*Subtitle

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL