Skip to content

feat: handle srt tags - #146

Open
zoriya wants to merge 1 commit into
asticode:masterfrom
zoriya:feat/srt-tags
Open

feat: handle srt tags#146
zoriya wants to merge 1 commit into
asticode:masterfrom
zoriya:feat/srt-tags

Conversation

@zoriya

@zoriya zoriya commented Aug 10, 2026

Copy link
Copy Markdown

it is very common to have ssa styles embedded in srt subtitles and astisub currently doesn't handle this and leaves tags as is in the output text.

There is no official spec for this but this is widely supported (ffmpeg, vlc, mpv to name a few players that support this). Every implementation follows aegisub's wiki (http://docs.aegisub.org/latest/ASS_Tags/).
See #31 for previous discussion on the subject.

This PR adds support for the most common tags and those that astisub already handled somewhere (positions, bold...). This leaves out tags that can't be processed easily (fonts, move, custom pos and so on). We could add support for those with follow up PRs if wanted but I'm not sure if there's as much value as with those really frequent tags (like position).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant