Text base direction is incorrect for RTL text
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
In Progress
|
Medium
|
Unassigned |
Bug Description
For right-to-left languages the display is determined by the Unicode bidirectional algorithm. Part of this algorithm is the base-direction that influences the order of the redirected text. There are two common ways of determining the base direction. One is to have a user interactive element that allow choosing the base direction, another (which is employed by gtk) is to determine the base direction according to the contents. The latter is how it is done in gtk, and in particular by searching for the first "strong" character (in the Unicode bidi algorithm) sense, and using that direction as the base direction.
When running the latest inkscape today, inkscape-
I'm including a screenshot showing the same text in the gtk text viewer widget (correctly) and the incorrect rendering in the inkscape canvas.
Added an svg file illustrating the problem.
In the rendered text the Hebrew should be on the right hand side and the English on the left hand side. I.e. in the browser, if capital are considered to be Hebrew characters:
abc CBA