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

How to specify a language when VTT file is converted to DFXP #160

Open
sponnusamy opened this issue Nov 28, 2017 · 1 comment
Open

How to specify a language when VTT file is converted to DFXP #160

sponnusamy opened this issue Nov 28, 2017 · 1 comment

Comments

@sponnusamy
Copy link

sponnusamy commented Nov 28, 2017

DFXP has tag like below <tt xml:lang="en" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling". pycaption converts to "en" always though the vet file has Language: en . Is it possible to specify language when its converted

@ana-nichifor
Copy link
Contributor

Hi, you can specify the language when reading the WebVTT file, like this: WebVTTReader().read(your_file, lang='en-US')
Unfortunately, the DFXPWriter doesn't support other languages for now and defaults to en.

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

No branches or pull requests

2 participants