Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved]Why a dot char changes to a box in a arabic string?
Forum Updated to NodeBB v4.3 + New Features

[Solved]Why a dot char changes to a box in a arabic string?

Scheduled Pinned Locked Moved General and Desktop
arabicdotbox
8 Posts 3 Posters 2.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dhuta
    wrote on last edited by dhuta
    #1

    I find i have the same question as http://www.qtcentre.org/threads/59640-dot-gets-converted-into-square-with-arabic-language-on-Android-5-plateform shows.

    I know that, the arabic font file i used in my program defines the '.notdef' char that represent the so-called 'box' which painted on the screen.

    Can anyone help me figure it out?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      What Qt version are you using? This bug was fixed in Qt 5.2.1. See here: https://bugreports.qt.io/browse/QTBUG-34191

      D 2 Replies Last reply
      0
      • D Offline
        D Offline
        dhuta
        wrote on last edited by
        #3

        It's Qt5.3.1 on linux. I know the box showed is not generated by QFontEngineBox, but a definition in the font file, and under the font path, there are many font files that some one includes the 'dot' char for sure.

        1 Reply Last reply
        0
        • ? A Former User

          What Qt version are you using? This bug was fixed in Qt 5.2.1. See here: https://bugreports.qt.io/browse/QTBUG-34191

          D Offline
          D Offline
          dhuta
          wrote on last edited by
          #4

          @Wieland here is the text:
          "إحداثيات قريبة إلى أصل الصورة الرمزية (0،0)، وذلك باستخدام صعودا اتفاقية ذ. هذه الدالة تأخذ حجة خاصة، ووضع BBOX، للإشارة إلى كيفية التعبير عن الإحداثيات مربع."

          On my pc, it works well. But on my embed device, the 'dot' at the tail changes to square. Is it the problem of my embed device?

          1 Reply Last reply
          0
          • ? A Former User

            What Qt version are you using? This bug was fixed in Qt 5.2.1. See here: https://bugreports.qt.io/browse/QTBUG-34191

            D Offline
            D Offline
            dhuta
            wrote on last edited by dhuta
            #5

            @Wieland I find the official resolution https://codereview.qt-project.org/#/c/92375/ . But it also faild on my embed device :(

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dhuta
              wrote on last edited by
              #6

              In qtbase/src/gui/text/qtextengine.cpp, line 127.
              qt5.4 changes && m_analysis[i].script == m_analysis[start].script to && (m_analysis[i].script == m_analysis[start].script || m_string[i] == QLatin1Char('.')). Rollback can resolve it.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi,

                Do you mean it still broken ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                D 1 Reply Last reply
                0
                • SGaistS SGaist

                  Hi,

                  Do you mean it still broken ?

                  D Offline
                  D Offline
                  dhuta
                  wrote on last edited by
                  #8

                  @SGaist No. it works now. ScriptItem will not split by dot.

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved