Ejemplo n.º 1
0
def fix_arabic_text(line):
    return get_display(arabic_reshaper.reshape(unicode(line[:-2], "utf-8")))
Ejemplo n.º 2
0
def fix_arabic_text(line):
    return get_display(arabic_reshaper.reshape(unicode(line[:-2], "utf-8")))
Ejemplo n.º 3
0
__author__ = 'obus'
from bidi.algorithm import get_display

import simple_words_in_string_detection.arabic_reshaper as arabic_reshaper


reshaped_text = arabic_reshaper.reshape(u'اللغة العربية رائعة')
bidi_text = get_display(reshaped_text)