summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/interface-changes.rst1
-rw-r--r--DOCS/man/options.rst16
2 files changed, 15 insertions, 2 deletions
diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst
index 18915d5078..0498604615 100644
--- a/DOCS/interface-changes.rst
+++ b/DOCS/interface-changes.rst
@@ -34,6 +34,7 @@ Interface changes
- `--screenshot-avif-pixfmt` no longer defaults to yuv420p
- `--screenshot-avif-opts` defaults to lossless screenshot
- rename key `MP_KEY_BACK` to `MP_KEY_GO_BACK`
+ - add `--sub-filter-sdh-enclosures` option
--- mpv 0.37.0 ---
- `--save-position-on-quit` and its associated commands now store state files
in %LOCALAPPDATA% instead of %APPDATA% directory by default on Windows.
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 97bf375c10..4a9dcfe3b8 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -2898,8 +2898,11 @@ Subtitles
This is intended for English, but may in part work for other languages too.
The intention is that it can be always enabled so may not remove
all parts added.
- It removes speaker labels (like MAN:), upper case text in parentheses and
- any text in brackets.
+
+ It removes speaker labels (like MAN:) and any text enclosed within symbols like
+ parentheses or brackets as specified by the ``--sub-filter-sdh-enclosures`` option.
+ Note that parenthesis are a special case and only upper case text is removed. For
+ more filtering, you can use the ``--sub-filter-sdh-harder`` option.
Default: ``no``.
@@ -2910,6 +2913,15 @@ Subtitles
Default: ``no``.
+``--sub-filter-sdh-enclosures=<string>``
+ Specify a string of characters that ``--sub-filter-sdh`` will use to potentially
+ remove text. Text that is enclosed within characters specified by this string will
+ be removed. Note that bracket characters with known pairs (such as ``(`` or ``[``)
+ will be mapped internally to their matching right hand character, so you only need
+ to specify left hand characters.
+
+ Default: ``([``.
+
``--sub-filter-regex-...=...``
Set a list of regular expressions to match on text subtitles, and remove any
lines that match (default: empty). This is a string list option. See