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

Unicode BIDI text (Hebrew + Phone Number) seems wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.2, 6.2.4, 6.3.2, 6.4.2, 6.5.0 Beta1
    • GUI: Text handling
    • None
    • macOS, Windows

    Description

      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:

      Attachments

        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. image-2023-02-23-16-21-07-595.png
          8 kB
          rumgot
        4. image-2023-02-23-16-21-46-087.png
          5 kB
          rumgot
        5. image-2023-02-23-16-30-54-314.png
          6 kB
          rumgot
        6. image-2023-02-23-16-32-14-989.png
          8 kB
          rumgot
        7. image-2023-02-23-16-32-56-588.png
          8 kB
          rumgot
        8. WidgetsTextEdit.zip
          3 kB
          Vladimir Belyavsky

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes