IRT-Open-Source / scf

Subtitling Conversion Framework
Apache License 2.0
52 stars 18 forks source link

STLXML2EBU-TT: Bug in calculating teletext rows #84

Open andreastai opened 1 year ago

andreastai commented 1 year ago

https://github.com/IRT-Open-Source/scf/blob/dc839a1d9178986a313f687eb8742bae53b41535/modules/STLXML2EBU-TT/STLXML2EBU-TT.xslt#L1043-L1048

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 commented 1 year ago

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