Fixes #1340 - make TTMLParser more permissive of non-EBU-TT-D
Created by: davemevans
Two problems were found in #1340 (closed):
- if no
tts:origin
was set, the default values fortop
andleft
would attempt to place the text near the bottom. Set them toauto
as specified in TTML1. @TobbeEdgeware, @nigelmegitt - do you agree this is sensible (esp. given that all compliant EBU-TT-D will have origin set)? - even if
tts:origin
(or any other region-specific styling) was specified, this was only honoured if found as an inline attribute of region, as required by EBU-TT-D. This constraint is not applicable for TTML, so made parsing of referenced styles on regions more lenient (ie allowed region-specific styling non-inline).