New unicode-graphemes addon.

Handle grapheme cluster lookup as well as wcwidth.
This is based on Unicode 15, and could replace the unicode11 addon.
This commit is contained in:
Per Bothner
2023-05-16 18:31:31 -07:00
parent 7a7f4f0add
commit 2f7fe1189c
28 changed files with 1055 additions and 49 deletions
+1
View File
@@ -1144,6 +1144,7 @@ declare module 'xterm-headless' {
* Unicode version dependent wcwidth implementation.
*/
wcwidth(codepoint: number): 0 | 1 | 2;
charProperties(codepoint: number, preceding: number): number;
}
/**
+1
View File
@@ -1674,6 +1674,7 @@ declare module 'xterm' {
* Unicode version dependent wcwidth implementation.
*/
wcwidth(codepoint: number): 0 | 1 | 2;
charProperties(codepoint: number, preceding: number): number;
}
/**