Subject: Re: bug#67828: 27.1; Sinhala touching consonants

From: Eli Zaretskii <[email-masked]>
Date: Sat, 16 Dec 2023 15:34:15 +0200

> Date: Thu, 14 Dec 2023 17:08:02 +0000
> From:  Richard Wordingham via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <[email-masked]>
> 
> To reproduce:
> 
> Paste the Sinhala script string "ගන‍්තවා" into a buffer.
> 
> Ther string will then display with a dotted circle in the middle.  The
> problem is that this string is split into three clusters for rendering.
> The dotted circle ought not to appear.  With a suitable font being
> selected for Sinhala, e.g. Noto Sans Sinhala, the characters either side
> of ් should abut or have very little separation.  Without a suitable
> font, the display should fall back to one similar to "ගන්ත්‍වා".
> 
> The problem can be fixed by changing the file lisp/language/sinhala.el
> as follows:
> 
> 41c42
> <
> "[\u0D9A-\u0DC6]\\(?:\u0DCA\u200D[\u0D9A-\u0DC6]\\)*[\u0DCF-\u0DDF\u0DF2-\u0DF3]*\u0DCA?[\u0D82-\u0D83]?\\|"
> ---
> > 	 "[\u0D9A-\u0DC6]\\(?:\\(\u0DCA\u200D\\|\u200D\u0DCA\\)[\u0D9A-\u0DC6]\\)*[\u0DCF-\u0DDF\u0DF2-\u0DF3]*\u0DCA?[\u0D82-\u0D83]?\\|"

Thanks, installed on the emacs-29 branch, and closing the bug.