Skip to content
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

Annotation dose not support properly RTL text #57123

Open
2 tasks
nabazgharib opened this issue Apr 11, 2024 · 9 comments
Open
2 tasks

Annotation dose not support properly RTL text #57123

nabazgharib opened this issue Apr 11, 2024 · 9 comments
Labels
Annotations Bug Either a bug report, or a bug fix. Let's hope for the latter! Languages support

Comments

@nabazgharib
Copy link

What is the bug or the crash?

When adding a popup, HTML or Text Annotation, then adding RTL Text like (Arabic or Kurdish), the text is trimmed inside the HTML and always LTR when using Text Annotation.
when sing HTML, the right part of the text is trimmed. and when using Text Annotation, I cannot align the text to Right
image

Steps to reproduce the issue

  1. Enabe Advcaned annotation toolbar.
  2. Add either HTMl or Text anntioation.
  3. Add this text:
  4. تیمی ڕۆژ هەڵات
    چاککردنی عەموود.
    بەهۆی پێکدادان سەیارە لە گەڵ عەمودەکەدا، کێبڵەکان کەوتونەتە سەر یەک.
    کاتی دەست پێککردن:

The text inside the popup should be RTL and appears like below:
image

Versions

QGIS version 3.36.1-Maidenhead
QGIS code revision 3e58945
OS version Windows 10 Version 2009

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@nabazgharib nabazgharib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Apr 11, 2024
@agiudiceandrea
Copy link
Contributor

@nabazgharib, thanks for reporting. Please provide a sample layer and project with which the issue occurs.
May you try if the issue does occur also using QGIS 3.28 on your system?
See also: #54098.

@nabazgharib
Copy link
Author

@nabazgharib, thanks for reporting. Please provide a sample layer and project with which the issue occurs. May you try if the issue does occur also using QGIS 3.28 on your system? See also: #54098.

I did not try it with QGIS 3.28, I just tried on 3.3x.
I provided a sample text on the post:
تیمی ڕۆژ هەڵات
چاککردنی عەموود.
بەهۆی پێکدادان سەیارە لە گەڵ عەمودەکەدا، کێبڵەکان کەوتونەتە سەر یەک.
کاتی دەست پێککردن:
if you just add an HTML annotation with dir:rtl it should appear as in the screenshot in the top post.

@agiudiceandrea
Copy link
Contributor

@nabazgharib, please try using the latest available QGIS versions 3.36.3 or 3.34.7 and check if the issue still occurs.

@agiudiceandrea agiudiceandrea added the Feedback Waiting on the submitter for answers label Jun 3, 2024
@nabazgharib
Copy link
Author

@agiudiceandrea ,
thanks for your follow up.
still getting same issue.

image

I attached the HTML code, so you can test it. if you look at the beginning of the text, on both screenshot and the html source, you can notice the beginning of the second and third line is cut.

`

تیمی ڕۆژ هەڵات

چاککردنی عەموود.

ڤبەهۆی پێکدادان سەیارە لە گەڵ عەمودەکەدا، کێبڵەکان کەوتونەتە سەر یەک. کاتی دەست پێککردن:

`

@agiudiceandrea
Copy link
Contributor

@nabazgharib, please provide a simple project (and layer if needed) with which the issue occurs.

@nabazgharib
Copy link
Author

Yes, here it is.
unicode_html_annotation_github.zip

Copy link

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".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Jun 19, 2024
@agiudiceandrea agiudiceandrea removed Feedback Waiting on the submitter for answers stale Uh oh! Seems this work is abandoned, and the PR is about to close. labels Jun 19, 2024
@nabazgharib
Copy link
Author

@agiudiceandrea just wondering if this issue is fixed? or it will be fixed in the coming versions?

@agiudiceandrea
Copy link
Contributor

just wondering if this issue is fixed? or it will be fixed in the coming versions?

Unfortunately it looks like the issue is not yet fixed.

Please read https://nyalldawson.net/2016/08/how-to-effectively-get-things-changed-in-qgis/ and http://nyalldawson.net/2016/08/how-to-effectively-get-things-changed-in-qgis-a-follow-up/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Annotations Bug Either a bug report, or a bug fix. Let's hope for the latter! Languages support
Projects
None yet
Development

No branches or pull requests

2 participants