GNU bug report logs - #42562
Problem with rendering Persian text still exists in minibuffer and dired

Previous Next

Package: emacs;

Reported by: Sineau Gh <sineaugh <at> gmail.com>

Date: Mon, 27 Jul 2020 19:45:02 UTC

Severity: normal

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Sineau Gh <sineaugh <at> gmail.com>
Cc: 42562 <at> debbugs.gnu.org
Subject: bug#42562: Problem with rendering Persian text still exists in minibuffer and dired
Date: Fri, 31 Jul 2020 15:56:24 +0300
> From: Sineau Gh <sineaugh <at> gmail.com>
> Date: Fri, 31 Jul 2020 11:02:44 +0430
> Cc: 42562 <at> debbugs.gnu.org
> 

> تحقیق
> تست
> مدرن.txt
> تحقیق.org

> - visit a file using C-x C-f.
> - use TAB for *Completion Buffer*.
> - first character of all file names are disjointed.
> - type ت to filter the filenames, now the second characters are
>   disjointed.
> - now open one of the files. in modeline first and last characters of
>   the filename are disjointed.

Thanks.  Now everything is clear: this is due to the basic limitation
of how Emacs displays text with different faces: we render each run of
character in the same face separately from characters in a different
face.  So if the face changes in the middle of a word, we render the
two parts of the word separately, and that breaks Arabic shaping.

Fixing this would need significant changes in the low-level code that
handles text layout, which is one of the basics of the current display
engine.  Patches are welcome.




This bug report was last modified 3 years and 145 days ago.

Previous Next


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