ICML filter and XLIFF 2.0: Text added between tags and end of segment is being ignored on backconversion

Issue #770 new
Martn Wunderl created an issue

When a segment is modified in a XLIFF doc generated from ICML and this segments ends in a tag, the text placed between the tag and the end of the target segment is ignored on back-conversion to ICML.

For instance the following "translated" (see MW) XLF:

   <unit id="ucc-2">
     <originalData>
      <data id="d1">&lt;Content></data>
      <data id="d2">&lt;/Content>&lt;Br/>&lt;Br/></data>
      <data id="d3">&lt;/Content>&lt;Br/></data>
     </originalData>
     <segment>
      <source xml:space="preserve"><sc id="3" canOverlap="no" canCopy="no" canDelete="no" dataRef="d1"/>Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do. </source>
      <target xml:space="preserve"><sc id="3" canOverlap="no" canCopy="no" canDelete="no" dataRef="d1"/>Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do. *MW*</target>
     </segment>
     <segment>
      <source xml:space="preserve">Once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, “and what is the use of a book,” thought Alice, “without pictures or conversations?”<ec startRef="3" canOverlap="no" canCopy="no" canDelete="no" dataRef="d2"/></source>
      <target xml:space="preserve">Once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, “and what is the use of a book,” thought Alice, “without pictures or conversations?”<ec startRef="3" canOverlap="no" canCopy="no" canDelete="no" dataRef="d2"/> *MW*</target>
     </segment>

Is back-converted to this ICML:

Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do. MWOnce or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, “and what is the use of a book,” thought Alice, “without pictures or conversations?”

Note the missing MW at the end! This error popped up in the censhare system as the root cause for a different bug and I have been able to reproduce it with the Rainbow stand-alone application in the latest stable build (M36). Attached is the zipped project file.

Comments (2)

  1. Log in to comment