I want to write a Hebrew string in Python and then show it onscreen. The problem is that I get a mirror view of what I wrote. How can I set the string to use RTL instead of left to right?
I know I'm pretty late to the party, but you can always use:
" שלום hello "[::-1]
But the real solution is to use:
from bidi.algorithm import get_display
print(get_display("היי"))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With