.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3. .TH SRT-PROCESS "1" "June 2023" "srt-process 3.5.3" "User Commands" .SH NAME srt-process \- SRT subtitle processing tool .SH DESCRIPTION usage: srt process [\-h] [\-\-input FILE] [\-\-output FILE] [\-\-inplace] .IP [\-\-no\-strict] [\-\-debug] [\-\-ignore\-parsing\-errors] [\-\-encoding ENCODING] \fB\-f\fR FUNC [\-m MODULE] .PP Process subtitle text content using arbitrary Python code. .SS "options:" .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-\-input\fR FILE, \fB\-i\fR FILE the file to process (default: stdin) .TP \fB\-\-output\fR FILE, \fB\-o\fR FILE the file to write to (default: stdout) .TP \fB\-\-inplace\fR, \fB\-p\fR modify file in place .TP \fB\-\-no\-strict\fR allow blank lines in output, your media player may explode .TP \fB\-\-debug\fR enable debug logging .TP \fB\-\-ignore\-parsing\-errors\fR, \fB\-c\fR try to keep going, even if there are parsing errors .TP \fB\-\-encoding\fR ENCODING, \fB\-e\fR ENCODING the encoding to read/write files in (default: utf8) .TP \fB\-f\fR FUNC, \fB\-\-func\fR FUNC a function to use to process lines .TP \fB\-m\fR MODULE, \fB\-\-module\fR MODULE modules to import in the function context .SS "examples:" .IP Strip HTML\-like symbols from a subtitle .IP \f(CW$ srt process -m re -f 'lambda sub: re.sub("<[^<]+?>", "", sub)'\fR