Fix missing and semi-transparent events in oneshot render #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
\
starts new tag)
completes the tag;
is a generic character (not a delimiter)\move (...)
,\t (...)
\move(...
,\t(...
at the end of override blockwon't work for
\t(...\t(...
The parser is far from perfect, but I think we need to fix the semi-transparent subtitles issue in our fork until the upstream is ready.
isalnum
andisspace
can be replaced with our own, but I see no reason to do this for nearly valid subtitles (which don't use non-Latin characters in override blocks).I don't know if nested parentheses are ignored, but again, this doesn't harm for valid subtitles.
The upstream goes a different way - it now uses a simplified parser (without analyzing
move
).New parser in action
The animation for
Transform 5
is incorrectly dropped (but detected correctly) because\t(
starts a new transition (libass#111 (comment)), but the parser is "in brackets". We don't usedropAllAnimations
and the old parser didn't detect animation for these samples.Issues
jellyfin/jellyfin-web#2291
Due to incorrect parsing
\fad
and\fade
are not considered animated and are displayed in a semi-transparent state.