ho un'etichetta che mostrano un testo multilinea in Persianotesto multilinea in etichetta kivy (python-bidi)
file di kv: metodo
<[email protected]>:
font_name: 'tabassom'
FarsiLabel:
text: set_text('پیروزی برای افرادی امکان پذیر است که از مبارزه دست نمی کشند\n')
text_size: self.size
halign: 'center'
color: utils.get_color_from_hex('546E7A')
set_text:
def set_text(text):
text = unicode(text, 'utf-8')
result = arabic_reshaper.reshape(text)
result = get_display(result)
return result
risultato (errato):
risultato corretto (gimp):
Ho trovato che il problema nel metodo get_display python-bidi, ma non so come risolverlo domanda
è: come risolvere questo problema?