Repository navigation
Warn against pre-processing text with arabic_reshaper and python-bidi on Raqm builds - #10408
SudiptoKumar wants to merge 1 commit into
Conversation
|
How does this relate to #9907? |
|
#9907 asks for a short docs note warning that pre-applying This PR adds that warning as one bullet in
Happy to move or reword the note if you'd rather see it on a different page (e.g. the text-drawing or |
|
Sorry, I meant #9925. |
|
You're right to flag it — it doesn't add anything over #9925. That PR, from the author of #9907, already covers this warning (and goes further, with the run-time warning), and it predates this one; #9914 covering the same ground was already closed as well. I checked open issues for maintainer-scoped work before opening this and missed that a PR for #9907 was already in flight. Closing this as a duplicate — #9925 is the right vehicle for the fix. Apologies for the noise. |
Adds the warning proposed in #9907 to the libraqm bullet in the building-from-source docs, where the bidirectional/shaping sentence quoted in the issue lives.
On a Raqm build, Pillow already performs bidirectional reordering (FriBiDi) and shaping (HarfBuzz). The widely-copied recipe of pre-applying
arabic_reshaperandpython-bidi— still necessary on builds without Raqm — therefore processes the text twice: it renders incorrectly, and the reshape step itself rewrites the string (lam-alef merged into a single presentation form, diacritics dropped). The new bullet states this and points readers at the conditional form:Docs-only change, one bullet added, no other files touched. Happy to move or reword the note if another location (e.g. the
featuresreference or the text-drawing docs) is preferred.