View Bug Details

IDProjectCategoryView StatusLast Update
0002341DCP-o-maticFeaturespublic2023-10-05 21:38
Reportertomashnyk@gmail.com Assigned Tocarl  
PriorityhighSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platform64-bitOSLinuxOS VersionUbuntu
Product Version2.16.26 
Target Version2.16.64 
Summary0002341: DOM misinterprets newlines in subtitle elements.
Description

This subtitled is displayed as three lines.
<Subtitle SpotNumber="19" FadeUpTime="0" FadeDownTime="0" TimeIn="00:04:13:141" TimeOut="00:04:16:065">
<Text VPosition="14" VAlign="bottom" HAlign="center" Direction="horizontal">–These are two lines. </Text>
<Text VPosition="8" VAlign="bottom" HAlign="center" Direction="horizontal">

<Font Weight="bold"> But DOM sees and displayes it as three.</Font>
</Text>
</Subtitle>

When changed to this:

<Subtitle SpotNumber="19" FadeUpTime="0" FadeDownTime="0" TimeIn="00:04:13:141" TimeOut="00:04:16:065">
<Text VPosition="14" VAlign="bottom" HAlign="center" Direction="horizontal">–These are two lines. </Text>
<Text VPosition="8" VAlign="bottom" HAlign="center" Direction="horizontal">
–<Font Weight="bold"> But DOM sees and displayes it as three.</Font>
</Text>
</Subtitle>
it is displayed as two lines. I think this is incorrect, as per specification:

"Multiple lines of text should be handled by multiple Text elements." (section 2.10 here: http://www.deluxecdn.com/dcinema/reference/ti_subtitling_spec_v1_1.pdf )

There are two possible solutions:
a) Throw an error "newline in Text element deceted" or something like that.
b) Swalow newlines when consuming text elements.

I am not sure this is precisely what happens. When playing around with the XML, inserting newlines here and there, IC ould not for example produce a 4line subtitle. Also, the text "At least one of your subtitles has more than 3 lines. It is advisable to use no more than 3 lines." when running checke before DCP creation got displayed only sometimes.

TagsNo tags attached.
Branch2341-subtitle-newlines
Estimated weeks required
Estimated work requiredUndecided

Relationships

related to 0002556 confirmedcarl Subtitles rendering off-centre horizontally from XML source 

Activities

carl

2023-09-01 21:07

administrator   ~0005917

@carl tests queued

carl

2023-09-03 19:44

administrator   ~0005919

11a47a4544f77a47b508e4cf1983aca7d5b6cd2a

Bug History

Date Modified Username Field Change
2022-09-25 13:24 tomashnyk@gmail.com New Bug
2022-09-25 20:13 carl Status new => acknowledged
2022-09-25 20:13 carl Target Version => 2.16.28
2022-09-25 20:13 carl Estimated work required => Undecided
2022-09-25 20:15 carl Target Version 2.16.28 => 2.16.x
2022-09-28 23:55 carl Priority normal => high
2023-09-01 19:48 carl Relationship added related to 0002556
2023-09-01 20:17 carl Target Version 2.16.x => 2.16.64
2023-09-01 21:06 carl Branch => 2341-subtitle-newlines
2023-09-01 21:06 carl Assigned To => carl
2023-09-01 21:06 carl Status acknowledged => confirmed
2023-09-01 21:07 carl Note Added: 0005917
2023-09-03 19:44 carl Status confirmed => resolved
2023-09-03 19:44 carl Resolution open => fixed
2023-09-03 19:44 carl Note Added: 0005919