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

Automatic substituations of tags for repetitions

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      Currently translate5s repetition auto-adjustment builds on a pure string-comparison of the repeated segments.

      If there are tags inside of the segment, this does not lead to repetitions, even if the tags stand for the same characters in the original document due to the need for ids.

      This issue will enable translate5 to find every segment as repetition, that has tags in the same places as the current segment - even if the tags represent completely different tags (and even, if in the current segment the tag is an opening tag and in the repetition in the same position you find a closing tag or a placeholder-tag).

      The following table shows such a case, where the text in the source is identical, tags are in the same positions, but the type of the tags is different:

      type segment
      source This <tag><placeholder/>is a</tag> red house.
      target as changed by user in translate5 Dies <tag>ist<placeholder/> ein</tag> rotes Haus.
      source of repetition This <placeholder/><tag>is a</tag> red house.
      target of repetition before autoadjustment Dies <placeholder/><tag>war ein</tag> grünes Haus.
      adjusted target of repetition Dies <placeholder/>ist<tag> ein</tag> rotes Haus.

      translate5 will always ensure, that

      • the order of the tags in the adjusted target of the repetition are the same as in the target of repetition before autoadjustment
      • that the tags in the "adjusted target of the repetition" are copied from the "target of repetition before autoadjustment" (and not from the source or from the "target as changed by user in translate5")

      To ensure, that nothing goes wrong, in one slightly changed case the previous example will not be treated as an example:

      type segment
      source This <tag><placeholder/>is a</tag> red house.
      target as changed by user in translate5 Dies <tag>ist<placeholder/> ein</tag> rotes Haus.
      source of repetition This <placeholder/><tag>is a</tag> red house.
      target of repetition Dies <placeholder/><tag>war ein grünes Haus.

      In this example one tag in the "target of the repetition is missing. Since translate5 can not know, which tag is missing (at least not without taking the tags from the source instead of the target) in this case no autoadjustment is done.

      Attachments

        Issue Links

          Activity

            People

              tlauria Thomas Lauria
              marcmittag Marc Mittag [Administrator]
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: