From 91ace060bc8c49f1ea4b8185e239a58ec7d5478a Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 9 Jun 2024 11:43:21 +0200 Subject: Move diacritics mapping to the compose state machine This replaces the switch cases in KeyModifier.java with JSON files, one for each diacritic. The number of states increases from 6727 to 7377. The apk size slightly decreases (around 3kb). --- srcs/compose/accent_aigu.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcs/compose/accent_aigu.json (limited to 'srcs/compose/accent_aigu.json') diff --git a/srcs/compose/accent_aigu.json b/srcs/compose/accent_aigu.json new file mode 100644 index 0000000..bfc04b8 --- /dev/null +++ b/srcs/compose/accent_aigu.json @@ -0,0 +1,25 @@ +{ + "a": "á", + "c": "ć", + "e": "é", + "i": "í", + "l": "ĺ", + "ń": "ń", + "o": "ó", + "r": "ŕ", + "s": "ś", + "u": "ú", + "y": "ý", + "z": "ź", + "ü": "ǘ", + "j": "j\u0301", + "у": "у\u0301", + "е": "е\u0301", + "а": "а\u0301", + "о": "о\u0301", + "и": "и\u0301", + "ы": "ы\u0301", + "э": "э\u0301", + "ю": "ю\u0301", + "я": "я\u0301" +} -- cgit v1.2.3