11-28-2024 01:27 PM
I wish there was a way to tag people, like hashtags on Instagram or something.
11-28-2024 03:07 PM
@maxnoder1995 wrote:
I wish there was a way to tag people, like hashtags on Instagram or something.
That's not how this forum software works. But I sent him a PM. Let's see if he is still regularly online here.
11-28-2024 04:21 PM
RTL text does mostly work in LV out of the box. I doubt LV has any special support for it and the rendering of the text is probably done by the OS.
The issue is with bidirectional text (that's text which includes text in an RTL language combined with neutral or LTR text). LV has no real support for this and I highly doubt there's some hidden thing somewhere.
If the goal is to display text, then fiddling around with it can usually produce reasonable results, and that covers the majority of my needs.
If the goal is to let the user enter and edit text, then the only practical solution I found is to use something which has proper support for bidirectional text. This can be a web page or .NET controls and that would be my recommendation if that's the goal.
11-29-2024 01:24 AM
@tst wrote:If the goal is to display text, then fiddling around with it can usually produce reasonable results, and that covers the majority of my needs.
I’m looking for a function that takes an input string and formats it to display correctly in RTL (right-to-left). The real challenge lies in handling neutral text, and I’m struggling to find an effective solution for this.
12-01-2024 02:47 AM
@maxnoder1995 wrote:
@tst wrote:If the goal is to display text, then fiddling around with it can usually produce reasonable results, and that covers the majority of my needs.
I’m looking for a function that takes an input string and formats it to display correctly in RTL (right-to-left). The real challenge lies in handling neutral text, and I’m struggling to find an effective solution for this.
To be clear, LV does handle most text correctly without the need to do anything. It manages both the RTL and the bi-directionality correctly. The issue usually comes with having neutral characters at the end of the line or mixing Hebrew and English (numbers seem to work fine) and that's where the fiddling comes into play. While the algorithm could probably be figured out and modify the text accordingly, I found that it hasn't been an issue in that many places and that where it is, it's usually practical either to fix it manually (if it's only for display), only do it in English or use .NET controls if the functionality is really needed.
If I really wanted to handle this purely in LV, I would probably try reading up on the topic first (example) and then playing with it to see how LV behaves exactly with different inputs (different mixes, font sizes, line breaks, etc.), but even then, experience tells me that there things which are always displayed incorrectly, regardless of how you fiddle with them, and the only solution would be to implement the display on your own using something like the picture control. By that point, you might as well just use the .NET controls.