Description Usage Arguments Value
Functions to clean subtitles. clean_tags
cleans formatting tags.
clean_captions
cleans close captions, i.e all text enclosed in parentheses or squared brackets.
clean_patterns
provides a more general and flexible cleaning based on regular expressions.
1 2 3 4 5 | clean_tags(x, format = "srt", clean.empty = TRUE)
clean_captions(x, clean.empty = TRUE)
clean_patterns(x, pattern, clean.empty = TRUE)
|
x |
a |
format |
the original format of the |
clean.empty |
logical. Should empty remaining lines ("") deleted after cleaning. |
pattern |
a character string containing a regular expression to be matched and cleaned. |
A subtitles
or multisubtitles
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.