-
Notifications
You must be signed in to change notification settings - Fork 111
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
Support multiple languages in TTML #107
Comments
I've the feeling that adding a |
All the parsing will return the result as object Subtitles, and there is only one master language for the whole object, we can not know which Items belong to which language, that's why. If we want to fix it, we will break the Subtitles object structures and affect user of this library, they need to change their code to adapt with new structure. There is a way to achieve fixing the issue by storing language for each Subtitles Items, yeah, just like what you said, but it sounds inefficiency. But seems like that it is the only way for this current structure. And then, a question pop up. When converting the multiple languages TTML to WebVTT (or other formats), should we output multiple WebVTT files? I think it is yes, we should append the language into the name of WebVTT file for distinguishing them. |
Which changes are you thinking about? 🤔 |
Nothing special, just do not store |
Hi,
This is valid in TTML:
After parsing it and write it as TTML again, I expect that we still have two
div
tag with different languages, but I have this:Languages are gone, and texts are merged into one
div
tag.I am looking for a way to fix this, but with the current structure of the lib, It is hard to achieve that without breaking anything.
The text was updated successfully, but these errors were encountered: