https://bugs.documentfoundation.org/show_bug.cgi?id=163329

⁨خالد حسني⁩ <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #10 from ⁨خالد حسني⁩ <[email protected]> ---
(In reply to Eyal Rozenberg from comment #4)
> (In reply to ⁨خالد حسني⁩ from comment #1)
> 
> Hmm...  Why is the sqrt stem even a glyph at all? That doesn't sound right.

What else would it be?

> But be that as it may -  if a glyph is _missing_, I'm fine with being given
> an error message, or the glyph being replaced with an empty rectangle, or
> something along those lines. But why would a flipped glyph - another glyph -
> be used instead?

There is no dedicated Unicode code point for right to left radical. The same
code point is used for left-to-right and right-to-left glyph, like how opening
parenthesis are the same code point and for right-to-left text is becomes a
right parenthesis and for left-to-right text it becomes a left one. Unlike
parenthesis, though, where there is a pair of mirrored Unicode code point and
the text layout engine can switch them regardless of the font, there is only
one radical, so the font needs to provide a right-to-left alternate glyph using
“rtlm” feature, so detecting such support at the font level is more involved
that simple Unicode code point coverage that is usually done.

Note this does not affect only radicals, in your screenshot the integrals and
the summation are not mirrored as well, but they should.

We could warn, may be in an info bar, if the font used for RTL math does not
have an rtlm feature (though a font might have the feature and still not cover
the required glyph, we can also detect that, but it is also more work).

We can apply affine transformation to the glyphs if the font does not mirror
them, but the above caveat applies, in addition to the fact that simple affine
transformation is not always right, in a glyph like ∲ (clockwise contour
integral) the integral part should be mirrored but the circled arrow must
remain clockwise or it becomes ∳ (counterclockwise contour integral).

The last option is to add mirrored glyphs and rtlm feature to OpenSymbol. That
would be a big change though, since OpenSymbol right now does not have any
OpenType feature and I don’t know if adding any would have any unwanted side
effects.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to