CTag opening gets wrong MTag opposite in XLIFF2PackageWriter

Issue #460 resolved
YvesS created an issue

When building a unit segment by segment, markers can be added that take the future ID of CTags in the next segment. When appening the codes of the next segment we get a conflict.

Use case: - create a Unit - append the content (text and codes) of a first segment with paired-codes 1 and 2. - run an MT operation on that segment (a marker gets added in the segment, it get the ID 3) - append the content of the next segment (it has paired-codes 3 and 4) when appending opening of code-id=3 we get the closing of the marker of the first segment (which is id=3) and a casting error. The casting error is not the real issue, but that adding markers while building a unit should not interfere.

2 solutions: - perform tasks using markers after the unit is built. - or separate ID between codes and markers (which may not solve everything)

Comments (2)

  1. Log in to comment