Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/keybr-keyboard-io/lib/parser/diacritics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const forwardMap = new Map([
[/* CEDILLA */ 0x00b8, /* COMBINING CEDILLA */ 0x0327],
[/* OGONEK */ 0x02db, /* COMBINING OGONEK */ 0x0328],
[/* GREEK TONOS */ 0x0384, /* COMBINING ACUTE ACCENT */ 0x0301],
[/* SOLIDUS */ 0x002F, /* COMBINING SHORT SOLIDUS OVERLAY */ 0x0337],
]);

const reverseMap = new Map([...forwardMap].map(([key, value]) => [value, key]));
Expand Down
9 changes: 7 additions & 2 deletions packages/keybr-unicode/lib/diacritics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,19 @@ for (const [codePoint, baseList, combinedList] of [
],
[
/* COMBINING CEDILLA */ 0x0327, //
"CDEGHKLNRSTcdeghklnrst",
"ÇḐȨĢḨĶĻŅŖŞŢçḑȩģḩķļņŗşţ",
"ACDEGHIKLNORSTUacdeghiklnorstu",
"ĄÇḐĘĢḨĮĶĻŅǪŖŞŢŲąçḑęģḩįķļņǫŗşţų",
],
[
/* COMBINING OGONEK */ 0x0328, //
"AEIOUaeiou",
"ĄĘĮǪŲąęįǫų",
],
[
/* COMBINING SHORT SOLIDUS OVERLAY */ 0x0337, //
"ABCDEGHIJLOPRTUYZabcdeghijlortuyz",
"ȺɃȻĐɆǤĦƗɟŁØⱣɌŦɄɎƵⱥƀȼđɇǥħɨɟłøɍŧʉɏƶ",
],
] as [CodePoint, string, string][]) {
for (let i = 0; i < baseList.length; i++) {
const base = baseList.codePointAt(i)!;
Expand Down