Skip to content

STLXML2EBU-TT: Bug in calculating teletext rows #84

Open

Description

@andreastai

<!-- 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

Activity

  1. andreastai commented on Jan 25, 2023

    @andreastai
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions