You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When printing RTL text, there are some annoying text-direction issues.
I am placing both the code, and a screenshot showing proper text direction:
print("כאן הכל בסדר, כי אין מספרים.")
print("אם שמים מספר 1 זה כבר הורס הכל.")
print("שימו לב גם למיקום של הפיסוק.")
When I print it to the Windows Terminal, I get the following:
Things to note:
line 1: the . moves to the wrong side, but the text is in the right order other than that
line 2: the text is swapped around the number 1
line 3: the . is in the wrong place again
Since some terminals (say, PyCharm's terminal) print this correctly:
I assume it is entirely terminal-emulator dependent.
But figured it's better to post here to see if there's a solution.
(Console.print takes a justify argument, but it does not affect this.)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When printing RTL text, there are some annoying text-direction issues.
I am placing both the code, and a screenshot showing proper text direction:
When I print it to the Windows Terminal, I get the following:
Things to note:
.
moves to the wrong side, but the text is in the right order other than that1
.
is in the wrong place againSince some terminals (say, PyCharm's terminal) print this correctly:
I assume it is entirely terminal-emulator dependent.
But figured it's better to post here to see if there's a solution.
(
Console.print
takes ajustify
argument, but it does not affect this.)Thank you!
Beta Was this translation helpful? Give feedback.
All reactions