python-bidi icon indicating copy to clipboard operation
python-bidi copied to clipboard

not working for zero width non-joiner

Open Mahdizade opened this issue 9 years ago • 0 comments

get_display function in bidi.algorithm module skip zero width non-joiner character.

In [1]: from bidi.algorithm import get_display

In [2]: raw_text = u'سل‌ام'

In [3]: print(len(raw_text))
5

In [4]: text = get_display(raw_text)

In [5]: print(len(text))
4

In [6]: print(text)
مالس

Mahdizade avatar Feb 28 '16 11:02 Mahdizade