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

TrackChanges: SpellCheck-replacement with wrong DEL-Tag

    XMLWordPrintable

Details

    Description

      problem:

      (tested on Ubuntu in Firefox and Chrome: )

      • example: "Apache 2.x auf Unix-Systemen" (eg in simple-en-de.zip)
      • add another "auf": "Apache 2.x auf <INS>auf </INS>Unix-Systemen" -> the SpellChecker marks "auf auf" as error and a right click suggests to use "auf" instead.
      • left-click on the suggested "auf" -> result is:
        "Apache 2.x auf<DEL>auf</DEL> Unix-Systemen"
      • BUT result should be (the second "auf" should be removed!):
        "Apache 2.x auf Unix-Systemen"

      (see also: https://jira.translate5.net/browse/TRANSLATE-1605)

      answer:

      This mechanism is perfectly right according to the Search&Replace-algorithm.

      • First, the existing content is removed (= the first "auf" is marked as deleted, the second "auf" is being removed):
        "auf1 <INS>auf2</INS>" -> "<DEL>auf1</DEL>"
      • Then, the replacement ("auf3") is inserted at the beginning of the range:
        "<DEL>auf1</DEL>" -> "<INS>auf3</INS><DEL>auf1</DEL>"

      The result "only looks wrong" in this case because the content of the replacement is the same.

      Attachments

        Activity

          People

            Ines-Paul Ines-Paul Baumann (Inactive)
            Ines-Paul Ines-Paul Baumann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: