displaCy rendering visuals from right to left for languages such as Arabic #11061
-
It seems that displaCy renders visuals for text in languages like Arabic from right to left, instead of left to right, leading to some unusual formatting. Is this intentional, or a bug? If not, is this because the language itself is meant to be read for right to left, like Arabic? This is the only non-bug explanation I can think of. I would prefer the text to be rendered from left to right, if possible. Any help would be appreciated! The above image shows what I mean, where the image is being rendered on the right side of the screen and expands leftward. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @SecroLoL, thanks for reporting this. This is a bug related to |
Beta Was this translation helpful? Give feedback.
Hi @SecroLoL, thanks for reporting this. This is a bug related to
rtl
languages, and we're currently tracking it at #4854. Your hunch is correct that it shows that way because Arabic is meant to be read from left to right. However, the rendering has somehow become dependent on that. In the meantime, if you're concerned with the presentation / the image appearing on the right side of the screen, perhaps it is possible to wrap the whole SVG / HTML in a<div>
and manually moving it in CSS?