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

RTL languages may lead to wrong tag order

    XMLWordPrintable

Details

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

    Description

      problem

      The browsers bidi algorithm to show a mixture of LTR and RTL languages may lead to a wrong visualization of tags (wrong order) - although the tag order is correct.

      See screenshot.

      In the concrete case the reviewer tried to fix the tag order, but instead the tag order was wrong after that.

      possible solution - probably not working

      The bidi alorithm could be disabled with the bdo tag or via CSS on the whole segment, which would fix the tag ordering, but then the number is displayed wrongly. In XLF there was 50, which is in arabic 50 too (https://www.quora.com/Why-are-numerals-written-left-to-right-in-Arabic) but with bidi disabled it is shown as 05 then.

      In Addition RLM and LRM markers could be used:
      https://stackoverflow.com/questions/48487642/are-there-right-to-left-versions-of-unicode-characters-for-period-exclamation-m
      Not tested so far!

       

       

      References:

      https://www.w3.org/International/articles/inline-bidi-markup/

      https://www.w3.org/International/questions/qa-html-dir

      https://openui5.hana.ondemand.com/1.28.0/docs/guide/91f2c24b6f4d1014b6dd926db0e91070.html

       

       

      Attachments

        Issue Links

          Activity

            People

              tlauria Thomas Lauria
              tlauria Thomas Lauria
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: