patch kitty to work with the wide width of sitelen pona

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-14 08:47:01 +01:00
parent b19dd5dab3
commit 1aec11b8f8
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 19 additions and 0 deletions

View file

@ -113,6 +113,11 @@ in {
*/
inherit (noto-variable) noto-fonts-cjk;
inherit (go116) buildGo116Module;
kitty = prev.kitty.overrideAttrs (old: {
patches = [
../../extra/kitty.patch
];
});
})
];
}

14
extra/kitty.patch Normal file
View file

@ -0,0 +1,14 @@
diff --git a/gen-wcwidth.py b/gen-wcwidth.py
index 09f4b9a6..a755d77c 100755
--- a/gen-wcwidth.py
+++ b/gen-wcwidth.py
@@ -224,6 +224,9 @@ def parse_emoji() -> None:
doublewidth: Set[int] = set()
ambiguous: Set[int] = set()
+doublewidth |= set(range(0xF1900, 0xF1990)) # nimi pu and nimi ku suli
+doublewidth |= set(range(0xf19A0, 0xF1a00)) # nimi ku lili
+
def parse_eaw() -> None:
global doublewidth, ambiguous