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

Internal tags indices problem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • None
    • Editor general

      Problem

      When working with segments having internal tags, it may happen that some of those tags will get duplicated indices.

      For example, if segment source has

      word1<1/>word2⎵word3<2/>word4

      assuming <1/> and <2/> are internal tags, and ⎵ - is a whitespace NBSP tag,

      but you replicate that into segment target as:

      1. type "word1"
      2. press Ctrl + comma, release 1 - to copy <1/> from source
      3. type "word2"
      4. insert "⎵" i.e. nbsp via specialchars menu, and internally it is inserted as <2/>
      5. type "word3"
      6. i press Ctrl + comma, release 2 - to copy <2/> from source
      7. type "word4"

      and the you hover mouse on ⎵ - you'll see "<2/>..." in the tooltip.

      So this means we have two "<2/>" tags in target, the first one is a result of a specialchar NBSP insertion, and a second one is a result of a tag copy from source{}

      Solution

      The logic should be changes to make indices unique within segment target, and it should be discussed and decided whether is should be done on browser-side, or on server-side when segment is saved

            leonkiz Leon Kiz
            pavelperminov Pavel Perminov
            Axel Becher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: