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

Wrong unit in fontsize throws an exception #168

Closed
cconcolato opened this issue Oct 1, 2019 · 2 comments · Fixed by #170 or #176
Closed

Wrong unit in fontsize throws an exception #168

cconcolato opened this issue Oct 1, 2019 · 2 comments · Fixed by #170 or #176
Assignees
Labels
Milestone

Comments

@cconcolato
Copy link

instead of showing an error message. An example is using tts:fontSize="5vh" instead of 5rh.

@palemieux palemieux changed the title wrong unit in fontsize throws an exception Wrong unit in fontsize throws an exception Oct 3, 2019
@palemieux palemieux self-assigned this Oct 3, 2019
@palemieux palemieux added this to the 1.1.1 Release milestone Oct 3, 2019
@cconcolato
Copy link
Author

Seems the error is still there:

<?xml version="1.0" encoding="utf-8"?>
<tt xml:lang="ja" xmlns="http://www.w3.org/ns/ttml" ttp:contentProfiles="http://www.w3.org/ns/ttml/profile/imsc1.1/text" xmlns:tts="http://www.w3.org/ns/ttml#styling" xmlns:ttm="http://www.w3.org/ns/ttml#metadata" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:ittp="http://www.w3.org/ns/ttml/profile/imsc1#parameter" xmlns:ebutts="urn:ebu:tt:style" ttp:timeBase="media" ttp:frameRate="24" ttp:frameRateMultiplier="1000 1001" ttp:tickRate="10000000" >
<head>
<styling>
<initial tts:backgroundColor="transparent" tts:color="white" tts:extent="80.000% 80.000%" tts:fontFamily="Japanese" tts:fontSize="6.000vh" tts:opacity="1.000" tts:origin="10.000% 10.000%" tts:textOutline="black 0.050em" tts:writingMode="lrtb"/>
<style xml:id="style0" tts:textAlign="center"/>
<style xml:id="style2" tts:fontSize="1.500em"/>
</styling>
<layout>
<region xml:id="region0" tts:displayAlign="after" tts:extent="80.000% 80.000%" tts:origin="10.000% 10.000%"/>
</layout>
</head>
<body>
<div>
<p xml:id="subtitle42" begin="822400000t" end="831200000t" region="region0" style="style0"><span style="style2">―</span></p>
</div>
</body>
</tt>

@palemieux
Copy link
Contributor

@cconcolato See #176 , also deployed at http://sandflow.com/imsc1_1/index.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants