-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
RTL text not working since Eclipse 4.17 (Archi 4.8+) #796
Comments
Samples |
I don't know what the level of support for RTL text is in Eclipse based apps. I Googled the issue and found that one can add the following two lines to the
As this is an open source project please feel free to investigate the issue further (Google search is a good start) |
Thanks for the fast response. The strange thing is that in previous versions, this problem did not exist... |
Is RTL working in, for example, a single line text control like "Name"? Things that changed between Archi 4.8.1 and 4.9.x: Eclipse 4.18 -> Eclipse 4.21 You could try Archi 4.9.2 beta (uses Eclipse 4.22) https://www.archimatetool.com/beta/ |
The problem is happening even in a single line of text - as shown in the example. I'll try the beta |
I'm not asking about the text in a diagram figure. I mean single line text controls as in the Properties tab or the controls in the Preferences dialog. You could also test against Archi 4.8.1 - https://www.archimatetool.com/archive/ Please use the portable zip file versions for testing. |
In any other object (Properties, diagram name etc'.) it's ok. |
So we need to narrow it down to what version of Archi this problem is in, and perhaps whether it's a configuration issue for your setup.
|
Help me to understand this better... As you type in the diagram text box the direction is correct? It's only when you finish editing that the displayed direction is wrong? But please try to narrow it down to when this bug started. |
And does this happen in Note text box? |
When narrowing the box for one word at a line, It is OK. It shows the words as they ere typed. |
What do you mean "narrowing the box"? Do you mean when the edit box is shown? Please try all controls - Notes, Group, Stickies, Canvas blocks, stickies etc. |
"Narrowing the box - i.e. changing the box width |
Now I'm even more confused. Are you saying that the direction of text changes when you resize a diagram box? Is it correct? Not correct? When you edit a box? Or what? Please provide the exact steps to reproduce this. Also, please try Archi 4.8.1. Without knowing when this issue started I'm having a hard time to help. |
And please answer this question:
|
Correct. |
And please can you answer the questions for Archi versions: Archi 4.7.1 - works OK? Not OK? |
If I recall, the last version I had installed was 4.7.1 . |
Please test 4.8.1 and 4.9.2 beta |
I have a theory that it might be related to this change: I removed the If this is the cause then it means that this was working in Archi 4.6 but not 4.7 and later. @Alon-fnx Can you confirm that it is working in Archi 4.6 but not 4.7.1? |
I'd love to, but I'm working in an enterprise that every installation can take days... :( |
In that case I can't provide a fix in a beta version, because you wouldn't be able to test the beta version. |
I've made a test build for Windows on the basis of my theory about a breaking change above:
If it is possible for someone to test this and if it works I can apply the fix. But without user feedback and testing I am not able to fix or diagnose this issue - all I simply need to know is which version of Archi this worked and which version it broke. |
Phillip, Thank you - I really do. |
Perhaps test on a non-work machine? Or someone else could test? |
My other machine is a Linux... |
@Phillipus I'll try |
Hi Phil, The Hebrew is correct. Does it mean it's an Eclipse bug? |
@Alon-fnx Thanks for testing that build.
Yes, I think so. The test build uses all of the code as used in Archi 4.9.2 (apart from having to change the calls to Eclipse's This tells me that there's nothing in Archi's code that can be changed and that we should look to this possible bug: |
...and for the Eclipse developers to even look at this Eclipse bug they will need a reproducible test case in Eclipse itself. |
Thank you. |
Unless more Hebrew / Arabic Eclipse users can confirm and have steps to reproduce the bug/regression in Eclipse itself, the devs won't even look at it. |
@Alon-fnx A new Eclipse bug has been reported: https://bugs.eclipse.org/bugs/show_bug.cgi?id=579626 Do you think this could be the cause? |
That Eclipse bug fix that might have caused this is for Windows only. @Alon-fnx Can you check whether RTL works in Archi on Linux and Mac? |
I think it's likely that the Eclipse bug at 579626 could be the cause. The affected Eclipse class was |
@Alon-fnx I've made a test build of Archi 4.9.3 for Windows with a modified
|
Hello @Phillipus, Thanks for your concern. |
Hi, Got a 404 error on that link |
The link is |
@Alon-fnx You probably are getting these GH messages via email. Please note that messages may be edited since, so it's better to look at the message here in GH in a Browser. |
@Phillipus, Works like MAGIC! |
@Alon-fnx Thanks for testing. This confirms the Eclipse regression. The fix in Archi involves removing the code that was added in https://bugs.eclipse.org/bugs/show_bug.cgi?id=565526: What I did was remove those lines, re-compile the For anyone else reading this affected by this bug I have uploaded this file here: org.eclipse.swt.win32.win32.x86_64_3.119.0.v20220223-1102.zip All you need do is unzip the file and replace the jar file in Archi's Now we need to get the Eclipse people to fix it. So if anyone wishes to add their weight to this: |
Easy to test by copying and pasting this example text into a Figure or a Documentation or Note field: جارِ التحميل |
I don't have an available Mac. |
No need to test, thanks anyway. We now know it's Windows only.
This text is the only way I and others can reproduce it simply. |
This is being addressed: eclipse-platform/eclipse.platform.swt#37 |
This has now been fixed in Eclipse. Assuming that there are no other side-effects it will make its way into the next version of Eclipse (4.24) in June 2022. For Archi, I can build a new version based on Eclipse 4.24 after June providing it doesn't contain any other regressions. In the meantime, I suggest affected users download the jar file in #796 (comment) and replace it. |
This has not been entirely fixed. RTL text is not rendered correctly if non-RTL and RTL text is mixed with non-RTL text on the left:
See eclipse-platform/eclipse.platform.swt#37 (comment) This is being tacked here: |
This is not a new issue. |
They fixed that now. 😄 |
Hello @Phillipus, Are all RTL problems solved in Archi 4.9.3? Regards, Alon |
I thought I made this clear in #796 (comment) |
Thank you |
This is fixed in Eclipse 4.25 and Archi 4.10 is built on Eclipse 4.25. So close this. |
Bug report
Version of Archi
4.9.1
Archi Plug-ins
Collaboration
Operating System
Win10
Expected Behaviour
Text in shape should support RTL text
Actual Behaviour
Words written in Hebrew in shapes are written in LTR order
For example, If I type
שלום עולם
It shows:
עולם שלום
Steps to Reproduce the Behaviour
The text was updated successfully, but these errors were encountered: