I managed to add RTL (Arabic) support to Badge/Poster design with “minimal code change”. I only needed to change one file (and install some dependencies).
I needed to add the following two lines
content = arabic_reshaper.reshape(content) content = get_display(content)
indico/modules/designer/pdf.py right after the line:
content = strip_tags(content)
and of course add the following import lines in the beginning of the same file:
import arabic_reshaper from bidi.algorithm import get_display
The above two packages need to be installed, so:
pip install arabic-reshaper pip install python-bidi
I also added an Arabic font as described in the following post:
Lastly, I restarted uWSGI:
And it’s now working fine!