summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorDan Oscarsson <DanOscarsson@users.noreply.github.com>2017-02-01 13:19:09 +0100
committerwm4 <wm4@nowhere>2017-02-01 16:42:58 +0100
commitf1c9032ddf5eba1241d9616656b4c36bc4043283 (patch)
tree6c7e84dbca6d3631ac4330ed32987eb609deab8c /options
parentbbf01346ff684f0f6a8cc8489b00920956dc16eb (diff)
downloadmpv-f1c9032ddf5eba1241d9616656b4c36bc4043283.tar.bz2
mpv-f1c9032ddf5eba1241d9616656b4c36bc4043283.tar.xz
sub: add justify of subtitles
To make it easier for the eyes, multi line subtitles should be left justified (for most languages). This adds an option to define how subtitles are to be justified inpendently of how they are aligned. Also add option to enable --sub-justify to be applied on ASS subtitles.
Diffstat (limited to 'options')
-rw-r--r--options/options.c1
-rw-r--r--options/options.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 6547f06074..5166ef6940 100644
--- a/options/options.c
+++ b/options/options.c
@@ -500,6 +500,7 @@ const m_option_t mp_opts[] = {
({"none", 0}, {"light", 1}, {"normal", 2}, {"native", 3})),
OPT_CHOICE("sub-ass-shaper", ass_shaper, UPDATE_OSD,
({"simple", 0}, {"complex", 1})),
+ OPT_FLAG("sub-ass-justify", ass_justify, 0),
OPT_CHOICE("sub-ass-style-override", ass_style_override, UPDATE_OSD,
({"no", 0}, {"yes", 1}, {"force", 3}, {"signfs", 4}, {"strip", 5})),
OPT_FLAG("sub-scale-by-window", sub_scale_by_window, UPDATE_OSD),
diff --git a/options/options.h b/options/options.h
index b0687ac9e5..82a8f92d48 100644
--- a/options/options.h
+++ b/options/options.h
@@ -281,6 +281,7 @@ typedef struct MPOpts {
int ass_style_override;
int ass_hinting;
int ass_shaper;
+ int ass_justify;
int sub_clear_on_seek;
int teletext_page;