IRT-Open-Source / scf

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

STL2STLXML: Alternative option for handling TTI Blocks #31

Closed pthopesch closed 7 years ago

pthopesch commented 7 years ago

The STLXML format may be used in different scenarios: a) as an intermediate format when converting from STL to EBU-TT b) as a human readable version of the STL file (e.g. for error checking)

According to EBU-TT Part 2, subtitles that span over several TTI blocks are merged into one p-element when an STL file is converted to EBU-TT. In scf, the merging process is done in the STL2STLXML module. That is fine for use case a), but the resulting STLXML file is not an exact XML-representation of the source STL file. This may be a problem, e.g. when comparing the metadata "Total Number of Subtitles" with the number of TTI blocks in the STLXML file.

To support various use cases it may be good to implement an option that allows for an exact 1:1 translation of the TTI blocks.