Package: wnpp
Severity: wishlist
X-Debbugs-Cc: debian-python@lists.debian.org
Control: affects -1 src:xhtml2pdf

* Package name    : python-arabic-reshaper
  Version         : 2.1.3 
  Upstream Author : Abdullah Diab <mpc...@gmail.com>
* URL             : https://github.com/mpcabd/python-arabic-reshaper/
* License         : MIT
  Programming Lang: Python
  Description     : Reconstruct Arabic sentences to be used in applications 
that don't support Arabic script.

Arabic script is very special with two essential features:
1. It is written from right to left.
2. The characters change shape according to their surrounding characters.

So when you try to print text written in Arabic script in an
application – or a library – that doesn’t support Arabic you’re pretty
likely to end up with misformatted text. There are two problems.
First, the characters are in the isolated form, which means that every
character is rendered regardless of its surroundings, and second is
that the text is written from left to right.

To solve the latter issue all we have to do is to use the Unicode
bidirectional algorithm, which is implemented purely in Python in
python-bidi. The only issue left to solve is to reshape those
characters and replace them with their correct shapes according to
their surroundings. Using this library helps with the reshaping so we
can get the proper result.

python-arabic-reshaper will be used by xhtml2pdf.

python-arabic-reshaper should be maintained by the Python Module Team
alongside python-bidi (RFP#921336)

Reply via email to