https://bugs.documentfoundation.org/show_bug.cgi?id=61444
--- Comment #41 from خالد حسني <[email protected]> --- (In reply to Munzir Taha from comment #40) > @خالد حسني > As usual, your fixes are outstanding. I will test as soon as there is a > build available. > > Yes, I am aware that less broken results show when formatting marks are > hidden as in the original bug I filed. So, now remains the broken characters > like LAM ALEF combinations and ligatures. > > I am not sure whether breaking shaping should be the same bug as breaking > kerning.zYes, broken Arabic ligature shaping is similar to kerning because > the text is still correct though not suitable for professional work. > However, breaking shaping is more serious and the text is incorrect and can > be handled in a different way. Kerning (glyph positioning in general) and shaping (glyph substitution in general) are done in the same step, there is no way to fix one but not the other, regardless which is more severe. The underlying issue is the same; when LibreOffice sees a formatting change it splits the text and processes each portion separately. > In Scribus e.g. the kerning doesn't break due to color changes. For Arabic, > Scribus still doesn't know how to handle the coloring for single characters > of combinations correctly so it changes the color of the whole ligature, > which is not perfect but at least the shaping is intact. This is orthogonal to the issue here. There is no single answer for how to partially color a ligature, since it is a single glyph. Some applications will apply the color of the first component to the ligature (Chrome and I think MS Office do this), others will use a mask and color the part of the glyph up to where the cursor is inserted (Firefox is actually the only application I know that does this, and it is not without issues, see https://faultlore.com/blah/text-hates-you/#style-can-change-mid-ligature). This issue is about the shaping part, once this is done (if it ever gets done, it is not a simple task), we can then decide how to partially color ligature glyphs). -- You are receiving this mail because: You are the assignee for the bug.
