pbs/pycaption

Legacy- and SinglePositioningDFXPWriter lose the style in the input

Closed this issue · 0 comments

This sample (notice the BOBY style, and reference to it), when converted to dfxp with the writers in the extras module, will lose the styling information

<tt xml:lang="en-us"
    xmlns="http://www.w3.org/ns/ttml"
    xmlns:tts='http://www.w3.org/ns/ttml#styling'
    >
<head>
    <layout>
        <region xml:id="r0" tts:textAlign="center" tts:displayAlign="after" tts:origin="5% 5%" tts:extent="90% 90%"/>
    </layout>
    <styling>
        <style tts:color="#ffeedd" tts:fontFamily="Arial" tts:fontSize="10pt" tts:textAlign="center" xml:id="BOBY"/>
    </styling>
</head>
<body>
    <div>
        <p region="r0" begin="00:00:01.000" end="00:00:03.000" style="BOBY">
        When we think
        </p>
    </div>
</body>
</tt>```