digitalutsc / islandora_web_annotations

An Islandora module that enables annotation on Islandora objects, following the W3C Web annotation model.
GNU General Public License v3.0
7 stars 5 forks source link

Explore multiple languages in webvtt #203

Closed kimpham54 closed 7 years ago

kimpham54 commented 7 years ago

https://w3c.github.io/webvtt/#cue-text https://w3c.github.io/webvtt/#css-extensions-introduction -> look at the Type selector example

so you could do something like

WEBVTT

00:00:00.000 --> 00:00:08.000
<lang en>Yellow!</lang>
<lang fr>Yellow!</lang>

00:00:09.000 --> 00:00:15.000
<lang en>Blue!</lang>
<lang fr>Blue!</lang>

From @Natkeeran: One VTT can contain cues for different languages and different tracks will specify the language selection

The applicable language for the list of WebVTT Node Objects can be set by the srclang attribute in HTML.

<video ...>
 <track src="example-attr.vtt"
        srclang="en-US" default>
</video>
kimpham54 commented 7 years ago

wrong project