[Python] use arabic-reshaperin and bidi for convert a text in py (convert from file)

Discussão em 'Python' iniciado por Stack, Maio 24, 2025.

  1. Stack

    Stack Membro Participativo

    i need to use reshaperin And bidi in python for convert some arabic Text

    my question is how can i use arabic-reshaper for convert text inside of a txt file and save converted text in other txt file

    its my code for convert one line

    import arabic_reshaper
    from bidi.algorithm import get_display
    text = 'سلام محمد خوبی'

    test = arabic_reshaper.reshape(text)
    print(get_display(test))


    i know its a easy question But I haven't worked with Python until today tnx

    Continue reading...

Compartilhe esta Página