What are TTML files?

3

I saw that there is a file type with an extension similar to HTML, TTML, but I still do not understand them.

  • What are TTML files, and where do I use them?
  • What are the main differences between HTML and TTML? I saw a short excerpt from Wikipedia for his 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? Is it possible to add CSS and JS to these files?

asked by anonymous 17.07.2017 / 17:39

1 answer

2

It is a markup format for texts that need time information that they should be used. Do you know the legends what people get to watch their favorite series as they launch in the countries of origin or watch their pirate movies? Usually they use the format srt , so have the time that the text should be shown next. The TTML is slightly different but serves the same purpose and is standardized by the W3C . / p>

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

    
17.07.2017 / 17:48