Skip to content

Commit

Permalink
Fix itts:fillLineGap syntax restriction
Browse files Browse the repository at this point in the history
As per ebu/ebu-tt-d-xsd#16 (comment) change the XSD type restriction of `itts:fillLineGap` from `xs:boolean` to `xs:token` and enumerate the permitted values as `true` and `false` only.
  • Loading branch information
nigelmegitt committed Jul 26, 2018
1 parent a768514 commit 742ab6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ebu_tt_live/node/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def process_document(self, document, **kwargs):
)

body_style = d_style_type(id='bodyStyle',
fillLineGap=True,
fillLineGap='true',
fontFamily='reith Sans,proportionalSansSerif',
fontSize = '160%',
linePadding = '0.5c')
Expand Down
8 changes: 5 additions & 3 deletions ebu_tt_live/xsd/imsc_styling.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ Please note that the EBU-TT XML Schema is a helping document and NOT normative b
elementFormDefault="qualified" attributeFormDefault="qualified">
<xs:attribute name="fillLineGap">
<xs:annotation>
<xs:documentation>Alignment of multiple ‘rows’ of inline areas within a containing block
area.</xs:documentation>
<xs:documentation>Controls the application of background between successive line areas.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:boolean"/>
<xs:restriction base="xs:token">
<xs:enumeration value="true"/>
<xs:enumeration value="false"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:schema>

0 comments on commit 742ab6d

Please sign in to comment.