[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#41005: problem with rendering Persian text in Emacs 27
From: |
Pip Cet |
Subject: |
bug#41005: problem with rendering Persian text in Emacs 27 |
Date: |
Thu, 04 Jun 2020 08:28:24 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
hossein valizadeh <valizadeh.ho@gmail.com> writes:
> And finally, please try this with the version on the master branch, where a
> few fixes were
> installed lately.
I can reproduce the very similar issue described (Farsi Wikipedia entry
for Emacs), on current master. I believe I've figured it out, but I can
also debug further if required.
What happens is that font-shape-gstring is called with direction == L2R,
mis-shapes the text, then caches that version in the composition gstring
cache. The cache doesn't distinguish directions, and it's never cleared,
so this "infects" other buffers, but only if they're opened afterwards,
and only for the same words.
shr appears to force bidi-display-reordering off. Removing that let
binding from shr-insert-document avoids the problem.
We should consider adding direction to our gstrings, on master. While
we're there, let's also add script, language, and harfbuzz features to
the gstrings so we know we've captured the precise harfbuzz parameters?
- bug#41005: problem with rendering Persian text in Emacs 27, Eli Zaretskii, 2020/06/03
- bug#41005: problem with rendering Persian text in Emacs 27, Nicholas Drozd, 2020/06/03
- bug#41005: problem with rendering Persian text in Emacs 27, Eli Zaretskii, 2020/06/03
- bug#41005: problem with rendering Persian text in Emacs 27, hossein valizadeh, 2020/06/03
- bug#41005: problem with rendering Persian text in Emacs 27, hossein valizadeh, 2020/06/03
- bug#41005: problem with rendering Persian text in Emacs 27, Eli Zaretskii, 2020/06/04
- bug#41005: problem with rendering Persian text in Emacs 27, Eli Zaretskii, 2020/06/04
- bug#41005: problem with rendering Persian text in Emacs 27, hossein valizadeh, 2020/06/04
- bug#41005: problem with rendering Persian text in Emacs 27,
Pip Cet <=
- bug#41005: problem with rendering Persian text in Emacs 27, Eli Zaretskii, 2020/06/04
- bug#41005: problem with rendering Persian text in Emacs 27, Pip Cet, 2020/06/04
- bug#41005: problem with rendering Persian text in Emacs 27, hossein valizadeh, 2020/06/05
- bug#41005: problem with rendering Persian text in Emacs 27, Eli Zaretskii, 2020/06/05
- bug#41005: problem with rendering Persian text in Emacs 27, Basil L. Contovounesios, 2020/06/05
- bug#41005: problem with rendering Persian text in Emacs 27, hossein valizadeh, 2020/06/05
- bug#41005: problem with rendering Persian text in Emacs 27, Eli Zaretskii, 2020/06/05
- bug#41005: problem with rendering Persian text in Emacs 27, Pip Cet, 2020/06/05
- bug#41005: problem with rendering Persian text in Emacs 27, Eli Zaretskii, 2020/06/05
- bug#41005: problem with rendering Persian text in Emacs 27, Pip Cet, 2020/06/06