Help
Translate TTML/DFXP .ttml .dfxp files
🔗What are TTML/DFXP files?
TTML (Timed Text Markup Language) and DFXP (Distribution Format Exchange Profile) files are language files used for video subtitles. TTML is a W3C standard that uses XML to represent timed text, commonly used for broadcast and streaming services.
WebTranslateIt is a software localization platform that can help localize TTML and DFXP subtitle files.
🔗TTML file example
A TTML file uses XML structure with styling and layout definitions.
<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/ns/ttml"
xmlns:tts="http://www.w3.org/ns/ttml#styling"
xml:lang="en">
<head>
<styling>
<style xml:id="defaultStyle"
tts:fontFamily="Arial"
tts:fontSize="100%"
tts:textAlign="center"
tts:color="white"/>
</styling>
<layout>
<region xml:id="bottom"
tts:origin="10% 80%"
tts:extent="80% 20%"
tts:displayAlign="after"/>
</layout>
</head>
<body>
<div region="bottom">
<p xml:id="sub1" begin="00:00:01.000" end="00:00:05.000" style="defaultStyle">
Welcome to this video presentation
</p>
<p xml:id="sub2" begin="00:00:05.000" end="00:00:10.000" style="defaultStyle">
Today we'll learn about TTML subtitles
</p>
<p begin="00:00:10.000" dur="5s">
Let's get started!
</p>
</div>
</body>
</tt>
🔗Format Details
- XML structure: Well-formed XML with namespaces
<head>section: Contains styling and layout definitions<styling>: Define reusable text styles<layout>: Define regions for subtitle positioning<body>section: Contains the timed text content- Timing attributes:
begin,end, ordur(duration) for each element
🔗Data Mapping
- region attribute: Stored in context field
- style and xml:id: Stored in special field
- Timing: Supports various formats (clock time, offset time)
🔗DFXP vs TTML
DFXP is actually a profile of TTML 1.0. The formats are essentially the same, with DFXP being the earlier name. Both .ttml and .dfxp file extensions are supported.
🔗How to Translate TTML/DFXP Files?
It is easy to translate TTML and DFXP files with WebTranslateIt. In a project, upload your source .ttml or .dfxp file in the File Manager and translate it on the Translation Interface.
The tools included in WebTranslateIt, such as Batch Operations, the Translation Memory or Machine Translation can help you translate that file automatically, faster and cost effectively.