summaryrefslogtreecommitdiffstats
path: root/DOCS/man/options.rst
diff options
context:
space:
mode:
authorllyyr <llyyr.public@gmail.com>2023-12-16 01:32:45 +0530
committerKacper Michajłow <kasper93@gmail.com>2024-04-18 00:14:44 +0200
commit805577c79274d1f3acda02904a13273d84770fa1 (patch)
treea3c4b3ed0060ad6f94a3efcdc2e5280c0a2b5752 /DOCS/man/options.rst
parentf862d3b6cd66abee98f2af21c36255ef7361cb80 (diff)
downloadmpv-805577c79274d1f3acda02904a13273d84770fa1.tar.bz2
mpv-805577c79274d1f3acda02904a13273d84770fa1.tar.xz
sd_ass: add `sub-vsfilter-bidi-compat` to enable vsfilter bidi compat
Enable ASS_FEATURE_{WHOLE_TEXT_LAYOUT, BIDI_BRACKETS} and auto base detection by default, and add an option to disable this if needed. This is strictly an improvement for webvtt files as they always use auto base detection. This _fixes_ right-to-left text rendering for webvtt files which correctly mark rtl/ltr. Webvtt files obtained from sources which sideload the RTL information through css also see an improvement due to the auto detection. Generally SRT files also want this, but some are also written to workaround VSFilter quirks. See also: https://github.com/mpv-player/mpv/pull/12985#issuecomment-1839565138
Diffstat (limited to 'DOCS/man/options.rst')
-rw-r--r--DOCS/man/options.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index c7b6a8e7d3..1412726ef6 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -2560,6 +2560,15 @@ Subtitles
offset scale factor, not what the video filter chain or the video output
use.
+``--sub-vsfilter-bidi-compat=<yes|no>``
+ Set implicit bidi detection to ``ltr`` instead of ``auto`` to match ASS'
+ default. This also disables libass' incompatible extensions. This currently
+ includes bracket pair matching according to the revised Unicode
+ Bidirectional Algorithm introduced in Unicode 6.3, and also affects how BiDi
+ runs are split and processed, as well as soft linewrapping of unicode text.
+
+ This affects plaintext (non-ASS) subtitles only. Default: no.
+
``--sub-ass-vsfilter-color-compat=<basic|full|force-601|no>``
Mangle colors like (xy-)vsfilter do (default: basic). Historically, VSFilter
was not color space aware. This was no problem as long as the color space