Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4866

Repeated 100%-Matches should be pre-translated and potentially locked

XMLWordPrintable

    • High
    • Fix tag handling in repetition processing

      Problem

      Repetitions that are actually repetitions of a segment, that has a 100% (or higher) match, currently are not pre-translated. Since repetitions are by definition 100%-internal fuzzy matches and those have to stay empty in pre-translation, this is so far also the case for 100%-repetitions.

      This leads to strange situations, where in the extreme you have an analyis, that consists only of repetions - and the user can not edit any segments, that are actually repeated (in case 100%-matches are locked and therefore not listed in analysis).

      Please pre-translate test - de _ en - ImportArchive.zipagainst de-en (2).tmxwith 100%-Matches not editable setting to see this.

      See also dev comment

       

      Additional problem found:
      We don't consider that order of tags in repetition may differ from master.
      In solution section will be an structural example of how tags should be handled.

      Solution

      Segments, that are actually repetitions of segments, that have 100%-Matches (or higher) should also be pre-translated with those matches. This should lead automatically to them being locked in case 100%-Matches are locked for editing.

      Implementation hint: In case a segment in the analysis is categorized as a repetition, for pre-translation look up, if there is a 100%-Match and if yes use it for pre-translation.

       

      Example of tag order handling:

      Case 1
      master source
      <bpt id=1>text<ept id=1> some text <bpt id=2>text<ept id=2>
      
      master target
      <bpt id=2>text<ept id=2> some text <bpt id=1>text<ept id=1>
      
      repetition source
      <bpt id=1>text<ept id=1> some text <bpt id=2>text<ept id=2>
      
      repetition target
      <bpt id=2>text<ept id=2> some text <bpt id=1>text<ept id=1>
      
      Case 2
      master source
      <bpt id=1>text<ph id=2/><ept id=1> some text <bpt id=3><ph id=4/>text<ept id=3>
      
      master target
      <bpt id=3>text<ept id=3> some<ph id=4/> text <bpt id=1>text<ph id=2/><ept id=1>
      
      repetition source
      <bpt id=1>text<ph id=2/><ept id=1> some text <bpt id=3><ph id=4/>text<ept id=3>
      
      repetition target
      <bpt id=3>text<ept id=3> some<ph id=4/> text <bpt id=1>text<ph id=2/><ept id=1> 

            sanya@mittagqi.com Sanya Mikhliaiev
            marcmittag Marc Mittag [Administrator]
            Aleksandar Mitrev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: