-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from Andrius521/master
Improve *.ttml file format parsing
- Loading branch information
Showing
4 changed files
with
76 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<tt xml:lang="en" | ||
xmlns="http://www.w3.org/ns/ttml" | ||
xmlns:tts="http://www.w3.org/ns/ttml#styling"> | ||
<head> | ||
<metadata xmlns:ttm="http://www.w3.org/ns/ttml#metadata"> | ||
<ttm:title>TTML Example With Duplicated Element Ids</ttm:title> | ||
<ttm:copyright>Thierry Michel 2015</ttm:copyright> | ||
</metadata> | ||
|
||
<styling xmlns:tts="http://www.w3.org/ns/ttml#styling"> | ||
<style xml:id="s1" tts:color="red" tts:textAlign="center" /> | ||
</styling> | ||
</head> | ||
<body> | ||
<div> | ||
<p xml:id="c1" begin="00:00:00" end="00:00:01">First line.</p> | ||
<p xml:id="c1" begin="00:00:01" end="00:00:02">Second line.</p> | ||
<p xml:id="c3" begin="00:00:02" end="00:00:03">Third line.</p> | ||
</div> | ||
</body> | ||
</tt> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<tt xml:lang="en" | ||
xmlns="http://www.w3.org/ns/ttml" | ||
xmlns:tts="http://www.w3.org/ns/ttml#styling"> | ||
<head> | ||
<metadata xmlns:ttm="http://www.w3.org/ns/ttml#metadata"> | ||
<ttm:title>TTML Example Mixed Timestamp formats</ttm:title> | ||
<ttm:copyright>Thierry Michel 2015</ttm:copyright> | ||
</metadata> | ||
|
||
<styling xmlns:tts="http://www.w3.org/ns/ttml#styling"> | ||
<style xml:id="s1" tts:color="red" tts:textAlign="center" /> | ||
</styling> | ||
</head> | ||
|
||
<body> | ||
<div> | ||
<p xml:id="c1" begin="00:00:00" end="00:00:10">First line.</p> | ||
<p xml:id="c2" begin="00:00:11.200" end="00:00:13.300">Second line.</p> | ||
<p xml:id="c3" begin="15s" end="18s">Third line.</p> | ||
</div> | ||
</body> | ||
</tt> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters