Files
init_dataParser/app/test_script.py
T
2025-09-18 14:32:19 +03:30

6 lines
190 B
Python

import arabic_reshaper
from bidi.algorithm import get_display
text = "سلام دنیا"
reshaped_text = arabic_reshaper.reshape(text)
bidi_text = get_display(reshaped_text)
print(bidi_text)