get_raw_text: Get subtitles text

Description Usage Arguments Value Examples

View source: R/coerce_subtitles.R

Description

This function extracts the raw text content of subtitles objects as a character string.

Usage

1
get_raw_text(x, collapse = " ")

Arguments

x

an object of class subtitles or multisubtitles.

collapse

a character string to separate the subtitles lines.

Value

A character string.

Examples

1
2
3
4
f <- system.file("extdata", "ex_subrip.srt", package = "subtools")
s <- read_subtitles(f)
get_raw_text(s)
cat(get_raw_text(s, collapse = "\n"))

fkeck/subtools documentation built on Dec. 2, 2019, 3:19 a.m.