ajaxorg / ace

Ace (Ajax.org Cloud9 Editor)
https://ace.c9.io
Other
26.62k stars 5.27k forks source link

Full Unicode support incomplete #5431

Open stefanocoretta opened 8 months ago

stefanocoretta commented 8 months ago

Describe the bug

This is an issue that has been brought up several times through the years but it still not fixed (see for example #1531).

The editor does not handle certain Unicode characters correctly, for example the Combining Diacritical Marks. It seems the editor treats these characters as full width characters and the text cursor moves further away from the text.

I described the problem in details here, including pictures: https://github.com/rstudio/rstudio/issues/12680#issue-1575708046 RStudio uses the Ace editor.

Expected Behavior

Correct handling of Unicode characters.

Current Behavior

See description.

Reproduction Steps

See description.

Possible Solution

No response

Additional Information/Context

No response

Ace Version / Browser / OS / Keyboard layout

Ace Kitchen Sink, Safari, macOS; also embedded editor in RStudio latest

whazor commented 8 months ago

Hi, I verified that the characters ã̤n̺ ɾ̺ub̰ĩ̈, which are monospaced characters get an incorrect double space.

I wonder if this issue would be different from https://github.com/ajaxorg/ace/issues/1153

stefanocoretta commented 8 months ago

Yes, it's related to that. :) Do let me know if I can help with testing or the like. I'm happy to provide you with more details about characters/Unicode codes etc if it can help.

bradrn commented 1 month ago

Any progress on this issue? It’s severely affecting my application https://bradrn.com/brassica, for which support for combining diacritics is very important.