-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
options: add --secondary-sub-pos #13073
options: add --secondary-sub-pos #13073
Conversation
Download the artifacts for this pull request: |
The option works. The references to |
ae31842
to
77a04c3
Compare
replace newline with space when display two subtitle at the bottom will have a better user experience, is adding another option --sub-newline-to-space acceptable ? |
the unused SD_CTRL_SET_TOP is removed |
We should decide now whether to implement all secondary sub options in a separate variable like
That's up to maintainers but it should be in a later PR and newline and space should probably be pluralized. |
This has not completely closed #3022 , it still forces the subtitle style to be stripped for secondary subtitles. |
The default value is 0 (on the top of the screen)
8f0caa1
to
fb45db3
Compare
PR is updated to not close #3022 |
The subtitle style that override secondary subtitles is meaningful, so the new option maintains its default behavior. In certain scenarios, it can also be useful to preserve the subtitle style of ass subtitles for secondary subtitles. For example, some people prefer to preserve the subtitle style when combining bilingual ass subtitles, while others may obtain Danmaku within ass subtitle format when playing videos from websites such as niconico and bilibili. They also need to preserve the subtitle style to obtain the correct rendering when displaying as secondary subtitles. |
Btw, it’s actually quite trivial to make secondary subs fully configurable, but I’m not sure how to do it without all that ugly code duplication. |
You can just do this to duplicate it. Of course you would need to adjust
|
fully configurable sounds good, I will close this PR in favor of @Lypheo 's fully configurable version |
Is it really necessary to implement all |
Yeah I'm not really sure all of them are needed either. We do keep getting people wanting to customize things for secondary subtitles however so it probably makes sense to generalize somewhat instead of constantly adding yet another |
This also sounds reasonable. If we want to add fully configurable Although I still can't see the benefits of applying different behaviors for many |
Don’t, I didn’t intend to make a PR. You can incorporate it into yours if you want. |
Given that secondary-sub-pos is a bit special since it also removes a sd_ctrl. I think we can get this PR sorted out first and then refactor it later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works fine
I will follow up with a small refactor shortly. |
Hi, this It works after changing |
I only tested it on ass subtitle, forgot the image subtitle, would you mind submit a PR |
Could you do the fix please? I'm a bit lost after the recent |
The default value is 0 (on the top of the screen)
related issue: #3022