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

Support keyboard-locale-aware input in QTextDocument-based editors

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P2: Important
    • None
    • 4.7.0
    • GUI: Text handling

    Description

      Qt currently lays out text based on the unicode bidirectional algorithm. This can cause unintuitive behavior in some cases, such as when you embed the Spanish text ¿QUE? inside a RTL paragraph. The first character of the Spanish text is a neutral character in unicode terms, which will get its directionality from the paragraph instead, giving the two question marks the opposite of their intended order.

      A solution to this is to implement the editor so that the keyboard input language has an effect on the directionality of neutral characters. Qt should support this solution under the hood, by allowing more control over the bidi algorithm for the editor.

      The solution should also maintain this across export/imports, to ensure that the layout of the document can be properly saved. This can be done with unicode directionality marks when exporting to plain text, or directional attributes when exporting to HTML or other rich text formats.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Time Spent - 2 weeks Remaining Estimate - 7 weeks
                  7w
                  Logged:
                  Time Spent - 2 weeks Remaining Estimate - 7 weeks
                  2w

                  Gerrit Reviews

                    There are no open Gerrit changes