mpv icon indicating copy to clipboard operation
mpv copied to clipboard

How to align only lines of dialogue that begin with"-"to the left?

Open Araynilmar opened this issue 7 years ago • 2 comments

mpv version and platform

mpv 0.29.0-282-gfcb320fd3f Windows x64 10.0.17134.706 (Win10 RS4 [1803] April 2018 Update)

Reproduction steps

My mpv.conf about sub-justify sub-justify=left sub-ass-justify=yes

This setting causes all multi-line subs aligned to left.

However, I just want the dialogue multi-lines starting with "-" aligned to the left and the rest centered. How to do that?

Expected behavior

img_url

Actual behavior

img_url

Araynilmar avatar May 09 '19 20:05 Araynilmar

It's probably possible to do this with a lua script that yanks the subtitles, filters out ones that begin with a dash, and then aligns those to the left.

Dosprogs avatar Jul 10 '19 15:07 Dosprogs

I don't think you can do this with Lua scripting (it can't change subtitles). Your only choice is probably to write an external script that processes a subtitle file this way. I also had this idea of implementing some sort of subtitle filtering facility, which could be used for something like this, but don't count on this.

ghost avatar Sep 21 '19 16:09 ghost