-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Description
In reportLab, I need to display an arabic paragraph. I am using arabic-resharper and bidi-algorithm. The probelm appears that the Algothim revesing lines.
The code is:
def format_arabic_paragraph(arabic_text: str, paragraph_style: ParagraphStyle):
reshaped_text = arabic_reshaper.reshape(arabic_text)
bidirectional_text = algorithm.get_display(reshaped_text)
formatted_paragraph = Paragraph(bidirectional_text, paragraph_style)
return formatted_paragraph
arabic_text='وحدة1 وحدة2'
وحدة2
وحدة1
وحدة1
وحدة2
Metadata
Metadata
Assignees
Labels
No labels