Created
January 13, 2024 10:17
-
-
Save mmsamiei/57e55d978403bc17dd3c22c2c0ac4cf5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bidi import algorithm as bidi_algorithm | |
import arabic_reshaper | |
rtl = lambda x : bidi_algorithm.get_display(arabic_reshaper.reshape(x)) | |
rtl('سلام سلام سلام') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment