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

STLXML2EBU-TT: Bug in calculating teletext rows #84

Open
andreastai opened this issue Jan 25, 2023 · 1 comment
Open

STLXML2EBU-TT: Bug in calculating teletext rows #84

andreastai opened this issue Jan 25, 2023 · 1 comment
Labels

Comments

@andreastai
Copy link

<!-- It is assumed here that
1. all subtitle lines in a TextField are of the same height, either DoubleHeight or SingleHeight
2. every newline-Element adds a new subtitle row -->
<xsl:when test="count(child::*[name(.) = 'DoubleHeight']) &gt; 0">
<xsl:value-of select="2 * (1 + count(child::*[name(.) = 'newline']))"/>
</xsl:when>

The calculation of how many lines a subtitle covers does not consider that in some subtitle software, two consecutive DoubleHeight text lines in STL are separated by two newline control codes instead of one. Therefore a multi-line subtitle is pushed by too few calculated br elements to an incorrect Teletext line position

@andreastai andreastai added the bug label Jan 25, 2023
@andreastai
Copy link
Author

See also the first note in EBU Tech 3360 on page 21.

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

No branches or pull requests

1 participant