Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for tts:textEmphasis='auto' #91

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added imsc1_1/png/textEmphasis005/0.000000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imsc1_1/png/textEmphasis005/0.040000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added imsc1_1/png/textEmphasis005/0.080000.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions imsc1_1/tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
"path": "textEmphasis/textEmphasis004.ttml"
},
{
"path": "textEmphasis/textEmphasis005.ttml"
},
{
"path": "rubyReserve/rubyReserve001.ttml"
},
{
Expand Down
65 changes: 65 additions & 0 deletions imsc1_1/ttml/textEmphasis/textEmphasis005.ttml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<tt xml:lang="ja"
xmlns="http://www.w3.org/ns/ttml"
xmlns:tts="http://www.w3.org/ns/ttml#styling"
xmlns:ttp="http://www.w3.org/ns/ttml#parameter"
xmlns:ttm="http://www.w3.org/ns/ttml#metadata"
ttp:frameRate="25"
ttp:frameRateMultiplier="1 1"
ttp:contentProfiles="http://www.w3.org/ns/ttml/profile/imsc1.1/text"
ttp:displayAspectRatio="16 9"
ttp:timeBase="media">
<head>
<metadata>
<ttm:desc>Tests tts:textEmphasis="auto" value</ttm:desc>
</metadata>
<styling>
<style xml:id="style.center"
tts:fontFamily="proportionalSansSerif"
tts:fontSize="80%"
tts:fontStyle="normal"
tts:fontWeight="normal"
tts:backgroundColor="transparent"
tts:color="white"
tts:textOutline="black 4%"
tts:textAlign="center"/>
<style xml:id="style.left"
tts:fontFamily="proportionalSansSerif"
tts:fontSize="80%"
tts:fontStyle="normal"
tts:fontWeight="normal"
tts:backgroundColor="transparent"
tts:color="white"
tts:textOutline="black 4%"
tts:textAlign="left"/>
</styling>
<layout>
<region xml:id="region.after"
tts:displayAlign="after"
tts:backgroundColor="transparent"
tts:origin="5% 50%"
tts:extent="90% 45%"/>
<region xml:id="region.vertical.after"
tts:displayAlign="after"
tts:backgroundColor="transparent"
tts:origin="5% 5%"
tts:extent="45% 90%"
tts:writingMode="tbrl"/>
</layout>
</head>
<body>
<div>
<p style="style.center"
region="region.after"
begin="0f"
end="1f">
<span tts:textEmphasis="auto before">ても美</span>
</p>
<p style="style.left"
region="region.vertical.after"
begin="1f"
end="2f">
<span tts:textEmphasis="auto after">ても美</span>
</p>
</div>
</body>
</tt>