-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Preserve br tag in ttml * [ttml] Change to more appropriate name and optimize ttml xml decoder
- Loading branch information
1 parent
2f42372
commit 35e8bad
Showing
4 changed files
with
108 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<tt> | ||
<head> | ||
</head> | ||
<body> | ||
<div> | ||
<p xml:id="1" begin="00:00:00.000" end="00:00:01.000"> | ||
<span>First line<br/> | ||
Second line</span> | ||
</p> | ||
<p xml:id="2" begin="00:00:01.000" end="00:00:02.000"> | ||
<span>Third line<br></br>Fourth line</span> | ||
</p> | ||
<p xml:id="3" begin="00:00:02.000" end="00:00:03.000"> | ||
Fifth line | ||
<br/> | ||
Sixth <span>middle</span> line | ||
</p> | ||
<p xml:id="4" begin="00:00:03.000" end="00:00:04.000"> | ||
Seventh line | ||
<br></br>Eighth <span>middle</span> 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,32 @@ | ||
<tt xmlns="http://www.w3.org/ns/ttml" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xmlns:tts="http://www.w3.org/ns/ttml#styling"> | ||
<head> | ||
<styling></styling> | ||
<layout></layout> | ||
</head> | ||
<body> | ||
<div> | ||
<p begin="00:00:00.000" end="00:00:01.000"> | ||
<span>First line</span> | ||
<br></br> | ||
<span>Second line</span> | ||
</p> | ||
<p begin="00:00:01.000" end="00:00:02.000"> | ||
<span>Third lineFourth line</span> | ||
</p> | ||
<p begin="00:00:02.000" end="00:00:03.000"> | ||
<span>Fifth line</span> | ||
<br></br> | ||
<span>Sixth </span> | ||
<span>middle </span> | ||
<span>line</span> | ||
</p> | ||
<p begin="00:00:03.000" end="00:00:04.000"> | ||
<span>Seventh line</span> | ||
<br></br> | ||
<span>Eighth </span> | ||
<span>middle </span> | ||
<span>line</span> | ||
</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
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