subtitleParser-0.2: A parser for .srt and .sub files

Portabilityunknown
Maintainerruben.astud@gmail.com
Safe HaskellSafe-Infered

Text.Subtitles.SUB

Contents

Description

A basic parser for .sub files (subtitles) based on Attoparsec and Text

Synopsis

Terminology of the module

Refering to the parts of a single line of a subtitle file.

{50}{100}Drama here!

the first to numbers correspond to the frame in which the text Drama here! is displayed.

Re-exported Datatypes

Main Parsers

parseSingleLine :: Parser LineSource

Given the example return the corresponding Line representation. At the moment this not handles modifiers as underlines or bold text

parseSUB :: Parser SubtitlesSource

Main parser of .sub files, given a .sub file it return a list of the dialog lines