What are TTML files?

Asked

Viewed 180 times

3

I saw that there is a type of file with extension similar to HTML, TTML, but I still don’t understand them.

  • What are the TTML files, and where I use them?
  • What are the main differences between HTML and TTML? I saw a short excerpt on Wikipedia of its syntax, very similar to HTML:

    <tt xmlns="http://www.w3.org/ns/ttml">
      <body>
        <div begin="22s" dur="5s">
          <p>I'll teach thee Bugology, Ignatzes</p>
        </div>
        <div begin="40s" dur="3s">
          <p>Something tells me</p>
        </div>
        <div begin="58s" dur="61s">
          <p>Look, Ignatz, a sleeping bee</p>
        </div>
      </body>
    </tt>
    
  • Can these files be opened in the browser? It is possible to add CSS and JS to these files?

  • https://msdn.microsoft.com/pt-br/library/jj152136(v=vs.85). aspx

1 answer

2


It is a markup format for texts that need information of the time they should be used. Do you know the subtitles that people take to watch their favorite series as soon as they launch in the countries of origin or watch their pirate movies? Usually they use the format srt, then has the time that should be shown the text then. TTML is slightly different but serves the same purpose and is standardized by W3C.

HTML is a language for assembling web pages, TTML is for various subtitles, in general in audiovisual products. Gradually the software will support it, you can make a software with support to this format, either to generate it or to interpret it.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.