From 57c6208b50ac0959911a1966187c9bb036bd40a9 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Fri, 18 Mar 2022 17:31:23 +0100 Subject: [PATCH] Add glyphs for accent keys The "dotted circle" character combined with the accent was badly rendered on many devices. --- srcs/juloo.keyboard2/KeyValue.java | 18 +++---- srcs/special_font/50.svg | 78 +++++++++++++++++++++++++++++ srcs/special_font/51.svg | 78 +++++++++++++++++++++++++++++ srcs/special_font/52.svg | 78 +++++++++++++++++++++++++++++ srcs/special_font/53.svg | 78 +++++++++++++++++++++++++++++ srcs/special_font/54.svg | 78 +++++++++++++++++++++++++++++ srcs/special_font/55.svg | 79 ++++++++++++++++++++++++++++++ srcs/special_font/56.svg | 78 +++++++++++++++++++++++++++++ srcs/special_font/57.svg | 78 +++++++++++++++++++++++++++++ srcs/special_font/58.svg | 78 +++++++++++++++++++++++++++++ srcs/special_font/build.pe | 1 + 11 files changed, 713 insertions(+), 9 deletions(-) create mode 100644 srcs/special_font/50.svg create mode 100644 srcs/special_font/51.svg create mode 100644 srcs/special_font/52.svg create mode 100644 srcs/special_font/53.svg create mode 100644 srcs/special_font/54.svg create mode 100644 srcs/special_font/55.svg create mode 100644 srcs/special_font/56.svg create mode 100644 srcs/special_font/57.svg create mode 100644 srcs/special_font/58.svg diff --git a/srcs/juloo.keyboard2/KeyValue.java b/srcs/juloo.keyboard2/KeyValue.java index 83b9862..450f585 100644 --- a/srcs/juloo.keyboard2/KeyValue.java +++ b/srcs/juloo.keyboard2/KeyValue.java @@ -156,15 +156,15 @@ class KeyValue FLAG_SHIFT | FLAG_KEY_FONT | FLAG_SMALLER_FONT); addModifierKey("ctrl", "Ctrl", FLAG_CTRL | FLAG_SMALLER_FONT); addModifierKey("alt", "Alt", FLAG_ALT | FLAG_SMALLER_FONT); - addModifierKey("accent_aigu", "◌́", FLAG_ACCENT2 | FLAG_LOCALIZED); - addModifierKey("accent_caron", "◌̌", FLAG_ACCENT_CARON | FLAG_LOCALIZED); - addModifierKey("accent_cedille", "◌̧", FLAG_ACCENT5 | FLAG_LOCALIZED); - addModifierKey("accent_circonflexe", "◌̂", FLAG_ACCENT3 | FLAG_LOCALIZED); - addModifierKey("accent_grave", "◌̀", FLAG_ACCENT1 | FLAG_LOCALIZED); - addModifierKey("accent_macron", "◌̄", FLAG_ACCENT_MACRON | FLAG_LOCALIZED); - addModifierKey("accent_tilde", "◌̃", FLAG_ACCENT4 | FLAG_LOCALIZED); - addModifierKey("accent_trema", "◌̈", FLAG_ACCENT6 | FLAG_LOCALIZED); - addModifierKey("accent_ring", "◌̊", FLAG_ACCENT_RING | FLAG_LOCALIZED); + addModifierKey("accent_aigu", "\u0050", FLAG_ACCENT2 | FLAG_KEY_FONT | FLAG_LOCALIZED); + addModifierKey("accent_caron", "\u0051", FLAG_ACCENT_CARON | FLAG_KEY_FONT | FLAG_LOCALIZED); + addModifierKey("accent_cedille", "\u0052", FLAG_ACCENT5 | FLAG_KEY_FONT | FLAG_LOCALIZED); + addModifierKey("accent_circonflexe", "\u0053", FLAG_ACCENT3 | FLAG_KEY_FONT | FLAG_LOCALIZED); + addModifierKey("accent_grave", "\u0054", FLAG_ACCENT1 | FLAG_KEY_FONT | FLAG_LOCALIZED); + addModifierKey("accent_macron", "\u0055", FLAG_ACCENT_MACRON | FLAG_KEY_FONT | FLAG_LOCALIZED); + addModifierKey("accent_ring", "\u0056", FLAG_ACCENT_RING | FLAG_KEY_FONT | FLAG_LOCALIZED); + addModifierKey("accent_tilde", "\u0057", FLAG_ACCENT4 | FLAG_KEY_FONT | FLAG_LOCALIZED); + addModifierKey("accent_trema", "\u0058", FLAG_ACCENT6 | FLAG_KEY_FONT | FLAG_LOCALIZED); addModifierKey("superscript", "Sup", FLAG_ACCENT_SUPERSCRIPT | FLAG_SMALLER_FONT); addModifierKey("subscript", "Sub", FLAG_ACCENT_SUBSCRIPT | FLAG_SMALLER_FONT); addModifierKey("ordinal", "Ord", FLAG_ACCENT_ORDINAL | FLAG_SMALLER_FONT); diff --git a/srcs/special_font/50.svg b/srcs/special_font/50.svg new file mode 100644 index 0000000..267a3ab --- /dev/null +++ b/srcs/special_font/50.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/srcs/special_font/51.svg b/srcs/special_font/51.svg new file mode 100644 index 0000000..389dd95 --- /dev/null +++ b/srcs/special_font/51.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/srcs/special_font/52.svg b/srcs/special_font/52.svg new file mode 100644 index 0000000..f191105 --- /dev/null +++ b/srcs/special_font/52.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/srcs/special_font/53.svg b/srcs/special_font/53.svg new file mode 100644 index 0000000..be18b91 --- /dev/null +++ b/srcs/special_font/53.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/srcs/special_font/54.svg b/srcs/special_font/54.svg new file mode 100644 index 0000000..ec6a33e --- /dev/null +++ b/srcs/special_font/54.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/srcs/special_font/55.svg b/srcs/special_font/55.svg new file mode 100644 index 0000000..ae2f66a --- /dev/null +++ b/srcs/special_font/55.svg @@ -0,0 +1,79 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/srcs/special_font/56.svg b/srcs/special_font/56.svg new file mode 100644 index 0000000..184aaae --- /dev/null +++ b/srcs/special_font/56.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/srcs/special_font/57.svg b/srcs/special_font/57.svg new file mode 100644 index 0000000..0208718 --- /dev/null +++ b/srcs/special_font/57.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/srcs/special_font/58.svg b/srcs/special_font/58.svg new file mode 100644 index 0000000..5dd17ee --- /dev/null +++ b/srcs/special_font/58.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/srcs/special_font/build.pe b/srcs/special_font/build.pe index de5ed23..be9c54a 100644 --- a/srcs/special_font/build.pe +++ b/srcs/special_font/build.pe @@ -7,6 +7,7 @@ i = 2 while (i < $argc) Select(Strtol($argv[i]:t:r, 16)) Import($argv[i]) + AutoWidth(150) i++ endloop