Skip to content
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

add format sami = smi #80

Open
milahu opened this issue Dec 17, 2023 · 0 comments
Open

add format sami = smi #80

milahu opened this issue Dec 17, 2023 · 0 comments

Comments

@milahu
Copy link

milahu commented Dec 17, 2023

sami is a rarely-used subtitles format, which looks like broken html (unclosed tags)

https://en.wikipedia.org/wiki/SAMI

https://github.com/LinearAlpha/smi2ass/blob/main/smi2ass.py - hacky... fighting the html parser

https://github.com/xbmc/xbmc/blob/master/xbmc/cores/VideoPlayer/DVDSubtitles/DVDSubtitleParserSami.cpp

https://github.com/videolan/vlc/blob/master/modules/demux/subtitle.c#L1380 - static int ParseSami

i would implement this as an xml html stream parser, to handle all the unclosed tags
and because we dont need the html dom - we build our own "document"

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

No branches or pull requests

2 participants