is there any way to get this capability other than typing backwards as I do now?
or mirroring lol ⌠actually forget that , nor does rotate do it
Hei - we have a wish list item for right-to-left text - itâs currently on the Rhino 7 list: RH-3829.
Hello Aviva,
Maybe as a work around try copy / pasting the text into the text box.
Thank you,
Andy
p.s. Tried it on my English system and it did not work.
Hello,
Do you need to get the characters back in reverse order? This command will prompt for a text string and then copy the reverse into the clipboard:
! -_RunPythonScript "import rhinoscriptsyntax as rs;rs.ClipboardText(rs.StringBox()[::-1])"
For instance, entering Hello, World! copies !dlroW ,olleH to the clipboard
You can attach it to a button or to a keyboard shortcut.
-Graham
Graham, going to try that ASAP! thanks
Great - let me know how you get on. There are plenty of possible variants e.g. creating a textobject with the given text, âŚ
To expand on the Python script a little it is basically doing this:
import rhinoscriptsyntax as rs
text_LTR = rs.StringBox() # Get some text
text_RTL = text_LTR[::-1] # reverse it using slice notation
rs.ClipboardText(text_RTL) # copy it to the clipboard
I do hope youâre impressed with yourself⌠cuz I sure am. Thanks a MILLION
lol I put the button in the Mesh menu tab by accident - how can I move it into another tab?
thanks again
You are very welcome
Hold shift and drag to move the button
and be very careful to get it into the proper tab correctly by moving it a drop under or you will just delete it
Yes thank you Graham.
I can not use the Rhino because there is no Arabic language for writing
is there a solution ?
thanks
With Unicode being built into/recognized by all major operating systems now, can RTL scripts please be addressed? The bug fix that @wim mentioned above has been on the books since at least 2015.
Whatâs more frustrating is that the Text Object dialog box recognizes the correct direction of Hebrew and Arabic scripts when typing directly or pasting in, but as soon as the text object is placed in the viewport itâs reversed. This shouldnât need to be addressed by a Python hack, however useful a solution that is. Any chance this can be resolved by the release of v.8?
Hi -
Iâm afraid that, as things stand right now, no, thatâs not likely.
-wim
We can still dream in hebrew. For now I fragment text ,reverse list and join text in GH.
Not perfect but it works.
Wow! Thanks a lot!!
Based on this comment, I started building a definition wrapped in HumanUI. It was doing great for Hebrew, and then I tested it on Arabicâunfortunately the fragment/reverse/join doesnât allow for the ligatures to hook the letters back together and they each appear as individual letters.
Looking for a solution for that, I came across arabic-text.com which was also designed out of frustration that design programs like Photoshop/Illustrator/Rhino inexplicably refuse to handle RTL languages correctly despite Unicode having been the standard for a quarter-century (< /rant>). The website does manage to produce reversed Arabic text with ligatures intact when pasted into Rhinoâs _TextObject command. And I can happily report that although Iâm sure they didnât intend for anyone to use it that way, it works for Hebrew too.
Kinda not motivated to finish my GH definition anymore.
Thats great. I will give it a try. ת××× ×¨××.
××˘× ××× ×× ×פ׊ר ×××ץ×ף × ××§××
Yeah, I tried it with nikudim. Theyâre shifted slightly to the left after _TextObject places them in the viewport, but theyâre in the accurate order (above and below the letters) and correctly spaced from each other. Easy enough to select all of them and shift them back to the right.