-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Right-to-Left languages characters in each label words are reversed #54098
Comments
Hi @hareldunn, thanks for reporting. Could you please specify the difference between the issue you reported and the one reported at #21940? In the #21940 issue report, users claim that the issue occurs also in QGIS 3.28 and QGIS 3.30 and previous version. |
Hi @agiudiceandrea, you are correct, I somehow managed to confuse myself. As for recent QGIS version, I didn't have that issue, nor did my colleague, only in 3.32. I also found another mention of this on GIS.SE, seems to be the same issue |
Hi @hareldunn, thanks for checking. I cannot replicate the issue neither using QGIS 3.28, QGIS 3.30 nor QGIS 3.33-master: it seems to me the labels are correctly displayed. See the exported images of point from "amenity Hebrew" layer with "full_id" field value of n2954804553: Maybe the issue has been already fixed in development branch: you can install a development version using a standalone installer available at https://download.osgeo.org/qgis/windows/weekly/?C=M&O=D. |
I can confirm this issue on Windows, QGIS 3.32.3. |
@micha-silver , thanks for reporting. Could you please provide a simple project and a simple layer with only one feature in order to replicate the issue? |
@drarbib, thanks for reporting. Could you please provide a simple project and a simple layer with only one or few features in order to replicate the issue? Could you please specify the OS locale / language and the locale / language set in QGIS? |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
@drarbib, have you tried if the issue occurs also using a new QGIS user profile? |
I did just now on 3.34.0, problem persists + I know of another user on another computer who has this problem |
Hi @agiudiceandrea |
@micha-silver , from the previous comments and from https://gis.stackexchange.com/questions/465205/left-to-right-flipped-names-in-arabic, it looks like the issue occurs on some systems both when using Windows 10 and Windows 11 with QGIS >= 3.32, and it didn't occur with QGIS 3.30.0 and previous versions. |
Is anyone able to supply a super simple, easy to understand demo project and data showing this issue? Simple enough so that the issue is clearly evident for someone with absolutely zero experience in right to left languages. Ideally with a mock-up of what the label should look like too. I've tried to investigate this, but just lack understanding of exactly what's required here. |
@nyalldawson I don't know how QGIS handles RTL text internally, but as a user, Unicode RTL text (used to) appear RTL. You just align it to the right in the horizontal alignment (left/centre/right/justify) settings. As far as I know, it is not dependent on system locale, and language settings. I did try adding the Dari (Persian) language and localisations on windows but did not fix the issue. |
|
@ilyessmap, thanks for sharing a workaround. It will likely also help to fix the issue. |
@agiudiceandrea, working for me in the main map window. In print layouts, the text is still mirrored on screen, but when I export as PDF everything looks fine. |
First off thank you @ilyessmap and thank you @agiudiceandrea, like @ShieldsUpRedAlert the workaround works for me in the main window but not in the layouts |
@nyalldawson, here #56645 another issue report with a sample layer attached.
|
@agiudiceandrea I still can't do anything with these reports yet, they all assume too much existing knowledge of how RTL languages work |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
This workaround works fine for the text, but text buffers are still displayed incorrectly. See: |
See also: #57123. |
@agiudiceandrea can we readd the feedback label here? I still can't do anything with the information present in this report. |
Has been handled in any way? Adding my system info for comparison:
|
@bogindm thanks for reporting. Have you experienced the issue with previous QGIS versions on Windows? If yes, which one exactly and on which Windows version exactly? |
i second @bogind findings, i just downloaded and used 3.36.3 Maidenhead and the problem is magically resolved even if I render the labels as paths |
Hi @hareldunn @ryangentry @ilyessmap @ShieldsUpRedAlert @micha-silver, please check if the issue no longer occurs on your Windows systems using QGIS 3.36.3 or QGIS 3.34.7. |
It's an issue with curved labels only |
I just checked and confirm that the issue is no longer present for me on V3.36.3. |
Sorry, but I see that the bug persists in 3.36.3. It only occurs, as @nyalldawson pointed out, when applying curved labels. |
I had the same issue, as @micha-silver mentioned, earlier this week on a different machine with a fresh 3.36.3. Regular labels worked, curved didn't. Don't have a screenshot |
The RTL issue in curved labels is a longstanding issue already reported about 10 years ago #21940 and not yet resolved, probably having a different root cause. |
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue. |
What is the bug or the crash?
This is a recurrence of a bug similar fixed long ago for all rtl languages like Hebrew, Persian and Arabic. It was solved, at times, with using the curved label option, but not any more.
Each word, although in correct word order, has it's letters reversed, akin to:
Hello World -> olleH dlroW
Here's the bad labelling in 3.32, note for example the word for chapel קפלה is displayed in reverse הלפק
Here's the correct text handling in 3.28.9 LTR
Steps to reproduce the issue
Add any layer with RTL language in attribute table
Display label based on field
Or open QGZ from GPGK here
qgisbug.zip
I've added English, Arabic and Hebrew labels from the OSM amenity data
Versions
3.32.1
Supported QGIS version
New profile
Additional context
It appears the change happened between 3.30 and 3.32, a colleague had his computer replaced and installed a new QGIS version 3.32 standalone that showed this issue. I guided him with installing the network installer for 3.32 and had the same issue. I tested his project and layers on my computer, and it too showed the bug in 3.32, but not in 3.28 LTR. He claims his project worked fine in his old computer running 3.30, so this pinpoints the bug to 3.30 -> 3.32
The text was updated successfully, but these errors were encountered: