Open NightMachinery opened 3 years ago
I am using this package to be able to use my terminal in the rare cases where some RTL text is involved. I currently have this script:
#!/usr/bin/env python3 import arabic_reshaper import sys from bidi.algorithm import get_display text_to_be_reshaped = sys.stdin.read() reshaped_text = arabic_reshaper.reshape(text_to_be_reshaped) bidi_text = get_display(reshaped_text) print(bidi_text, end='')
And it works great:
But it would be even more awesome if it could support ANSI color codes:
I am not sure this problem is by the reshaper or by the fact that get_display is called on the text, could you write a unit test that fails with this case?
get_display
I am using this package to be able to use my terminal in the rare cases where some RTL text is involved. I currently have this script:
And it works great:![image](https://user-images.githubusercontent.com/36224762/111336927-e6293080-868a-11eb-980d-fa47c8bb3089.png)
But it would be even more awesome if it could support ANSI color codes:![image](https://user-images.githubusercontent.com/36224762/111337554-6e0f3a80-868b-11eb-9572-fd95299ca9a8.png)