From 7c264950c0bff588f6852c461c26b37a550a5abb Mon Sep 17 00:00:00 2001 From: "Avi Halachmi (:avih)" Date: Fri, 23 Jul 2021 19:11:23 +0300 Subject: sub: new: --sub-filter-jsre (js regex) Pretty much identical to filter-regex but with JS expressions and requires only JS support. Shares the filter-regex-* control options. The target audience is Windows users - where filter-regex doesn't work due to missing APIs, but mujs builds cleanly on Windows, and JS is usually enabled in 3rd party Windows mpv builds. Lua could have been used with similar effort, however, the JS regex syntax is more extensive and also much more similar to POSIX. --- DOCS/man/options.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'DOCS/man/options.rst') diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 65626b80c0..c540400c74 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -2826,6 +2826,11 @@ Subtitles include replacing the regexes with a very primitive and small subset of sed, or some method to control case-sensitivity. +``--sub-filter-jsre-...=...`` + Same as ``--sub-filter-regex`` but with JavaScript regular expressions. + Shares/affected-by all ``--sub-filter-regex-*`` control options (see below), + and also experimental. Requires only JavaScript support. + ``--sub-filter-regex-warn=`` Log dropped lines with warning log level, instead of verbose (default: no). Helpful for testing. -- cgit v1.2.3