Support for right-to-left languages

kristof.mulier at telenet.be kristof.mulier at telenet.be
Wed Jun 14 07:27:54 BST 2023


Hi Caleb,
Thank you for your interest in our documentation website on QScintilla.

I forwarded your question to my colleague Matic.

Kind regards,
Kristof Mulier
----- Oorspronkelijk bericht -----
Van: Caleb Rouleau <crouleau at salesforce.com>
Aan: qscintilla at riverbankcomputing.com
Verzonden: Wed, 14 Jun 2023 06:45:38 +0200 (CEST)
Onderwerp: Support for right-to-left languages

Hi,

I really appreciate QScintilla. Thanks for writing it and maintaining it!

I was wondering what the state of support for right-to-left languages like
Arabic and Hebrew should be in QScintilla. (I don't see any mention of
support in the documentation but I may be missing it!) I'm also wondering
whether you plan to work to improve this support in the future. I see on
the Scintilla website (1) that Scintilla has "limited experimental" support
for these languages on Windows. I read this thread on GitHub (2) that shows
that this support might be desirable for other projects than just mine.

Here's an issue that I'm having with right-to-left languages:
1. On a Windows 10 machine, install Hebrew or Arabic language support.
2. Build the example application that comes with QScintilla against Qt 5.15
and QScintilla 2.14.0 and run it.
3. Use Windows UI to switch your keyboard to Hebrew or Arabic.
4. Type "asdf" on your keyboard into the example application. Since your
keyboard is in Arabic or Hebrew mode, this should type "شسيب" or "שדגכ".
However, no text is visible.
5. Switch your keyboard back to English.
6. Type "asdf". Suddenly the Arabic or Hebrew text appears and you should
see something like "שדגכasdf"

Is there something that I can do differently to make the right-to-left text
appear immediately instead of only showing when there is also left-to-right
text in the same box?

It seems likely that this issue happens on other versions of Qt and
versions of Windows as well, but I haven't tested it yet.

Thank you!

Caleb

(1) https://www.scintilla.org/ScintillaDoc.html
(2) https://github.com/mu-editor/mu/issues/752



More information about the QScintilla mailing list