GNU bug report logs - #41005
problem with rendering Persian text in Emacs 27

Previous Next

Package: emacs;

Reported by: hossein valizadeh <valizadeh.ho <at> gmail.com>

Date: Fri, 1 May 2020 18:34:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #56 received at 41005 <at> debbugs.gnu.org (full text, mbox):

From: Pip Cet <pipcet <at> gmail.com>
To: hossein valizadeh <valizadeh.ho <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 41005 <at> debbugs.gnu.org,
 Nicholas Drozd <nicholasdrozd <at> gmail.com>
Subject: Re: bug#41005: problem with rendering Persian text in Emacs 27
Date: Fri, 05 Jun 2020 06:39:34 +0000
hossein valizadeh <valizadeh.ho <at> gmail.com> writes:
> I tried the patch.
> The eww problem is solved, but the problem still there, when I enable auto-fill-mode or
> column-number-mode.

I only see it with column-number-mode so far (but, again, I can
reproduce it and debug further).

It's this code in indent.c

      /* Check composition sequence.  */
      if (cmp_it.id >= 0
	  || (scan == cmp_it.stop_pos
	      && composition_reseat_it (&cmp_it, scan, scan_byte, end,
					w, NEUTRAL_DIR, NULL, Qnil)))

which appears to think the sixth argument to composition_reseat_it is a
direction (it probably should be). It's actually a bidi level, and
passing NEUTRAL_DIR, which is 0, results in L2R layout being used by
hbfont_shape, as in the eww bug.

Will write a patch soon if no one beats me to it.




This bug report was last modified 4 years and 343 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.