Accessibility/Video Text Format: Difference between revisions

added a version number to WMML
(removed flexibility in <cue>s, added JSON example, some edits)
(added a version number to WMML)
Line 22: Line 22:
<pre>
<pre>
<!DOCTYPE wmml>
<!DOCTYPE wmml>
<wmml lang="en-US">
<wmml lang="en-US" version="1.0">
   <cuelist>
   <cuelist>
     <cue start="00:00:00.00" end="00:00:10.00">This should render from time=0s to time=10s.</cue>
     <cue start="00:00:00.00" end="00:00:10.00">This should render from time=0s to time=10s.</cue>
Line 42: Line 42:


<pre>
<pre>
<!DOCTYPE wmml>
<!DOCTYPE wmml version="1.0">
<wmml lang="en-US" profile="innerHTML">
<wmml lang="en-US" profile="innerHTML">
   <head>
   <head>
Line 90: Line 90:
** lang: the language in which this document is provided
** lang: the language in which this document is provided
** profile: specifies the format used in the cues and thus the parser that should be used; values include "plainText", "innerHTML", "JSON", "any" (other formats can be developed); default is "innerHTML"
** profile: specifies the format used in the cues and thus the parser that should be used; values include "plainText", "innerHTML", "JSON", "any" (other formats can be developed); default is "innerHTML"
** version: a marker to keep track of any potential future changes


==== the &lt;head> element ====
==== the &lt;head> element ====
Line 152: Line 153:


<pre>
<pre>
<!DOCTYPE wmml>
<!DOCTYPE wmml version="1.0">
<wmml lang="en-US" kind="subtitles" profile="plainText">
<wmml lang="en-US" kind="subtitles" profile="plainText">
   <cuelist>
   <cuelist>
Line 166: Line 167:


<pre>
<pre>
<!DOCTYPE wmml>
<!DOCTYPE wmml version="1.0">
<wmml lang="de_DE" kind="subtitles" profile="innerHTML">
<wmml lang="de_DE" kind="subtitles" profile="innerHTML">
   <head>
   <head>
Line 193: Line 194:


<pre>
<pre>
<!DOCTYPE wmml>
<!DOCTYPE wmml version="1.0">
<wmml lang="zh" kind="subtitles">
<wmml lang="zh" kind="subtitles">
   <head>
   <head>
Line 214: Line 215:


<pre>
<pre>
<!DOCTYPE wmml>
<!DOCTYPE wmml version="1.0">
<wmml lang="en-US" kind="captions">
<wmml lang="en-US" kind="captions">
   <head>
   <head>
Line 233: Line 234:


<pre>
<pre>
<!DOCTYPE wmml>
<!DOCTYPE wmml version="1.0">
<wmml lang="en-US" kind="lyrics">
<wmml lang="en-US" kind="lyrics">
   <head>
   <head>
Line 260: Line 261:


<pre>
<pre>
<!DOCTYPE wmml>
<!DOCTYPE wmml version="1.0">
<wmml lang="en-US" kind="karaoke">
<wmml lang="en-US" kind="karaoke">
   <head>
   <head>
Line 295: Line 296:


<pre>
<pre>
<!DOCTYPE wmml>
<!DOCTYPE wmml version="1.0">
<wmml lang="en-US" kind="chapters" profile="plainText">
<wmml lang="en-US" kind="chapters" profile="plainText">
   <cuelist>
   <cuelist>
Line 308: Line 309:


<pre>
<pre>
<!DOCTYPE wmml>
<!DOCTYPE wmml version="1.0">
<wmml lang="en-US" kind="chapters">
<wmml lang="en-US" kind="chapters">
   <cuelist>
   <cuelist>
Line 322: Line 323:


<pre>
<pre>
<!DOCTYPE wmml>
<!DOCTYPE wmml version="1.0">
<wmml lang="en-US" kind="chapters" profile="JSON">
<wmml lang="en-US" kind="chapters" profile="JSON">
   <cuelist>
   <cuelist>
Line 342: Line 343:


<pre>
<pre>
<!DOCTYPE wmml>
<!DOCTYPE wmml version="1.0">
<wmml lang="en-US" kind="descriptions" profile="plainText">
<wmml lang="en-US" kind="descriptions" profile="plainText">
   <cuelist>
   <cuelist>
Line 357: Line 358:


<pre>
<pre>
<!DOCTYPE wmml>
<!DOCTYPE wmml version="1.0">
<wmml lang="en-US" kind="metadata" profile="JSON">
<wmml lang="en-US" kind="metadata" profile="JSON">
   <head>
   <head>