Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-110487

Unicode BIDI text (Hebrew + Phone Number) seems wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15.2, 6.5.3, 6.8.0, 6.9.0 RC
    • GUI: Text handling
    • None
    • macOS, Windows

      Unicode BIDI text (Hebrew + Phone Number) is rendered wrong in Qt TextEdit. Reproduced
      both with QtWidgets and QtQuick, with the current dev as well.

      Quick sample:

      import QtQuick
      
      Window {
          width: 200
          height: 100
          visible: true
          title: "BiDi issue"
      
          Text {
              anchors.centerIn: parent
              text: "שִׂיחָה
      +9751111111"
          }
      }
      

      Actual result - wrong:

      Pay attention that Phone Number is on separate text line

      שִׂיחָה
      +9751111111
      

      You can use e.g. https://util.unicode.org/UnicodeJsps/bidi.jsp to see how it should be rendered:

        1. image-2023-01-23-15-38-44-283.png
          3 kB
          Vladimir Belyavsky
        2. image-2023-01-23-15-40-45-635.png
          94 kB
          Vladimir Belyavsky
        3. WidgetsTextEdit.zip
          3 kB
          Vladimir Belyavsky
        4. image-2023-02-23-16-21-07-595.png
          8 kB
          rumgot
        5. image-2023-02-23-16-21-46-087.png
          5 kB
          rumgot
        6. image-2023-02-23-16-30-54-314.png
          6 kB
          rumgot
        7. image-2023-02-23-16-32-14-989.png
          8 kB
          rumgot
        8. image-2023-02-23-16-32-56-588.png
          8 kB
          rumgot
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            studiosus Vladimir Belyavsky
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes