Reimport of Translator Package leads to invalid Markup

XMLWordPrintable

    • High
    • FIX: translator package reimport may lead to exceptions due to tag-errors in diffing to evaluate track-changes

      PROBLEM

      Reimporting a translator-package lead to invalid Markup causing the TagSequence to fail on parsing it for AutoQA. The invalid markup consisted of overlapping TrackChanges and Terminology tags. The Problem seems to be, that the diffing-algorithm - which is regex-based - cannot care about overlapping tags

      SOLUTION
      Since the problem happened only with overlapping Trackchanges & Terminology the problem boils down to, that at the time of diffing no terminology-tags are needed to be present anyway (the terminology is renewed in a following Auto-QA step anyway). So a solution could be, to strip terminology from the provided targets in MittagQI\Translate5\Task\Reimport\SegmentProcessor\SegmentContent\ContentDefault::updateTarget.

      • it must be ensured, this fixes the problem
      • it must be ensured, Terminology is reapplied in later steps

      A Unit-Test shall be written to test the SegmentUpdate / DiffTagger for various scenarios

            Assignee:
            Axel Becher
            Reporter:
            Axel Becher
            Aleksandar Mitrev
            Stephan Bergmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: