abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2/ComposeKeyData.java
AgeCommit message (Collapse)AuthorFilesLines
2024-10-05compose/accent_*.json: improvements (more accents) (#770)Zitrone1-208/+220
compose/accent_*.json: improve/complete implementation compose/shift.json: uppercase for superscript letters & characters without preapplied uppercase versions
2024-09-29Add Fn layer and Compose sequences for CyrillicJules Aguillon1-166/+166
2024-09-14compose: Deduplicate end statesJules Aguillon1-226/+186
Make compose sequences ending in the same character to share the ending state. This reduce the compiled compose key data size from 33kB to 27kB.
2024-09-10Define the Shift modifier using the compose mechanismJules Aguillon1-2/+5
2024-09-10Define the Fn modifier using the compose mechanismJules Aguillon1-103/+120
This removes 100Kb from the app.
2024-09-10Compose sequences can end in internal key namesJules Aguillon1-103/+103
This adds the '\n' and '\t' sequences to showcase the new feature.
2024-07-27Added supported key for avoiding the pain of auto-caps (#725)Adrian1-105/+105
2024-07-25Update ComposeKeyDataJules Aguillon1-218/+218
Outdated since 6c786f2
2024-07-21Allow extending the compose key (#713)Jules Aguillon1-229/+229
This allows adding more compose sequences without modifying en_US_UTF_8_Compose.pre. This is done by grouping sequences files that should be merged together into a directory. This also allows moving keysymdef.h into that directory.
2024-06-09Move diacritics mapping to the compose state machineJules Aguillon1-187/+227
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).
2024-06-09compose: Compile several starting statesJules Aguillon1-188/+190
Sequences from several files are no longer merged but compiled to separate starting states. The plan is to use that to represent the diacritics.
2024-06-09compose: Fix misbehaving due to encoding errorsJules Aguillon1-201/+183
Encoding errors in the compose data compiler due to: - 'UTF-16' adds a BOM, use 'UTF-16-LE' instead - 'str.encode' returns a byte array, use 'array' to have a 16-bit char array.
2024-05-29Add compose sequences for Greek, Cyrillic, Hebrew and moreJules Aguillon1-147/+205
Parse key names from keysymdef.h, which is distributed with Xorg. The Greek, Cyrillic and Hebrew sequences referenced these keysyms. This increases the number of sequences from 2043 to 2668.
2024-05-29Allow compose sequence ending with more symbolsJules Aguillon1-140/+148
Change the compose state machine definition to allow final states that are wider than 16-bits. This increases the number of sequences that can be used from en_US_UTF_8_Compose.pre from 2013 to 2043 (of 3201).
2024-02-17compose: Add X11 compose sequencesJules Aguillon1-6/+142
compile.py implements a parser for X11's Compose.pre files. A lot of code is necessary to interpret character names but thanksfully, the name of most characters is contained in the file. The state machine is compiled into two char arrays which unfortunately requires an expensive initialisation and allocation.
2024-02-17Compose keyJules Aguillon1-0/+14
The COMPOSE_PENDING modifier indicate whether a compose sequence is in progress. The new key of kind Compose_pending sets the current state of the sequence. The compose sequences are compiled into a state machine by a python script into a compact encoding. The state of the pending compose is determined by the index of a state.